summaryrefslogtreecommitdiff
path: root/internal/flags
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-03-07 21:53:24 +0200
committerPaul Buetow <paul@buetow.org>2025-03-07 21:53:24 +0200
commitc2f6fe55b1f6e5b3c81040294bae3af520b3f4cd (patch)
tree3864e9c0d9933641508b560e6c78456baa379ca2 /internal/flags
parent527a001b458384cc81fe74314e3ceb765c6a6130 (diff)
initial support for path filter
Diffstat (limited to 'internal/flags')
-rw-r--r--internal/flags/flags.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/flags/flags.go b/internal/flags/flags.go
index c22bb75..51bca07 100644
--- a/internal/flags/flags.go
+++ b/internal/flags/flags.go
@@ -12,6 +12,7 @@ type Flags struct {
TidFilter int
EventMapSize int
CommFilter string
+ PathFilter string
PprofEnable bool
}
@@ -20,6 +21,7 @@ func New() (flags Flags) {
flag.IntVar(&flags.TidFilter, "tid", -1, "Filter for thread ID")
flag.IntVar(&flags.EventMapSize, "mapSize", 4096*16, "BPF FD event ring buffer map size")
flag.StringVar(&flags.CommFilter, "comm", "", "Command to filter for")
+ flag.StringVar(&flags.PathFilter, "path", "", "Path to filter for")
flag.BoolVar(&flags.PprofEnable, "pprof", false, "Enable profiling")
flag.Parse()