Skip to content

Commit

Permalink
fix -p
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Mar 16, 2016
1 parent 42cf2bf commit f67832a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/offwaketime.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,11 @@ def signal_ignore(signal, frame):
}
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);
}
Expand Down

0 comments on commit f67832a

Please sign in to comment.