Commit 5647de0e authored by 4ast's avatar 4ast Committed by GitHub

Merge pull request #832 from brendangregg/master

profile: -p should match user PID
parents bf442eb6 4c9f6605
......@@ -132,7 +132,7 @@ BPF_STACK_TRACE(stack_traces, STACK_STORAGE_SIZE)
// 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;
......
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