2 #define TRACE_SYSTEM sched
4 #if !defined(_TRACE_SCHED_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/sched.h>
9 #include <linux/binfmts.h>
75 __entry->target_cpu = task_cpu(p);
81 TP_printk(
"comm=%s pid=%d prio=%d success=%d target_cpu=%03d",
97 #ifdef CREATE_TRACE_POINTS
98 static inline long __trace_sched_switch_state(
struct task_struct *p)
102 #ifdef CONFIG_PREEMPT
138 __entry->prev_state = __trace_sched_switch_state(prev);
144 TP_printk(
"prev_comm=%s prev_pid=%d prev_prio=%d prev_state=%s%s ==> next_comm=%s next_pid=%d next_prio=%d",
148 { 1,
"S"} , { 2,
"D" }, { 4,
"T" }, { 8,
"t" },
149 { 16,
"Z" }, { 32,
"X" }, { 64,
"x" },
176 __entry->orig_cpu = task_cpu(p);
180 TP_printk(
"comm=%s pid=%d prio=%d orig_cpu=%d dest_cpu=%d",
210 DEFINE_EVENT(sched_process_template, sched_process_free,
218 DEFINE_EVENT(sched_process_template, sched_process_exit,
277 TP_printk(
"comm=%s pid=%d child_comm=%s child_pid=%d",
334 TP_printk(
"comm=%s pid=%d delay=%Lu [ns]",
336 (
unsigned long long)
__entry->delay)
379 TP_ARGS(tsk, runtime, vruntime),
395 __perf_count(runtime);
398 TP_printk(
"comm=%s pid=%d runtime=%Lu [ns] vruntime=%Lu [ns]",
400 (
unsigned long long)
__entry->runtime,
401 (
unsigned long long)
__entry->vruntime)
428 TP_printk(
"comm=%s pid=%d oldprio=%d newprio=%d",