summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-16 01:56:13 +0200
committerPaul Buetow <paul@buetow.org>2024-02-16 01:56:13 +0200
commit04fa01992ad88ea8e9cd05e7cbb9f81087b23aff (patch)
tree0c85508f5bbdbc2ee5f7853b8f74e4d14b0227b8
parent3abf5484394fa68a690c6388f63b09bcafd7974d (diff)
move some files to internal types
-rw-r--r--Makefile2
-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.c6
4 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index e243d65..116d967 100644
--- a/Makefile
+++ b/Makefile
@@ -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;