1 /* Generated by ./xlat/gen.sh from ./xlat/bpf_op_jmp.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(BPF_JA) || (defined(HAVE_DECL_BPF_JA) && HAVE_DECL_BPF_JA) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((BPF_JA) == (0x00), "BPF_JA != 0x00"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define BPF_JA 0x00 12 #endif 13 #if defined(BPF_JEQ) || (defined(HAVE_DECL_BPF_JEQ) && HAVE_DECL_BPF_JEQ) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((BPF_JEQ) == (0x10), "BPF_JEQ != 0x10"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define BPF_JEQ 0x10 19 #endif 20 #if defined(BPF_JGT) || (defined(HAVE_DECL_BPF_JGT) && HAVE_DECL_BPF_JGT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((BPF_JGT) == (0x20), "BPF_JGT != 0x20"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define BPF_JGT 0x20 26 #endif 27 #if defined(BPF_JGE) || (defined(HAVE_DECL_BPF_JGE) && HAVE_DECL_BPF_JGE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((BPF_JGE) == (0x30), "BPF_JGE != 0x30"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define BPF_JGE 0x30 33 #endif 34 #if defined(BPF_JSET) || (defined(HAVE_DECL_BPF_JSET) && HAVE_DECL_BPF_JSET) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((BPF_JSET) == (0x40), "BPF_JSET != 0x40"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define BPF_JSET 0x40 40 #endif 41 #if defined(BPF_JNE) || (defined(HAVE_DECL_BPF_JNE) && HAVE_DECL_BPF_JNE) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((BPF_JNE) == (0x50), "BPF_JNE != 0x50"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define BPF_JNE 0x50 47 #endif 48 #if defined(BPF_JSGT) || (defined(HAVE_DECL_BPF_JSGT) && HAVE_DECL_BPF_JSGT) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((BPF_JSGT) == (0x60), "BPF_JSGT != 0x60"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define BPF_JSGT 0x60 54 #endif 55 #if defined(BPF_JSGE) || (defined(HAVE_DECL_BPF_JSGE) && HAVE_DECL_BPF_JSGE) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((BPF_JSGE) == (0x70), "BPF_JSGE != 0x70"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define BPF_JSGE 0x70 61 #endif 62 #if defined(BPF_CALL) || (defined(HAVE_DECL_BPF_CALL) && HAVE_DECL_BPF_CALL) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((BPF_CALL) == (0x80), "BPF_CALL != 0x80"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define BPF_CALL 0x80 68 #endif 69 #if defined(BPF_EXIT) || (defined(HAVE_DECL_BPF_EXIT) && HAVE_DECL_BPF_EXIT) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((BPF_EXIT) == (0x90), "BPF_EXIT != 0x90"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define BPF_EXIT 0x90 75 #endif 76 #if defined(BPF_JLT) || (defined(HAVE_DECL_BPF_JLT) && HAVE_DECL_BPF_JLT) 77 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 78 static_assert((BPF_JLT) == (0xa0), "BPF_JLT != 0xa0"); 79 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 80 #else 81 # define BPF_JLT 0xa0 82 #endif 83 #if defined(BPF_JLE) || (defined(HAVE_DECL_BPF_JLE) && HAVE_DECL_BPF_JLE) 84 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 85 static_assert((BPF_JLE) == (0xb0), "BPF_JLE != 0xb0"); 86 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 87 #else 88 # define BPF_JLE 0xb0 89 #endif 90 #if defined(BPF_JSLT) || (defined(HAVE_DECL_BPF_JSLT) && HAVE_DECL_BPF_JSLT) 91 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 92 static_assert((BPF_JSLT) == (0xc0), "BPF_JSLT != 0xc0"); 93 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 94 #else 95 # define BPF_JSLT 0xc0 96 #endif 97 #if defined(BPF_JSLE) || (defined(HAVE_DECL_BPF_JSLE) && HAVE_DECL_BPF_JSLE) 98 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 99 static_assert((BPF_JSLE) == (0xd0), "BPF_JSLE != 0xd0"); 100 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 101 #else 102 # define BPF_JSLE 0xd0 103 #endif 104 105 #ifndef XLAT_MACROS_ONLY 106 107 # ifdef IN_MPERS 108 109 # error static const struct xlat bpf_op_jmp in mpers mode 110 111 # else 112 113 static 114 const struct xlat bpf_op_jmp[] = { 115 XLAT(BPF_JA), 116 XLAT(BPF_JEQ), 117 XLAT(BPF_JGT), 118 XLAT(BPF_JGE), 119 XLAT(BPF_JSET), 120 XLAT(BPF_JNE), 121 XLAT(BPF_JSGT), 122 XLAT(BPF_JSGE), 123 XLAT(BPF_CALL), 124 XLAT(BPF_EXIT), 125 XLAT(BPF_JLT), 126 XLAT(BPF_JLE), 127 XLAT(BPF_JSLT), 128 XLAT(BPF_JSLE), 129 XLAT_END 130 }; 131 132 # endif /* !IN_MPERS */ 133 134 #endif /* !XLAT_MACROS_ONLY */ 135