4 #include <linux/sched.h>
5 #include <linux/tracepoint.h>
7 DECLARE_TRACE(sched_kthread_stop
,
8 TPPROTO(struct task_struct
*t
),
11 DECLARE_TRACE(sched_kthread_stop_ret
,
15 DECLARE_TRACE(sched_wait_task
,
16 TPPROTO(struct rq
*rq
, struct task_struct
*p
),
19 DECLARE_TRACE(sched_wakeup
,
20 TPPROTO(struct rq
*rq
, struct task_struct
*p
, int success
),
21 TPARGS(rq
, p
, success
));
23 DECLARE_TRACE(sched_wakeup_new
,
24 TPPROTO(struct rq
*rq
, struct task_struct
*p
, int success
),
25 TPARGS(rq
, p
, success
));
27 DECLARE_TRACE(sched_switch
,
28 TPPROTO(struct rq
*rq
, struct task_struct
*prev
,
29 struct task_struct
*next
),
30 TPARGS(rq
, prev
, next
));
32 DECLARE_TRACE(sched_migrate_task
,
33 TPPROTO(struct task_struct
*p
, int orig_cpu
, int dest_cpu
),
34 TPARGS(p
, orig_cpu
, dest_cpu
));
36 DECLARE_TRACE(sched_process_free
,
37 TPPROTO(struct task_struct
*p
),
40 DECLARE_TRACE(sched_process_exit
,
41 TPPROTO(struct task_struct
*p
),
44 DECLARE_TRACE(sched_process_wait
,
45 TPPROTO(struct pid
*pid
),
48 DECLARE_TRACE(sched_process_fork
,
49 TPPROTO(struct task_struct
*parent
, struct task_struct
*child
),
50 TPARGS(parent
, child
));
52 DECLARE_TRACE(sched_signal_send
,
53 TPPROTO(int sig
, struct task_struct
*p
),