mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
tracing/sched: show CPU task wakes up on in trace event
While debugging the scheduler push / pull algorithm, I found it very annoying that the sched wake up events did not show the CPU that the task was waking on. In order to analyze the scheduler, I needed that information. This patch adds recording of the CPU that a task is waking up on. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
d88cb58232
commit
f0693c8bd5
1 changed files with 8 additions and 4 deletions
|
@ -94,6 +94,7 @@ TRACE_EVENT(sched_wakeup,
|
||||||
__field( pid_t, pid )
|
__field( pid_t, pid )
|
||||||
__field( int, prio )
|
__field( int, prio )
|
||||||
__field( int, success )
|
__field( int, success )
|
||||||
|
__field( int, cpu )
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
|
@ -101,11 +102,12 @@ TRACE_EVENT(sched_wakeup,
|
||||||
__entry->pid = p->pid;
|
__entry->pid = p->pid;
|
||||||
__entry->prio = p->prio;
|
__entry->prio = p->prio;
|
||||||
__entry->success = success;
|
__entry->success = success;
|
||||||
|
__entry->cpu = task_cpu(p);
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_printk("task %s:%d [%d] success=%d",
|
TP_printk("task %s:%d [%d] success=%d [%03d]",
|
||||||
__entry->comm, __entry->pid, __entry->prio,
|
__entry->comm, __entry->pid, __entry->prio,
|
||||||
__entry->success)
|
__entry->success, __entry->cpu)
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -125,6 +127,7 @@ TRACE_EVENT(sched_wakeup_new,
|
||||||
__field( pid_t, pid )
|
__field( pid_t, pid )
|
||||||
__field( int, prio )
|
__field( int, prio )
|
||||||
__field( int, success )
|
__field( int, success )
|
||||||
|
__field( int, cpu )
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_fast_assign(
|
TP_fast_assign(
|
||||||
|
@ -132,11 +135,12 @@ TRACE_EVENT(sched_wakeup_new,
|
||||||
__entry->pid = p->pid;
|
__entry->pid = p->pid;
|
||||||
__entry->prio = p->prio;
|
__entry->prio = p->prio;
|
||||||
__entry->success = success;
|
__entry->success = success;
|
||||||
|
__entry->cpu = task_cpu(p);
|
||||||
),
|
),
|
||||||
|
|
||||||
TP_printk("task %s:%d [%d] success=%d",
|
TP_printk("task %s:%d [%d] success=%d [%03d]",
|
||||||
__entry->comm, __entry->pid, __entry->prio,
|
__entry->comm, __entry->pid, __entry->prio,
|
||||||
__entry->success)
|
__entry->success, __entry->cpu)
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue