1 /* Generated by ./xlat/gen.sh from ./xlat/perf_hw_cache_op_id.in; do not edit. */ 2 #if !(defined(PERF_COUNT_HW_CACHE_OP_READ) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_OP_READ) && HAVE_DECL_PERF_COUNT_HW_CACHE_OP_READ)) 3 # define PERF_COUNT_HW_CACHE_OP_READ 0 4 #endif 5 #if !(defined(PERF_COUNT_HW_CACHE_OP_WRITE) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_OP_WRITE) && HAVE_DECL_PERF_COUNT_HW_CACHE_OP_WRITE)) 6 # define PERF_COUNT_HW_CACHE_OP_WRITE 1 7 #endif 8 #if !(defined(PERF_COUNT_HW_CACHE_OP_PREFETCH) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_OP_PREFETCH) && HAVE_DECL_PERF_COUNT_HW_CACHE_OP_PREFETCH)) 9 # define PERF_COUNT_HW_CACHE_OP_PREFETCH 2 10 #endif 11 12 #ifdef IN_MPERS 13 14 # error static const struct xlat perf_hw_cache_op_id in mpers mode 15 16 #else 17 18 static 19 const struct xlat perf_hw_cache_op_id[] = { 20 XLAT(PERF_COUNT_HW_CACHE_OP_READ), 21 XLAT(PERF_COUNT_HW_CACHE_OP_WRITE), 22 XLAT(PERF_COUNT_HW_CACHE_OP_PREFETCH), 23 /* this array should remain not NULL-terminated */ 24 }; 25 26 #endif /* !IN_MPERS */ 27