diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-07 21:53:24 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-07 21:53:24 +0200 |
| commit | c2f6fe55b1f6e5b3c81040294bae3af520b3f4cd (patch) | |
| tree | 3864e9c0d9933641508b560e6c78456baa379ca2 /internal/flags/flags.go | |
| parent | 527a001b458384cc81fe74314e3ceb765c6a6130 (diff) | |
initial support for path filter
Diffstat (limited to 'internal/flags/flags.go')
| -rw-r--r-- | internal/flags/flags.go | 2 |
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() |
