Skip to content

Commit 3bf9d91

Browse files
jschwinger233brb
authored andcommitted
Abort if runtime.GOARCH is not amd64
Signed-off-by: gray <[email protected]>
1 parent 18838c4 commit 3bf9d91

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"log"
1212
"os"
1313
"os/signal"
14+
"runtime"
1415
"syscall"
1516
"time"
1617

@@ -36,6 +37,11 @@ func main() {
3637
fmt.Printf("pwru %s\n", pwru.Version)
3738
os.Exit(0)
3839
}
40+
if flags.FilterTrackBpfHelpers {
41+
if runtime.GOARCH != "amd64" {
42+
log.Fatalf("BPF helpers tracking is only supported on amd64")
43+
}
44+
}
3945

4046
if err := unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{
4147
Cur: 8192,

0 commit comments

Comments
 (0)