40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C
		
	
	
	
/* Generated by ./xlat/gen.sh from ./xlat/perf_hw_cache_op_result_id.in; do not edit. */
 | 
						|
 | 
						|
#include "gcc_compat.h"
 | 
						|
#include "static_assert.h"
 | 
						|
 | 
						|
#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)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((PERF_COUNT_HW_CACHE_RESULT_ACCESS) == (0), "PERF_COUNT_HW_CACHE_RESULT_ACCESS != 0");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define PERF_COUNT_HW_CACHE_RESULT_ACCESS 0
 | 
						|
#endif
 | 
						|
#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)
 | 
						|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
static_assert((PERF_COUNT_HW_CACHE_RESULT_MISS) == (1), "PERF_COUNT_HW_CACHE_RESULT_MISS != 1");
 | 
						|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
 | 
						|
#else
 | 
						|
# define PERF_COUNT_HW_CACHE_RESULT_MISS 1
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef XLAT_MACROS_ONLY
 | 
						|
 | 
						|
# ifdef IN_MPERS
 | 
						|
 | 
						|
#  error static const struct xlat perf_hw_cache_op_result_id in mpers mode
 | 
						|
 | 
						|
# else
 | 
						|
 | 
						|
static
 | 
						|
const struct xlat perf_hw_cache_op_result_id[] = {
 | 
						|
 | 
						|
 XLAT(PERF_COUNT_HW_CACHE_RESULT_ACCESS),
 | 
						|
 XLAT(PERF_COUNT_HW_CACHE_RESULT_MISS),
 | 
						|
 XLAT_END
 | 
						|
};
 | 
						|
 | 
						|
# endif /* !IN_MPERS */
 | 
						|
 | 
						|
#endif /* !XLAT_MACROS_ONLY */
 |