12 if ( hwinfo == NULL ) {
26 strncpy(event,
"nhm_unc::UNC_CLK_UNHALTED",size);
33 strncpy(event,
"wsm_unc::UNC_CLK_UNHALTED",size);
38 strncpy(event,
"snb_unc_cbo0::UNC_CLOCKTICKS",size);
43 strncpy(event,
"ivb_unc_cbo0::UNC_CLOCKTICKS",size);
49 strncpy(event,
"snbep_unc_imc0::UNC_M_CLOCKTICKS",size);
60 strncpy(event,
"hswep_unc_cbo0::UNC_C_CLOCKTICKS",size);
71 strncpy(event,
"bdx_unc_cbo0::UNC_C_CLOCKTICKS",size);
86 strncpy(event,
"knl_unc_imc0::UNC_M_D_CLOCKTICKS",size);
96 strncpy(event,
"DRAM_ACCESSES:ALL",size);
111 if ( hwinfo == NULL ) {
137 strncpy(
event_name,
"UNC_CBO_CACHE_LOOKUP:STATE_I:ANY_FILTER",size);
138 strncpy(uncore_base,
"snb_unc_cbo",size);
143 strncpy(
event_name,
"UNC_CBO_CACHE_LOOKUP:STATE_I:ANY_FILTER",size);
144 strncpy(uncore_base,
"ivb_unc_cbo",BUFSIZ);
150 strncpy(
event_name,
"UNC_C_TOR_OCCUPANCY:ALL",size);
151 strncpy(uncore_base,
"snbep_unc_cbo",size);
162 strncpy(
event_name,
"UNC_C_COUNTER0_OCCUPANCY",size);
163 strncpy(uncore_base,
"hswep_unc_cbo",size);
174 strncpy(
event_name,
"UNC_C_COUNTER0_OCCUPANCY",size);
175 strncpy(uncore_base,
"bdx_unc_cbo",size);
190 strncpy(
event_name,
"UNC_M_D_CLOCKTICKS",size);
191 strncpy(uncore_base,
"knl_unc_imc",size);
get information about the system hardware
char event_name[2][PAPI_MAX_STR_LEN]
#define PAPI_VENDOR_INTEL
Return codes and api definitions.
char * get_uncore_cbox_event(char *event_name, char *uncore_base, int size)
char * get_uncore_event(char *event, int size)