diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-16 01:53:49 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-16 01:53:49 +0200 |
| commit | 3abf5484394fa68a690c6388f63b09bcafd7974d (patch) | |
| tree | 4db67e5e7ed7a2991fff9daebbe9e215f224317c | |
| parent | 67032cef39a4e7bfb77afb68907322ba04d57bc6 (diff) | |
clean up obsolete opids
| -rw-r--r-- | Makefile | 3 | ||||
| -rw-r--r-- | internal/opids.go | 5 | ||||
| -rw-r--r-- | ioriotng.bpf.c | 1 | ||||
| -rw-r--r-- | opids.h | 3 |
4 files changed, 0 insertions, 12 deletions
@@ -16,9 +16,6 @@ bpfbuild: .PHONY: gobuild gobuild: - echo 'package internal' > internal/opids.go - echo >> internal/opids.go - sed -E 's/#define (.*) ([0-9]+)/const \1 = \2/' opids.h >> internal/opids.go go build -tags netgo -ldflags '-w -extldflags "-static"' -o ioriotng ./cmd/ioriotng/main.go .PHONY: clean diff --git a/internal/opids.go b/internal/opids.go deleted file mode 100644 index 972aaa7..0000000 --- a/internal/opids.go +++ /dev/null @@ -1,5 +0,0 @@ -package internal - -const OPEN = 1 -const OPEN_AT = 2 -const CLOSE = 3 diff --git a/ioriotng.bpf.c b/ioriotng.bpf.c index 79783d5..a4785da 100644 --- a/ioriotng.bpf.c +++ b/ioriotng.bpf.c @@ -1,7 +1,6 @@ //+build ignore #include "vmlinux.h" -#include "opids.h" #include <bpf/bpf_helpers.h> #include "types.bpf.h" #include "maps.bpf.h" diff --git a/opids.h b/opids.h deleted file mode 100644 index 71ddf98..0000000 --- a/opids.h +++ /dev/null @@ -1,3 +0,0 @@ -#define OPEN 1 -#define OPEN_AT 2 -#define CLOSE 3 |
