Skip to content

Commit

Permalink
Merge pull request #427 from markdrayton/stacksnoop-filter
Browse files Browse the repository at this point in the history
Fix stacksnoop PID filter
  • Loading branch information
brendangregg committed Mar 4, 2016
2 parents ee79363 + ab133d2 commit b8d33cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/stacksnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
if args.pid:
bpf_text = bpf_text.replace('FILTER',
('u32 pid; pid = bpf_get_current_pid_tgid(); ' +
'if (pid != %s) { return 0; }') % (args.pid))
'if (pid != %s) { return; }') % (args.pid))
else:
bpf_text = bpf_text.replace('FILTER', '')
if debug:
Expand Down

0 comments on commit b8d33cb

Please sign in to comment.