Skip to content

Commit

Permalink
profile: -p should match user PID
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Dec 1, 2016
1 parent bf442eb commit 4c9f660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def positive_nonzero_int(val):
// This code gets a bit complex. Probably not suitable for casual hacking.
int do_perf_event(struct bpf_perf_event_data *ctx) {
u32 pid = bpf_get_current_pid_tgid();
u32 pid = bpf_get_current_pid_tgid() >> 32;
if (!(THREAD_FILTER))
return 0;
Expand Down

0 comments on commit 4c9f660

Please sign in to comment.