Go to the source code of this file.
◆ check_if_cache_info_available()
| static int check_if_cache_info_available |
( |
void |
| ) |
|
|
static |
Definition at line 21 of file cache_helper.c.
21 {
22
23 int cache_type,level,j;
24
25
28 return -1;
29 }
30
31
33 for(j=0;j<2;j++) {
37
38 if (level==0) {
46 }
54 }
55 }
56 else if (level==1) {
63 }
64 else if (level==2) {
71 }
72
73 }
74 }
75 return 0;
76}
const PAPI_hw_info_t * hw_info
static struct cache_info_t cache_info[MAX_CACHE]
get information about the system hardware
#define PAPI_MH_TYPE_DATA
#define PAPI_MH_CACHE_REPLACEMENT_POLICY(a)
#define PAPI_MH_CACHE_TYPE(a)
#define PAPI_MH_TYPE_INST
#define PAPI_MH_TYPE_EMPTY
#define PAPI_MH_CACHE_WRITE_POLICY(a)
PAPI_mh_info_t mem_hierarchy
PAPI_mh_level_t level[PAPI_MAX_MEM_HIERARCHY_LEVELS]
PAPI_mh_cache_info_t cache[PAPI_MH_MAX_LEVELS]
◆ get_cachesize()
Definition at line 78 of file cache_helper.c.
78 {
79
81
84
86 printf("Errror!\n");
87 return -1;
88 }
89
91}
static int check_if_cache_info_available(void)
◆ get_entries()
Definition at line 94 of file cache_helper.c.
94 {
95
97
100
102 printf("Errror!\n");
103 return -1;
104 }
105
107}
◆ get_linesize()
Definition at line 110 of file cache_helper.c.
110 {
111
113
116
118 printf("Errror!\n");
119 return -1;
120 }
121
123}
◆ cache_info
◆ hw_info