You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
2.6 KiB
95 lines
2.6 KiB
/* Generated by ./xlat/gen.sh from ./xlat/ebpf_op_jmp.in; do not edit. */
|
|
|
|
#include "gcc_compat.h"
|
|
#include "static_assert.h"
|
|
|
|
#if defined(BPF_JNE) || (defined(HAVE_DECL_BPF_JNE) && HAVE_DECL_BPF_JNE)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JNE) == (0x50), "BPF_JNE != 0x50");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JNE 0x50
|
|
#endif
|
|
#if defined(BPF_JSGT) || (defined(HAVE_DECL_BPF_JSGT) && HAVE_DECL_BPF_JSGT)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JSGT) == (0x60), "BPF_JSGT != 0x60");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JSGT 0x60
|
|
#endif
|
|
#if defined(BPF_JSGE) || (defined(HAVE_DECL_BPF_JSGE) && HAVE_DECL_BPF_JSGE)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JSGE) == (0x70), "BPF_JSGE != 0x70");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JSGE 0x70
|
|
#endif
|
|
#if defined(BPF_CALL) || (defined(HAVE_DECL_BPF_CALL) && HAVE_DECL_BPF_CALL)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_CALL) == (0x80), "BPF_CALL != 0x80");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_CALL 0x80
|
|
#endif
|
|
#if defined(BPF_EXIT) || (defined(HAVE_DECL_BPF_EXIT) && HAVE_DECL_BPF_EXIT)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_EXIT) == (0x90), "BPF_EXIT != 0x90");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_EXIT 0x90
|
|
#endif
|
|
#if defined(BPF_JLT) || (defined(HAVE_DECL_BPF_JLT) && HAVE_DECL_BPF_JLT)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JLT) == (0xa0), "BPF_JLT != 0xa0");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JLT 0xa0
|
|
#endif
|
|
#if defined(BPF_JLE) || (defined(HAVE_DECL_BPF_JLE) && HAVE_DECL_BPF_JLE)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JLE) == (0xb0), "BPF_JLE != 0xb0");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JLE 0xb0
|
|
#endif
|
|
#if defined(BPF_JSLT) || (defined(HAVE_DECL_BPF_JSLT) && HAVE_DECL_BPF_JSLT)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JSLT) == (0xc0), "BPF_JSLT != 0xc0");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JSLT 0xc0
|
|
#endif
|
|
#if defined(BPF_JSLE) || (defined(HAVE_DECL_BPF_JSLE) && HAVE_DECL_BPF_JSLE)
|
|
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
|
|
static_assert((BPF_JSLE) == (0xd0), "BPF_JSLE != 0xd0");
|
|
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
|
|
#else
|
|
# define BPF_JSLE 0xd0
|
|
#endif
|
|
|
|
#ifndef XLAT_MACROS_ONLY
|
|
|
|
# ifdef IN_MPERS
|
|
|
|
# error static const struct xlat ebpf_op_jmp in mpers mode
|
|
|
|
# else
|
|
|
|
static
|
|
const struct xlat ebpf_op_jmp[] = {
|
|
XLAT(BPF_JNE),
|
|
XLAT(BPF_JSGT),
|
|
XLAT(BPF_JSGE),
|
|
XLAT(BPF_CALL),
|
|
XLAT(BPF_EXIT),
|
|
XLAT(BPF_JLT),
|
|
XLAT(BPF_JLE),
|
|
XLAT(BPF_JSLT),
|
|
XLAT(BPF_JSLE),
|
|
XLAT_END
|
|
};
|
|
|
|
# endif /* !IN_MPERS */
|
|
|
|
#endif /* !XLAT_MACROS_ONLY */
|