Classes |
| struct | pfmlib_regmask_t |
| struct | pfmlib_event_t |
| struct | pfmlib_reg_t |
| struct | pfmlib_input_param_t |
| struct | pfmlib_output_param_t |
| struct | pfmlib_options_t |
Defines |
| #define | PFMLIB_VERSION (3 << 16 | 9) |
| #define | PFMLIB_MAJ_VERSION(v) ((v)>>16) |
| #define | PFMLIB_MIN_VERSION(v) ((v) & 0xffff) |
| #define | PFMLIB_MAX_PMCS 512 |
| #define | PFMLIB_MAX_PMDS 512 |
| #define | PFM_PLM0 0x1 |
| #define | PFM_PLM1 0x2 |
| #define | PFM_PLM2 0x4 |
| #define | PFM_PLM3 0x8 |
| #define | PFMLIB_REG_MAX PFMLIB_MAX_PMDS |
| #define | __PFMLIB_REG_BV_BITS (sizeof(pfmlib_regmask_bits_t)<<3) |
| #define | PFMLIB_BVSIZE(x) (((x)+(__PFMLIB_REG_BV_BITS)-1) / __PFMLIB_REG_BV_BITS) |
| #define | PFMLIB_REG_BV PFMLIB_BVSIZE(PFMLIB_REG_MAX) |
| #define | PFMLIB_MAX_MASKS_PER_EVENT 48 |
| #define | PFMLIB_PFP_SYSTEMWIDE 0x1 |
| #define | PFMLIB_NO_PMU -1 |
| #define | PFMLIB_UNKNOWN_PMU 0 |
| #define | PFMLIB_GEN_IA64_PMU 1 |
| #define | PFMLIB_ITANIUM_PMU 2 |
| #define | PFMLIB_ITANIUM2_PMU 3 |
| #define | PFMLIB_MONTECITO_PMU 4 |
| #define | PFMLIB_AMD64_PMU 16 |
| #define | PFMLIB_GEN_IA32_PMU 63 |
| #define | PFMLIB_I386_P6_PMU 32 |
| #define | PFMLIB_PENTIUM4_PMU 33 |
| #define | PFMLIB_COREDUO_PMU 34 |
| #define | PFMLIB_I386_PM_PMU 35 |
| #define | PFMLIB_CORE_PMU 36 |
| #define | PFMLIB_INTEL_CORE_PMU 36 |
| #define | PFMLIB_INTEL_PPRO_PMU 37 |
| #define | PFMLIB_INTEL_PII_PMU 38 |
| #define | PFMLIB_INTEL_ATOM_PMU 39 |
| #define | PFMLIB_INTEL_NHM_PMU 40 |
| #define | PFMLIB_INTEL_WSM_PMU 41 |
| #define | PFMLIB_MIPS_20KC_PMU 64 |
| #define | PFMLIB_MIPS_24K_PMU 65 |
| #define | PFMLIB_MIPS_25KF_PMU 66 |
| #define | PFMLIB_MIPS_34K_PMU 67 |
| #define | PFMLIB_MIPS_5KC_PMU 68 |
| #define | PFMLIB_MIPS_74K_PMU 69 |
| #define | PFMLIB_MIPS_R10000_PMU 70 |
| #define | PFMLIB_MIPS_R12000_PMU 71 |
| #define | PFMLIB_MIPS_RM7000_PMU 72 |
| #define | PFMLIB_MIPS_RM9000_PMU 73 |
| #define | PFMLIB_MIPS_SB1_PMU 74 |
| #define | PFMLIB_MIPS_VR5432_PMU 75 |
| #define | PFMLIB_MIPS_VR5500_PMU 76 |
| #define | PFMLIB_MIPS_ICE9A_PMU 77 |
| #define | PFMLIB_MIPS_ICE9B_PMU 78 |
| #define | PFMLIB_POWERPC_PMU 90 |
| #define | PFMLIB_CRAYX2_PMU 96 |
| #define | PFMLIB_CELL_PMU 100 |
| #define | PFMLIB_PPC970_PMU 110 |
| #define | PFMLIB_PPC970MP_PMU 111 |
| #define | PFMLIB_POWER3_PMU 112 |
| #define | PFMLIB_POWER4_PMU 113 |
| #define | PFMLIB_POWER5_PMU 114 |
| #define | PFMLIB_POWER5p_PMU 115 |
| #define | PFMLIB_POWER6_PMU 116 |
| #define | PFMLIB_POWER7_PMU 117 |
| #define | PFMLIB_SPARC_ULTRA12_PMU 130 |
| #define | PFMLIB_SPARC_ULTRA3_PMU 131 |
| #define | PFMLIB_SPARC_ULTRA3I_PMU 132 |
| #define | PFMLIB_SPARC_ULTRA3PLUS_PMU 133 |
| #define | PFMLIB_SPARC_ULTRA4PLUS_PMU 134 |
| #define | PFMLIB_SPARC_NIAGARA1_PMU 135 |
| #define | PFMLIB_SPARC_NIAGARA2_PMU 136 |
| #define | PFMLIB_SUCCESS 0 |
| #define | PFMLIB_ERR_NOTSUPP -1 |
| #define | PFMLIB_ERR_INVAL -2 |
| #define | PFMLIB_ERR_NOINIT -3 |
| #define | PFMLIB_ERR_NOTFOUND -4 |
| #define | PFMLIB_ERR_NOASSIGN -5 |
| #define | PFMLIB_ERR_FULL -6 |
| #define | PFMLIB_ERR_EVTMANY -7 |
| #define | PFMLIB_ERR_MAGIC -8 |
| #define | PFMLIB_ERR_FEATCOMB -9 |
| #define | PFMLIB_ERR_EVTSET -10 |
| #define | PFMLIB_ERR_EVTINCOMP -11 |
| #define | PFMLIB_ERR_TOOMANY -12 |
| #define | PFMLIB_ERR_IRRTOOBIG -13 |
| #define | PFMLIB_ERR_IRREMPTY -14 |
| #define | PFMLIB_ERR_IRRINVAL -15 |
| #define | PFMLIB_ERR_IRRTOOMANY -16 |
| #define | PFMLIB_ERR_DRRINVAL -17 |
| #define | PFMLIB_ERR_DRRTOOMANY -18 |
| #define | PFMLIB_ERR_BADHOST -19 |
| #define | PFMLIB_ERR_IRRALIGN -20 |
| #define | PFMLIB_ERR_IRRFLAGS -21 |
| #define | PFMLIB_ERR_UMASK -22 |
| #define | PFMLIB_ERR_NOMEM -23 |
| #define | __PFMLIB_REGMASK_EL(g) ((g)/__PFMLIB_REG_BV_BITS) |
| #define | __PFMLIB_REGMASK_MASK(g) (((pfmlib_regmask_bits_t)1) << ((g) % __PFMLIB_REG_BV_BITS)) |
Typedefs |
| typedef unsigned long | pfmlib_regmask_bits_t |
| typedef int | pfm_err_t |
Functions |
| pfm_err_t | pfm_set_options (pfmlib_options_t *opt) |
| pfm_err_t | pfm_initialize (void) |
| pfm_err_t | pfm_list_supported_pmus (int(*pf)(const char *fmt,...)) |
| pfm_err_t | pfm_get_pmu_name (char *name, int maxlen) |
| pfm_err_t | pfm_get_pmu_type (int *type) |
| pfm_err_t | pfm_get_pmu_name_bytype (int type, char *name, size_t maxlen) |
| pfm_err_t | pfm_is_pmu_supported (int type) |
| pfm_err_t | pfm_force_pmu (int type) |
| pfm_err_t | pfm_find_event (const char *str, unsigned int *idx) |
| pfm_err_t | pfm_find_event_byname (const char *name, unsigned int *idx) |
| pfm_err_t | pfm_find_event_bycode (int code, unsigned int *idx) |
| pfm_err_t | pfm_find_event_bycode_next (int code, unsigned int start, unsigned int *next) |
| pfm_err_t | pfm_find_event_mask (unsigned int event_idx, const char *str, unsigned int *mask_idx) |
| pfm_err_t | pfm_find_full_event (const char *str, pfmlib_event_t *e) |
| pfm_err_t | pfm_get_max_event_name_len (size_t *len) |
| pfm_err_t | pfm_get_num_events (unsigned int *count) |
| pfm_err_t | pfm_get_num_event_masks (unsigned int event_idx, unsigned int *count) |
| pfm_err_t | pfm_get_event_name (unsigned int idx, char *name, size_t maxlen) |
| pfm_err_t | pfm_get_full_event_name (pfmlib_event_t *e, char *name, size_t maxlen) |
| pfm_err_t | pfm_get_event_code (unsigned int idx, int *code) |
| pfm_err_t | pfm_get_event_mask_code (unsigned int idx, unsigned int mask_idx, unsigned int *code) |
| pfm_err_t | pfm_get_event_counters (unsigned int idx, pfmlib_regmask_t *counters) |
| pfm_err_t | pfm_get_event_description (unsigned int idx, char **str) |
| pfm_err_t | pfm_get_event_code_counter (unsigned int idx, unsigned int cnt, int *code) |
| pfm_err_t | pfm_get_event_mask_name (unsigned int event_idx, unsigned int mask_idx, char *name, size_t maxlen) |
| pfm_err_t | pfm_get_event_mask_description (unsigned int event_idx, unsigned int mask_idx, char **desc) |
| pfm_err_t | pfm_dispatch_events (pfmlib_input_param_t *p, void *model_in, pfmlib_output_param_t *q, void *model_out) |
| pfm_err_t | pfm_get_impl_pmcs (pfmlib_regmask_t *impl_pmcs) |
| pfm_err_t | pfm_get_impl_pmds (pfmlib_regmask_t *impl_pmds) |
| pfm_err_t | pfm_get_impl_counters (pfmlib_regmask_t *impl_counters) |
| pfm_err_t | pfm_get_num_pmds (unsigned int *num) |
| pfm_err_t | pfm_get_num_pmcs (unsigned int *num) |
| pfm_err_t | pfm_get_num_counters (unsigned int *num) |
| pfm_err_t | pfm_get_hw_counter_width (unsigned int *width) |
| pfm_err_t | pfm_get_version (unsigned int *version) |
| char * | pfm_strerror (int code) |
| pfm_err_t | pfm_get_cycle_event (pfmlib_event_t *e) |
| pfm_err_t | pfm_get_inst_retired_event (pfmlib_event_t *e) |
| static int | pfm_regmask_isset (pfmlib_regmask_t *h, unsigned int b) |
| static int | pfm_regmask_set (pfmlib_regmask_t *h, unsigned int b) |
| static int | pfm_regmask_clr (pfmlib_regmask_t *h, unsigned int b) |
| static int | pfm_regmask_weight (pfmlib_regmask_t *h, unsigned int *w) |
| static int | pfm_regmask_eq (pfmlib_regmask_t *h1, pfmlib_regmask_t *h2) |
| static int | pfm_regmask_and (pfmlib_regmask_t *dst, pfmlib_regmask_t *h1, pfmlib_regmask_t *h2) |
| static int | pfm_regmask_andnot (pfmlib_regmask_t *dst, pfmlib_regmask_t *h1, pfmlib_regmask_t *h2) |
| static int | pfm_regmask_or (pfmlib_regmask_t *dst, pfmlib_regmask_t *h1, pfmlib_regmask_t *h2) |
| static int | pfm_regmask_copy (pfmlib_regmask_t *dst, pfmlib_regmask_t *src) |
| static int | pfm_regmask_not (pfmlib_regmask_t *dst) |