24 #ifndef __PFMLIB_NHM_H__ 25 #define __PFMLIB_NHM_H__ 48 #define PMU_NHM_NUM_COUNTERS 16 51 unsigned long long val;
53 unsigned long sel_event : 8;
54 unsigned long sel_umask : 8;
55 unsigned long sel_usr : 1;
56 unsigned long sel_os : 1;
57 unsigned long sel_edge : 1;
58 unsigned long sel_pc : 1;
59 unsigned long sel_int : 1;
60 unsigned long sel_anythr : 1;
61 unsigned long sel_en : 1;
62 unsigned long sel_inv : 1;
63 unsigned long sel_cnt_mask : 8;
64 unsigned long sel_res2 : 32;
67 unsigned long usel_event : 8;
68 unsigned long usel_umask : 8;
69 unsigned long usel_res1 : 1;
70 unsigned long usel_occ : 1;
71 unsigned long usel_edge : 1;
72 unsigned long usel_res2 : 1;
73 unsigned long usel_int : 1;
74 unsigned long usel_res3 : 1;
75 unsigned long usel_en : 1;
76 unsigned long usel_inv : 1;
77 unsigned long usel_cnt_mask : 8;
78 unsigned long usel_res4 : 32;
81 unsigned long cpl_eq0 : 1;
82 unsigned long cpl_neq0 : 1;
83 unsigned long jcc : 1;
84 unsigned long near_rel_call : 1;
85 unsigned long near_ind_call : 1;
86 unsigned long near_ret : 1;
87 unsigned long near_ind_jmp : 1;
88 unsigned long near_rel_jmp : 1;
89 unsigned long far_branch : 1;
90 unsigned long reserved1 : 23;
91 unsigned long reserved2 : 32;
103 #define PFM_NHM_SEL_INV 0x1 104 #define PFM_NHM_SEL_EDGE 0x2 105 #define PFM_NHM_SEL_ANYTHR 0x4 106 #define PFM_NHM_SEL_OCC_RST 0x8 118 #define PFM_NHM_LBR_JCC 0x4 119 #define PFM_NHM_LBR_NEAR_REL_CALL 0x8 120 #define PFM_NHM_LBR_NEAR_IND_CALL 0x10 121 #define PFM_NHM_LBR_NEAR_RET 0x20 122 #define PFM_NHM_LBR_NEAR_IND_JMP 0x40 123 #define PFM_NHM_LBR_NEAR_REL_JMP 0x80 124 #define PFM_NHM_LBR_FAR_BRANCH 0x100 125 #define PFM_NHM_LBR_ALL 0x1fc
unsigned long long uint64_t
int pfm_nhm_data_src_desc(unsigned int val, char **desc)
unsigned int ld_lat_thres
#define PMU_NHM_NUM_COUNTERS
int pfm_nhm_is_uncore(pfmlib_event_t *e)
int pfm_nhm_is_pebs(pfmlib_event_t *e)