Skip to content

Commit

Permalink
funcslower: fix missing tgid when filtering by pid
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrik committed Nov 21, 2017
1 parent 61bc92a commit 95c20b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/funcslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
if args.arguments:
bpf_text = "#define GRAB_ARGS\n" + bpf_text
if args.tgid:
bpf_text = bpf_text.replace('TGID_FILTER', 'tgid != %d' % tgid)
bpf_text = bpf_text.replace('TGID_FILTER', 'tgid != %d' % args.tgid)
else:
bpf_text = bpf_text.replace('TGID_FILTER', '0')

Expand Down

0 comments on commit 95c20b0

Please sign in to comment.