1 /* Generated by ./xlat/gen.sh from ./xlat/ebpf_class.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(BPF_LD) || (defined(HAVE_DECL_BPF_LD) && HAVE_DECL_BPF_LD)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((BPF_LD) == (0x0), "BPF_LD != 0x0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define BPF_LD 0x0
12 #endif
13 #if defined(BPF_LDX) || (defined(HAVE_DECL_BPF_LDX) && HAVE_DECL_BPF_LDX)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((BPF_LDX) == (0x1), "BPF_LDX != 0x1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define BPF_LDX 0x1
19 #endif
20 #if defined(BPF_ST) || (defined(HAVE_DECL_BPF_ST) && HAVE_DECL_BPF_ST)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((BPF_ST) == (0x2), "BPF_ST != 0x2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define BPF_ST 0x2
26 #endif
27 #if defined(BPF_STX) || (defined(HAVE_DECL_BPF_STX) && HAVE_DECL_BPF_STX)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((BPF_STX) == (0x3), "BPF_STX != 0x3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define BPF_STX 0x3
33 #endif
34 #if defined(BPF_ALU) || (defined(HAVE_DECL_BPF_ALU) && HAVE_DECL_BPF_ALU)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((BPF_ALU) == (0x4), "BPF_ALU != 0x4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define BPF_ALU 0x4
40 #endif
41 #if defined(BPF_JMP) || (defined(HAVE_DECL_BPF_JMP) && HAVE_DECL_BPF_JMP)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((BPF_JMP) == (0x5), "BPF_JMP != 0x5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define BPF_JMP 0x5
47 #endif
48 #if defined(BPF_ALU64) || (defined(HAVE_DECL_BPF_ALU64) && HAVE_DECL_BPF_ALU64)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((BPF_ALU64) == (0x7), "BPF_ALU64 != 0x7");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define BPF_ALU64 0x7
54 #endif
55 
56 #ifndef XLAT_MACROS_ONLY
57 
58 # ifdef IN_MPERS
59 
60 #  error static const struct xlat ebpf_class in mpers mode
61 
62 # else
63 
64 static
65 const struct xlat ebpf_class[] = {
66  [BPF_LD] = XLAT(BPF_LD),
67  [BPF_LDX] = XLAT(BPF_LDX),
68  [BPF_ST] = XLAT(BPF_ST),
69  [BPF_STX] = XLAT(BPF_STX),
70  [BPF_ALU] = XLAT(BPF_ALU),
71  [BPF_JMP] = XLAT(BPF_JMP),
72  [BPF_ALU64] = XLAT(BPF_ALU64),
73  XLAT_END
74 };
75 
76 # endif /* !IN_MPERS */
77 
78 #endif /* !XLAT_MACROS_ONLY */
79