Skip to content

Commit

Permalink
Remove skb-func from non-skb-func slice
Browse files Browse the repository at this point in the history
Signed-off-by: Zhichuan Liang <gray.liang@isovalent.com>
  • Loading branch information
jschwinger233 authored and brb committed Apr 24, 2024
1 parent 0257005 commit 4111cd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Expand Up @@ -253,6 +253,9 @@ func main() {

if len(flags.FilterNonSkbFuncs) > 0 {
for _, fn := range flags.FilterNonSkbFuncs {
if _, ok := funcs[fn]; ok {
continue
}
kp, err := link.Kprobe(fn, coll.Programs["kprobe_skb_by_stackid"], nil)
bar.Increment()
if err != nil {
Expand Down

0 comments on commit 4111cd8

Please sign in to comment.