1 /* Generated by ./xlat/gen.sh from ./xlat/perf_event_open_flags.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(PERF_FLAG_FD_NO_GROUP) || (defined(HAVE_DECL_PERF_FLAG_FD_NO_GROUP) && HAVE_DECL_PERF_FLAG_FD_NO_GROUP)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((PERF_FLAG_FD_NO_GROUP) == (1), "PERF_FLAG_FD_NO_GROUP != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define PERF_FLAG_FD_NO_GROUP 1
12 #endif
13 #if defined(PERF_FLAG_FD_OUTPUT) || (defined(HAVE_DECL_PERF_FLAG_FD_OUTPUT) && HAVE_DECL_PERF_FLAG_FD_OUTPUT)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((PERF_FLAG_FD_OUTPUT) == (2), "PERF_FLAG_FD_OUTPUT != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define PERF_FLAG_FD_OUTPUT 2
19 #endif
20 #if defined(PERF_FLAG_PID_CGROUP) || (defined(HAVE_DECL_PERF_FLAG_PID_CGROUP) && HAVE_DECL_PERF_FLAG_PID_CGROUP)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((PERF_FLAG_PID_CGROUP) == (4), "PERF_FLAG_PID_CGROUP != 4");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define PERF_FLAG_PID_CGROUP 4
26 #endif
27 #if defined(PERF_FLAG_FD_CLOEXEC) || (defined(HAVE_DECL_PERF_FLAG_FD_CLOEXEC) && HAVE_DECL_PERF_FLAG_FD_CLOEXEC)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((PERF_FLAG_FD_CLOEXEC) == (8), "PERF_FLAG_FD_CLOEXEC != 8");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define PERF_FLAG_FD_CLOEXEC 8
33 #endif
34 
35 #ifndef XLAT_MACROS_ONLY
36 
37 # ifdef IN_MPERS
38 
39 #  error static const struct xlat perf_event_open_flags in mpers mode
40 
41 # else
42 
43 static
44 const struct xlat perf_event_open_flags[] = {
45  XLAT(PERF_FLAG_FD_NO_GROUP),
46  XLAT(PERF_FLAG_FD_OUTPUT),
47  XLAT(PERF_FLAG_PID_CGROUP),
48  XLAT(PERF_FLAG_FD_CLOEXEC),
49  XLAT_END
50 };
51 
52 # endif /* !IN_MPERS */
53 
54 #endif /* !XLAT_MACROS_ONLY */
55