Commit f3bd860b authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1452 from bobrik/patch-1

funcslower: fix missing tgid when filtering by pid
parents 61bc92ad 95c20b01
...@@ -151,7 +151,7 @@ bpf_text = bpf_text.replace('DURATION_NS', str(duration_ns)) ...@@ -151,7 +151,7 @@ bpf_text = bpf_text.replace('DURATION_NS', str(duration_ns))
if args.arguments: if args.arguments:
bpf_text = "#define GRAB_ARGS\n" + bpf_text bpf_text = "#define GRAB_ARGS\n" + bpf_text
if args.tgid: 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: else:
bpf_text = bpf_text.replace('TGID_FILTER', '0') bpf_text = bpf_text.replace('TGID_FILTER', '0')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment