1 /* Generated by ./xlat/gen.sh from ./xlat/perf_hw_cache_op_result_id.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(PERF_COUNT_HW_CACHE_RESULT_ACCESS) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_RESULT_ACCESS) && HAVE_DECL_PERF_COUNT_HW_CACHE_RESULT_ACCESS) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((PERF_COUNT_HW_CACHE_RESULT_ACCESS) == (0), "PERF_COUNT_HW_CACHE_RESULT_ACCESS != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define PERF_COUNT_HW_CACHE_RESULT_ACCESS 0 12 #endif 13 #if defined(PERF_COUNT_HW_CACHE_RESULT_MISS) || (defined(HAVE_DECL_PERF_COUNT_HW_CACHE_RESULT_MISS) && HAVE_DECL_PERF_COUNT_HW_CACHE_RESULT_MISS) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((PERF_COUNT_HW_CACHE_RESULT_MISS) == (1), "PERF_COUNT_HW_CACHE_RESULT_MISS != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define PERF_COUNT_HW_CACHE_RESULT_MISS 1 19 #endif 20 21 #ifndef XLAT_MACROS_ONLY 22 23 # ifdef IN_MPERS 24 25 # error static const struct xlat perf_hw_cache_op_result_id in mpers mode 26 27 # else 28 29 static 30 const struct xlat perf_hw_cache_op_result_id[] = { 31 32 XLAT(PERF_COUNT_HW_CACHE_RESULT_ACCESS), 33 XLAT(PERF_COUNT_HW_CACHE_RESULT_MISS), 34 XLAT_END 35 }; 36 37 # endif /* !IN_MPERS */ 38 39 #endif /* !XLAT_MACROS_ONLY */ 40