summaryrefslogtreecommitdiff
path: root/src/shared/linux/libbpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/linux/libbpf.h')
-rw-r--r--src/shared/linux/libbpf.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shared/linux/libbpf.h b/src/shared/linux/libbpf.h
index ad131fcb12..391eee5a4e 100644
--- a/src/shared/linux/libbpf.h
+++ b/src/shared/linux/libbpf.h
@@ -174,6 +174,16 @@ struct bpf_insn;
.off = OFF, \
.imm = IMM })
+/* Unconditional jumps */
+
+#define BPF_JMP_A(OFF) \
+ ((struct bpf_insn) { \
+ .code = BPF_JMP | BPF_JA, \
+ .dst_reg = 0, \
+ .src_reg = 0, \
+ .off = OFF, \
+ .imm = 0 })
+
/* Raw code statement block */
#define BPF_RAW_INSN(CODE, DST, SRC, OFF, IMM) \