1 /* Generated by ./xlat/gen.sh from ./xlat/perf_hw_cache_id.in; do not edit. */
2 #if !(defined(PERF_COUNT_HW_CACHE_L1D) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_L1D) && HAVE_DECL_PERF_COUNT_HW_CACHE_L1D))
3 # define PERF_COUNT_HW_CACHE_L1D 0
4 #endif
5 #if !(defined(PERF_COUNT_HW_CACHE_L1I) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_L1I) && HAVE_DECL_PERF_COUNT_HW_CACHE_L1I))
6 # define PERF_COUNT_HW_CACHE_L1I 1
7 #endif
8 #if !(defined(PERF_COUNT_HW_CACHE_LL) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_LL) && HAVE_DECL_PERF_COUNT_HW_CACHE_LL))
9 # define PERF_COUNT_HW_CACHE_LL 2
10 #endif
11 #if !(defined(PERF_COUNT_HW_CACHE_DTLB) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_DTLB) && HAVE_DECL_PERF_COUNT_HW_CACHE_DTLB))
12 # define PERF_COUNT_HW_CACHE_DTLB 3
13 #endif
14 #if !(defined(PERF_COUNT_HW_CACHE_ITLB) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_ITLB) && HAVE_DECL_PERF_COUNT_HW_CACHE_ITLB))
15 # define PERF_COUNT_HW_CACHE_ITLB 4
16 #endif
17 #if !(defined(PERF_COUNT_HW_CACHE_BPU) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_BPU) && HAVE_DECL_PERF_COUNT_HW_CACHE_BPU))
18 # define PERF_COUNT_HW_CACHE_BPU 5
19 #endif
20 #if !(defined(PERF_COUNT_HW_CACHE_NODE) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_NODE) && HAVE_DECL_PERF_COUNT_HW_CACHE_NODE))
21 # define PERF_COUNT_HW_CACHE_NODE 6
22 #endif
23 
24 #ifdef IN_MPERS
25 
26 # error static const struct xlat perf_hw_cache_id in mpers mode
27 
28 #else
29 
30 static
31 const struct xlat perf_hw_cache_id[] = {
32  XLAT(PERF_COUNT_HW_CACHE_L1D),
33  XLAT(PERF_COUNT_HW_CACHE_L1I),
34  XLAT(PERF_COUNT_HW_CACHE_LL),
35  XLAT(PERF_COUNT_HW_CACHE_DTLB),
36  XLAT(PERF_COUNT_HW_CACHE_ITLB),
37  XLAT(PERF_COUNT_HW_CACHE_BPU),
38  XLAT(PERF_COUNT_HW_CACHE_NODE),
39  /* this array should remain not NULL-terminated */
40 };
41 
42 #endif /* !IN_MPERS */
43