25#ifndef __PFMLIB_PRIV_H__
26#define __PFMLIB_PRIV_H__
40 int (*get_event_code)(
unsigned int i,
unsigned int cnt,
int *code);
41 int (*get_event_mask_code)(
unsigned int i,
unsigned int mask_idx,
unsigned int *code);
42 char *(*get_event_name)(
unsigned int i);
43 char *(*get_event_mask_name)(
unsigned int event_idx,
unsigned int mask_idx);
45 unsigned int (*get_num_event_masks)(
unsigned int event_idx);
47 int (*pmu_detect)(void);
48 int (*pmu_init)(void);
52 void (*get_hw_counter_width)(
unsigned int *width);
54 int (*get_event_mask_desc)(
unsigned int event_idx,
unsigned int mask_idx,
char **
buf);
57 int (*has_umask_default)(
unsigned int i);
60#define PFMLIB_MULT_CODE_EVENT 0x1
62#define PFMLIB_CNT_FIRST -1
64#define PFMLIB_NO_EVT (~0U)
72#define PFMLIB_INITIALIZED() (pfm_config.current != NULL)
76#define PFMLIB_DEBUG() pfm_config.options.pfm_debug
77#define PFMLIB_VERBOSE() pfm_config.options.pfm_verbose
78#define pfm_current pfm_config.current
90#define DPRINT(fmt, a...) \
92 if (pfm_config.options.pfm_debug) { \
93 fprintf(libpfm_fp, "%s (%s.%d): " fmt, __FILE__, __func__, __LINE__, ## a); } \
99#define ALIGN_DOWN(a,p) ((a) & ~((1UL<<(p))-1))
100#define ALIGN_UP(a,p) ((((a) + ((1UL<<(p))-1))) & ~((1UL<<(p))-1))
volatile int buf[CACHE_FLUSH_BUFFER_SIZE_INTS]
pfm_pmu_support_t itanium2_support
pfm_pmu_support_t intel_nhm_support
pfm_pmu_support_t sparc_support
pfm_pmu_support_t itanium_support
pfm_pmu_support_t montecito_support
void __pfm_vbprintf(const char *fmt,...)
int __pfm_getcpuinfo_attr(const char *attr, char *ret_buf, size_t maxlen)
pfm_pmu_support_t generic_mips64_support
pfm_pmu_support_t amd64_support
pfm_pmu_support_t i386_pii_support
pfm_pmu_support_t i386_pm_support
pfm_pmu_support_t core_support
static int _pfmlib_get_sys_base()
static unsigned int pfm_num_masks(int e)
pfm_pmu_support_t generic_ia64_support
int __pfm_check_event(pfmlib_event_t *e)
pfm_pmu_support_t i386_ppro_support
pfm_pmu_support_t intel_atom_support
pfm_pmu_support_t i386_p6_support
void pfm_init_syscalls(void)
pfm_pmu_support_t crayx2_support
pfm_pmu_support_t gen_powerpc_support
pfm_pmu_support_t cell_support
pfm_pmu_support_t sicortex_support
pfm_pmu_support_t intel_wsm_support
pfm_pmu_support_t gen_ia32_support
int _pfmlib_major_version
pfm_pmu_support_t coreduo_support
int _pfmlib_minor_version
pfm_pmu_support_t pentium4_support
static char * get_event_desc(int event)
pfm_pmu_support_t * current