Commit f6bf78f5 authored by Brenden Blanco's avatar Brenden Blanco

Merge pull request #438 from brendangregg/master

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