1 /* Generated by ./xlat/gen.sh from ./xlat/ebpf_op_jmp.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(BPF_JNE) || (defined(HAVE_DECL_BPF_JNE) && HAVE_DECL_BPF_JNE) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((BPF_JNE) == (0x50), "BPF_JNE != 0x50"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define BPF_JNE 0x50 12 #endif 13 #if defined(BPF_JSGT) || (defined(HAVE_DECL_BPF_JSGT) && HAVE_DECL_BPF_JSGT) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((BPF_JSGT) == (0x60), "BPF_JSGT != 0x60"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define BPF_JSGT 0x60 19 #endif 20 #if defined(BPF_JSGE) || (defined(HAVE_DECL_BPF_JSGE) && HAVE_DECL_BPF_JSGE) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((BPF_JSGE) == (0x70), "BPF_JSGE != 0x70"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define BPF_JSGE 0x70 26 #endif 27 #if defined(BPF_CALL) || (defined(HAVE_DECL_BPF_CALL) && HAVE_DECL_BPF_CALL) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((BPF_CALL) == (0x80), "BPF_CALL != 0x80"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define BPF_CALL 0x80 33 #endif 34 #if defined(BPF_EXIT) || (defined(HAVE_DECL_BPF_EXIT) && HAVE_DECL_BPF_EXIT) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((BPF_EXIT) == (0x90), "BPF_EXIT != 0x90"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define BPF_EXIT 0x90 40 #endif 41 #if defined(BPF_JLT) || (defined(HAVE_DECL_BPF_JLT) && HAVE_DECL_BPF_JLT) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((BPF_JLT) == (0xa0), "BPF_JLT != 0xa0"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define BPF_JLT 0xa0 47 #endif 48 #if defined(BPF_JLE) || (defined(HAVE_DECL_BPF_JLE) && HAVE_DECL_BPF_JLE) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((BPF_JLE) == (0xb0), "BPF_JLE != 0xb0"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define BPF_JLE 0xb0 54 #endif 55 #if defined(BPF_JSLT) || (defined(HAVE_DECL_BPF_JSLT) && HAVE_DECL_BPF_JSLT) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((BPF_JSLT) == (0xc0), "BPF_JSLT != 0xc0"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define BPF_JSLT 0xc0 61 #endif 62 #if defined(BPF_JSLE) || (defined(HAVE_DECL_BPF_JSLE) && HAVE_DECL_BPF_JSLE) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((BPF_JSLE) == (0xd0), "BPF_JSLE != 0xd0"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define BPF_JSLE 0xd0 68 #endif 69 70 #ifndef XLAT_MACROS_ONLY 71 72 # ifdef IN_MPERS 73 74 # error static const struct xlat ebpf_op_jmp in mpers mode 75 76 # else 77 78 static 79 const struct xlat ebpf_op_jmp[] = { 80 XLAT(BPF_JNE), 81 XLAT(BPF_JSGT), 82 XLAT(BPF_JSGE), 83 XLAT(BPF_CALL), 84 XLAT(BPF_EXIT), 85 XLAT(BPF_JLT), 86 XLAT(BPF_JLE), 87 XLAT(BPF_JSLT), 88 XLAT(BPF_JSLE), 89 XLAT_END 90 }; 91 92 # endif /* !IN_MPERS */ 93 94 #endif /* !XLAT_MACROS_ONLY */ 95