1 /* Generated by ./xlat/gen.sh from ./xlat/perf_hw_id.in; do not edit. */ 2 #if !(defined(PERF_COUNT_HW_CPU_CYCLES) || (defined(HAVE_DECL_PERF_COUNT_HW_CPU_CYCLES) && HAVE_DECL_PERF_COUNT_HW_CPU_CYCLES)) 3 # define PERF_COUNT_HW_CPU_CYCLES 0 4 #endif 5 #if !(defined(PERF_COUNT_HW_INSTRUCTIONS) || (defined(HAVE_DECL_PERF_COUNT_HW_INSTRUCTIONS) && HAVE_DECL_PERF_COUNT_HW_INSTRUCTIONS)) 6 # define PERF_COUNT_HW_INSTRUCTIONS 1 7 #endif 8 #if !(defined(PERF_COUNT_HW_CACHE_REFERENCES) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_REFERENCES) && HAVE_DECL_PERF_COUNT_HW_CACHE_REFERENCES)) 9 # define PERF_COUNT_HW_CACHE_REFERENCES 2 10 #endif 11 #if !(defined(PERF_COUNT_HW_CACHE_MISSES) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_MISSES) && HAVE_DECL_PERF_COUNT_HW_CACHE_MISSES)) 12 # define PERF_COUNT_HW_CACHE_MISSES 3 13 #endif 14 #if !(defined(PERF_COUNT_HW_BRANCH_INSTRUCTIONS) || (defined(HAVE_DECL_PERF_COUNT_HW_BRANCH_INSTRUCTIONS) && HAVE_DECL_PERF_COUNT_HW_BRANCH_INSTRUCTIONS)) 15 # define PERF_COUNT_HW_BRANCH_INSTRUCTIONS 4 16 #endif 17 #if !(defined(PERF_COUNT_HW_BRANCH_MISSES) || (defined(HAVE_DECL_PERF_COUNT_HW_BRANCH_MISSES) && HAVE_DECL_PERF_COUNT_HW_BRANCH_MISSES)) 18 # define PERF_COUNT_HW_BRANCH_MISSES 5 19 #endif 20 #if !(defined(PERF_COUNT_HW_BUS_CYCLES) || (defined(HAVE_DECL_PERF_COUNT_HW_BUS_CYCLES) && HAVE_DECL_PERF_COUNT_HW_BUS_CYCLES)) 21 # define PERF_COUNT_HW_BUS_CYCLES 6 22 #endif 23 #if !(defined(PERF_COUNT_HW_STALLED_CYCLES_FRONTEND) || (defined(HAVE_DECL_PERF_COUNT_HW_STALLED_CYCLES_FRONTEND) && HAVE_DECL_PERF_COUNT_HW_STALLED_CYCLES_FRONTEND)) 24 # define PERF_COUNT_HW_STALLED_CYCLES_FRONTEND 7 25 #endif 26 #if !(defined(PERF_COUNT_HW_STALLED_CYCLES_BACKEND) || (defined(HAVE_DECL_PERF_COUNT_HW_STALLED_CYCLES_BACKEND) && HAVE_DECL_PERF_COUNT_HW_STALLED_CYCLES_BACKEND)) 27 # define PERF_COUNT_HW_STALLED_CYCLES_BACKEND 8 28 #endif 29 #if !(defined(PERF_COUNT_HW_REF_CPU_CYCLES) || (defined(HAVE_DECL_PERF_COUNT_HW_REF_CPU_CYCLES) && HAVE_DECL_PERF_COUNT_HW_REF_CPU_CYCLES)) 30 # define PERF_COUNT_HW_REF_CPU_CYCLES 9 31 #endif 32 33 #ifdef IN_MPERS 34 35 # error static const struct xlat perf_hw_id in mpers mode 36 37 #else 38 39 static 40 const struct xlat perf_hw_id[] = { 41 XLAT(PERF_COUNT_HW_CPU_CYCLES), 42 XLAT(PERF_COUNT_HW_INSTRUCTIONS), 43 XLAT(PERF_COUNT_HW_CACHE_REFERENCES), 44 XLAT(PERF_COUNT_HW_CACHE_MISSES), 45 XLAT(PERF_COUNT_HW_BRANCH_INSTRUCTIONS), 46 XLAT(PERF_COUNT_HW_BRANCH_MISSES), 47 XLAT(PERF_COUNT_HW_BUS_CYCLES), 48 XLAT(PERF_COUNT_HW_STALLED_CYCLES_FRONTEND), 49 XLAT(PERF_COUNT_HW_STALLED_CYCLES_BACKEND), 50 XLAT(PERF_COUNT_HW_REF_CPU_CYCLES), 51 /* this array should remain not NULL-terminated */ 52 }; 53 54 #endif /* !IN_MPERS */ 55