20#define CPU_CALL(call, err_handle) do { \
21 int _status = (call); \
22 if (_status != CPU_SUCCESS) { \
23 SUBDBG("error: function %s failed with error %d\n", #call, _status); \
32 strcpy(info->
name,
"UNKNOWN"));
53 for (level = 1; level <= cache_levels; ++level) {
132 memset(dev_type_info, 0,
sizeof(*dev_type_info));
136 strcpy(dev_type_info->
vendor,
"UNKNOWN"));
141 strcpy(dev_type_info->
status,
"Device Initialized");
void open_cpu_dev_type(_sysdetect_dev_type_info_t *dev_type_info)
void close_cpu_dev_type(_sysdetect_dev_type_info_t *dev_type_info)
static void fill_cpu_info(_sysdetect_cpu_info_t *info)
#define CPU_CALL(call, err_handle)
int cpu_get_attribute(CPU_attr_e attr, int *value)
int cpu_get_attribute_at(CPU_attr_e attr, int loc, int *value)
int cpu_get_name(char *name)
int cpu_get_vendor(char *vendor)
@ CPU_ATTR__CACHE_MAX_NUM_LEVELS
@ CPU_ATTR__CACHE_INST_TOT_SIZE
@ CPU_ATTR__HWTHREAD_NUMA_AFFINITY
@ CPU_ATTR__CACHE_UNIF_TOT_SIZE
@ CPU_ATTR__CACHE_DATA_ASSOCIATIVITY
@ CPU_ATTR__CACHE_INST_LINE_SIZE
@ CPU_ATTR__NUMA_MEM_SIZE
@ CPU_ATTR__CACHE_UNIF_LINE_SIZE
@ CPU_ATTR__CACHE_DATA_NUM_LINES
@ CPU_ATTR__CACHE_UNIF_ASSOCIATIVITY
@ CPU_ATTR__CPUID_STEPPING
@ CPU_ATTR__CACHE_INST_PRESENT
@ CPU_ATTR__CACHE_DATA_PRESENT
@ CPU_ATTR__CACHE_DATA_LINE_SIZE
@ CPU_ATTR__CACHE_INST_ASSOCIATIVITY
@ CPU_ATTR__CACHE_INST_NUM_LINES
@ CPU_ATTR__CACHE_UNIF_NUM_LINES
@ CPU_ATTR__CACHE_DATA_TOT_SIZE
@ CPU_ATTR__CACHE_UNIF_PRESENT
#define PAPI_DEV_TYPE_ID__CPU
static double a[MATRIX_SIZE][MATRIX_SIZE]
static double b[MATRIX_SIZE][MATRIX_SIZE]
static double c[MATRIX_SIZE][MATRIX_SIZE]
#define PAPI_MH_TYPE_DATA
#define PAPI_MH_TYPE_INST
#define PAPI_MH_TYPE_UNIFIED
#define papi_calloc(a, b)
PAPI_mh_cache_info_t cache[PAPI_MH_MAX_LEVELS]
_sysdetect_cache_level_info_t clevel[PAPI_MAX_MEM_HIERARCHY_LEVELS]
int numa_affinity[PAPI_MAX_NUM_THREADS]
char name[PAPI_MAX_STR_LEN]
int numa_memory[PAPI_MAX_NUM_NODES]
char status[PAPI_MAX_STR_LEN]
char vendor[PAPI_MAX_STR_LEN]
_sysdetect_dev_info_u * dev_info_arr