1 /* Generated by ./xlat/gen.sh from ./xlat/ebpf_regs.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(BPF_REG_0) || (defined(HAVE_DECL_BPF_REG_0) && HAVE_DECL_BPF_REG_0)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((BPF_REG_0) == (0), "BPF_REG_0 != 0");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define BPF_REG_0 0
12 #endif
13 #if defined(BPF_REG_1) || (defined(HAVE_DECL_BPF_REG_1) && HAVE_DECL_BPF_REG_1)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((BPF_REG_1) == (1), "BPF_REG_1 != 1");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define BPF_REG_1 1
19 #endif
20 #if defined(BPF_REG_2) || (defined(HAVE_DECL_BPF_REG_2) && HAVE_DECL_BPF_REG_2)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((BPF_REG_2) == (2), "BPF_REG_2 != 2");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define BPF_REG_2 2
26 #endif
27 #if defined(BPF_REG_3) || (defined(HAVE_DECL_BPF_REG_3) && HAVE_DECL_BPF_REG_3)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((BPF_REG_3) == (3), "BPF_REG_3 != 3");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define BPF_REG_3 3
33 #endif
34 #if defined(BPF_REG_4) || (defined(HAVE_DECL_BPF_REG_4) && HAVE_DECL_BPF_REG_4)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((BPF_REG_4) == (4), "BPF_REG_4 != 4");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define BPF_REG_4 4
40 #endif
41 #if defined(BPF_REG_5) || (defined(HAVE_DECL_BPF_REG_5) && HAVE_DECL_BPF_REG_5)
42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
43 static_assert((BPF_REG_5) == (5), "BPF_REG_5 != 5");
44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
45 #else
46 # define BPF_REG_5 5
47 #endif
48 #if defined(BPF_REG_6) || (defined(HAVE_DECL_BPF_REG_6) && HAVE_DECL_BPF_REG_6)
49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
50 static_assert((BPF_REG_6) == (6), "BPF_REG_6 != 6");
51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
52 #else
53 # define BPF_REG_6 6
54 #endif
55 #if defined(BPF_REG_7) || (defined(HAVE_DECL_BPF_REG_7) && HAVE_DECL_BPF_REG_7)
56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
57 static_assert((BPF_REG_7) == (7), "BPF_REG_7 != 7");
58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
59 #else
60 # define BPF_REG_7 7
61 #endif
62 #if defined(BPF_REG_8) || (defined(HAVE_DECL_BPF_REG_8) && HAVE_DECL_BPF_REG_8)
63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
64 static_assert((BPF_REG_8) == (8), "BPF_REG_8 != 8");
65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
66 #else
67 # define BPF_REG_8 8
68 #endif
69 #if defined(BPF_REG_9) || (defined(HAVE_DECL_BPF_REG_9) && HAVE_DECL_BPF_REG_9)
70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
71 static_assert((BPF_REG_9) == (9), "BPF_REG_9 != 9");
72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
73 #else
74 # define BPF_REG_9 9
75 #endif
76 #if defined(BPF_REG_10) || (defined(HAVE_DECL_BPF_REG_10) && HAVE_DECL_BPF_REG_10)
77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
78 static_assert((BPF_REG_10) == (10), "BPF_REG_10 != 10");
79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
80 #else
81 # define BPF_REG_10 10
82 #endif
83 
84 #ifndef XLAT_MACROS_ONLY
85 
86 # ifdef IN_MPERS
87 
88 #  error static const struct xlat ebpf_regs in mpers mode
89 
90 # else
91 
92 static
93 const struct xlat ebpf_regs[] = {
94  [BPF_REG_0] = XLAT(BPF_REG_0),
95  [BPF_REG_1] = XLAT(BPF_REG_1),
96  [BPF_REG_2] = XLAT(BPF_REG_2),
97  [BPF_REG_3] = XLAT(BPF_REG_3),
98  [BPF_REG_4] = XLAT(BPF_REG_4),
99  [BPF_REG_5] = XLAT(BPF_REG_5),
100  [BPF_REG_6] = XLAT(BPF_REG_6),
101  [BPF_REG_7] = XLAT(BPF_REG_7),
102  [BPF_REG_8] = XLAT(BPF_REG_8),
103  [BPF_REG_9] = XLAT(BPF_REG_9),
104  [BPF_REG_10] = XLAT(BPF_REG_10),
105  XLAT_END
106 };
107 
108 # endif /* !IN_MPERS */
109 
110 #endif /* !XLAT_MACROS_ONLY */
111