diff --git a/main.go b/main.go index fa9ba525..430df737 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ import ( "log" "os" "os/signal" + "runtime" "syscall" "time" @@ -36,6 +37,11 @@ func main() { fmt.Printf("pwru %s\n", pwru.Version) os.Exit(0) } + if flags.FilterTrackBpfHelpers { + if runtime.GOARCH != "amd64" { + log.Fatalf("BPF helpers tracking is only supported on amd64") + } + } if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{ Cur: 8192,