From fe7f16e4fcf7ee13f55321691072bf02071df58c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 6 Mar 2025 21:08:47 +0200 Subject: refactor --- internal/flags/flags.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/flags/flags.go') diff --git a/internal/flags/flags.go b/internal/flags/flags.go index 5596ea5..2c655fa 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -11,12 +11,14 @@ type Flags struct { PidFilter int TidFilter int EventMapSize int + CommFilter string } func New() (flags Flags) { flag.IntVar(&flags.PidFilter, "pid", -1, "Filter for processes ID") 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.Parse() return flags -- cgit v1.2.3