diff options
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | internal/types/maps.bpf.h (renamed from maps.bpf.h) | 0 | ||||
| -rw-r--r-- | internal/types/types.bpf.h (renamed from types.bpf.h) | 0 | ||||
| -rw-r--r-- | ioriotng.bpf.c | 6 |
4 files changed, 4 insertions, 4 deletions
@@ -11,7 +11,7 @@ build: bpfbuild gobuild .PHONY: bpfbuild bpfbuild: - bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux.h + bpftool btf dump file /sys/kernel/btf/vmlinux format c > ./internal/types/vmlinux.h $(CC) -g -O2 -Wall -fpie -target bpf -D__TARGET_ARCH_amd64 -I$(LIBBPFGO)/output -c ioriotng.bpf.c -o ioriotng.bpf.o .PHONY: gobuild diff --git a/maps.bpf.h b/internal/types/maps.bpf.h index dc55993..dc55993 100644 --- a/maps.bpf.h +++ b/internal/types/maps.bpf.h diff --git a/types.bpf.h b/internal/types/types.bpf.h index 57feaaa..57feaaa 100644 --- a/types.bpf.h +++ b/internal/types/types.bpf.h diff --git a/ioriotng.bpf.c b/ioriotng.bpf.c index a4785da..1b64ee4 100644 --- a/ioriotng.bpf.c +++ b/ioriotng.bpf.c @@ -1,9 +1,9 @@ //+build ignore -#include "vmlinux.h" +#include "internal/types/vmlinux.h" #include <bpf/bpf_helpers.h> -#include "types.bpf.h" -#include "maps.bpf.h" +#include "internal/types/types.bpf.h" +#include "internal/types/maps.bpf.h" static inline int filter() { u32 key = 1; |
