Commit f67832a0 authored by Brendan Gregg's avatar Brendan Gregg

fix -p

parent 42cf2bfb
...@@ -129,12 +129,11 @@ out: ...@@ -129,12 +129,11 @@ out:
} }
int oncpu(struct pt_regs *ctx, struct task_struct *p) { int oncpu(struct pt_regs *ctx, struct task_struct *p) {
u32 pid; u32 pid = p->pid;
u64 ts, *tsp; u64 ts, *tsp;
// record previous thread sleep time // record previous thread sleep time
if (FILTER) { if (FILTER) {
pid = p->pid;
ts = bpf_ktime_get_ns(); ts = bpf_ktime_get_ns();
start.update(&pid, &ts); start.update(&pid, &ts);
} }
......
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