diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 3f94218f2520..bcd7f1fbb8cd 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -198,6 +198,7 @@ TRACE_EVENT(sched_migrate_task, __field( int, prio ) __field( int, orig_cpu ) __field( int, dest_cpu ) + __field( int, running ) ), TP_fast_assign( @@ -206,11 +207,13 @@ TRACE_EVENT(sched_migrate_task, __entry->prio = p->prio; /* XXX SCHED_DEADLINE */ __entry->orig_cpu = task_cpu(p); __entry->dest_cpu = dest_cpu; + __entry->running = (p->state == TASK_RUNNING); ), - TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d", + TP_printk("comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d running=%d", __entry->comm, __entry->pid, __entry->prio, - __entry->orig_cpu, __entry->dest_cpu) + __entry->orig_cpu, __entry->dest_cpu, + __entry->running) ); DECLARE_EVENT_CLASS(sched_process_template,