Skip to content

Commit

Permalink
Merge pull request iovisor#1452 from bobrik/patch-1
Browse files Browse the repository at this point in the history
funcslower: fix missing tgid when filtering by pid
  • Loading branch information
yonghong-song authored Nov 22, 2017
2 parents 61bc92a + 95c20b0 commit f3bd860
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 f3bd860

Please sign in to comment.