Deleted Added
full compact
pmcstat_log.h (212176) pmcstat_log.h (241737)
1/*-
2 * Copyright (c) 2005-2007, Joseph Koshy
3 * Copyright (c) 2007 The FreeBSD Foundation
4 * Copyright (c) 2009, Fabien Thomas
5 * All rights reserved.
6 *
7 * Portions of this software were developed by A. Joseph Koshy under
8 * sponsorship from the FreeBSD Foundation and Google, Inc.

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
1/*-
2 * Copyright (c) 2005-2007, Joseph Koshy
3 * Copyright (c) 2007 The FreeBSD Foundation
4 * Copyright (c) 2009, Fabien Thomas
5 * All rights reserved.
6 *
7 * Portions of this software were developed by A. Joseph Koshy under
8 * sponsorship from the FreeBSD Foundation and Google, Inc.

--- 14 unchanged lines hidden (view full) ---

23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * $FreeBSD: head/usr.sbin/pmcstat/pmcstat_log.h 212176 2010-09-03 13:54:02Z fabient $
31 * $FreeBSD: head/usr.sbin/pmcstat/pmcstat_log.h 241737 2012-10-19 14:49:42Z ed $
32 */
33
34#ifndef _PMCSTAT_LOG_H_
35#define _PMCSTAT_LOG_H_
36
37typedef const void *pmcstat_interned_string;
38
39/*

--- 131 unchanged lines hidden (view full) ---

171
172extern struct pmcstat_process *pmcstat_kernproc; /* kernel 'process' */
173
174extern int pmcstat_npmcs; /* PMC count. */
175
176/*
177 * Top mode global options.
178 */
32 */
33
34#ifndef _PMCSTAT_LOG_H_
35#define _PMCSTAT_LOG_H_
36
37typedef const void *pmcstat_interned_string;
38
39/*

--- 131 unchanged lines hidden (view full) ---

171
172extern struct pmcstat_process *pmcstat_kernproc; /* kernel 'process' */
173
174extern int pmcstat_npmcs; /* PMC count. */
175
176/*
177 * Top mode global options.
178 */
179float pmcstat_threshold; /* Threshold to filter node. */
180int pmcstat_pmcinfilter; /* PMC index displayed. */
179extern float pmcstat_threshold; /* Threshold to filter node. */
180extern int pmcstat_pmcinfilter; /* PMC index displayed. */
181
182/* Function prototypes */
183const char *pmcstat_pmcid_to_name(pmc_id_t _pmcid);
184const char *pmcstat_pmcindex_to_name(int pmcin);
185struct pmcstat_pmcrecord *pmcstat_pmcindex_to_pmcr(int pmcin);
186struct pmcstat_pcmap *pmcstat_process_find_map(struct pmcstat_process *_p,
187 uintfptr_t _pc);
188struct pmcstat_symbol *pmcstat_symbol_search(struct pmcstat_image *image,
189 uintfptr_t addr);
190const char *pmcstat_string_unintern(pmcstat_interned_string _is);
191pmcstat_interned_string pmcstat_string_intern(const char *_s);
192void pmcstat_image_determine_type(struct pmcstat_image *_image);
193pmcstat_interned_string pmcstat_string_lookup(const char *_s);
194int pmcstat_image_addr2line(struct pmcstat_image *image, uintfptr_t addr,
195 char *sourcefile, size_t sourcefile_len, unsigned *sourceline,
196 char *funcname, size_t funcname_len);
197
198#endif /* _PMCSTAT_LOG_H_ */
199
181
182/* Function prototypes */
183const char *pmcstat_pmcid_to_name(pmc_id_t _pmcid);
184const char *pmcstat_pmcindex_to_name(int pmcin);
185struct pmcstat_pmcrecord *pmcstat_pmcindex_to_pmcr(int pmcin);
186struct pmcstat_pcmap *pmcstat_process_find_map(struct pmcstat_process *_p,
187 uintfptr_t _pc);
188struct pmcstat_symbol *pmcstat_symbol_search(struct pmcstat_image *image,
189 uintfptr_t addr);
190const char *pmcstat_string_unintern(pmcstat_interned_string _is);
191pmcstat_interned_string pmcstat_string_intern(const char *_s);
192void pmcstat_image_determine_type(struct pmcstat_image *_image);
193pmcstat_interned_string pmcstat_string_lookup(const char *_s);
194int pmcstat_image_addr2line(struct pmcstat_image *image, uintfptr_t addr,
195 char *sourcefile, size_t sourcefile_len, unsigned *sourceline,
196 char *funcname, size_t funcname_len);
197
198#endif /* _PMCSTAT_LOG_H_ */
199