summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gen_bpf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen_bpf.h b/src/gen_bpf.h
index 954ce7f..fe0580e 100644
--- a/src/gen_bpf.h
+++ b/src/gen_bpf.h
@@ -28,9 +28,10 @@
#include "db.h"
#include "system.h"
+/* NOTE - do not change this structure, it is part of the prctl() API */
struct bpf_program {
- bpf_instr_raw *blks;
uint16_t blk_cnt;
+ bpf_instr_raw *blks;
};
#define BPF_PGM_SIZE(x) \
((x)->blk_cnt * sizeof(*((x)->blks)))