Commit | Line | Data |
---|---|---|
0a16b607 MD |
1 | #ifndef _TRACE_SCHED_H |
2 | #define _TRACE_SCHED_H | |
3 | ||
4 | #include <linux/sched.h> | |
5 | #include <linux/tracepoint.h> | |
6 | ||
7 | DEFINE_TRACE(sched_kthread_stop, | |
8 | TPPROTO(struct task_struct *t), | |
cf569a93 IM |
9 | TPARGS(t)); |
10 | ||
0a16b607 MD |
11 | DEFINE_TRACE(sched_kthread_stop_ret, |
12 | TPPROTO(int ret), | |
cf569a93 IM |
13 | TPARGS(ret)); |
14 | ||
0a16b607 MD |
15 | DEFINE_TRACE(sched_wait_task, |
16 | TPPROTO(struct rq *rq, struct task_struct *p), | |
cf569a93 IM |
17 | TPARGS(rq, p)); |
18 | ||
0a16b607 MD |
19 | DEFINE_TRACE(sched_wakeup, |
20 | TPPROTO(struct rq *rq, struct task_struct *p), | |
cf569a93 IM |
21 | TPARGS(rq, p)); |
22 | ||
0a16b607 MD |
23 | DEFINE_TRACE(sched_wakeup_new, |
24 | TPPROTO(struct rq *rq, struct task_struct *p), | |
cf569a93 IM |
25 | TPARGS(rq, p)); |
26 | ||
0a16b607 MD |
27 | DEFINE_TRACE(sched_switch, |
28 | TPPROTO(struct rq *rq, struct task_struct *prev, | |
29 | struct task_struct *next), | |
cf569a93 IM |
30 | TPARGS(rq, prev, next)); |
31 | ||
0a16b607 MD |
32 | DEFINE_TRACE(sched_migrate_task, |
33 | TPPROTO(struct rq *rq, struct task_struct *p, int dest_cpu), | |
cf569a93 IM |
34 | TPARGS(rq, p, dest_cpu)); |
35 | ||
0a16b607 MD |
36 | DEFINE_TRACE(sched_process_free, |
37 | TPPROTO(struct task_struct *p), | |
cf569a93 IM |
38 | TPARGS(p)); |
39 | ||
0a16b607 MD |
40 | DEFINE_TRACE(sched_process_exit, |
41 | TPPROTO(struct task_struct *p), | |
cf569a93 IM |
42 | TPARGS(p)); |
43 | ||
0a16b607 MD |
44 | DEFINE_TRACE(sched_process_wait, |
45 | TPPROTO(struct pid *pid), | |
cf569a93 IM |
46 | TPARGS(pid)); |
47 | ||
0a16b607 MD |
48 | DEFINE_TRACE(sched_process_fork, |
49 | TPPROTO(struct task_struct *parent, struct task_struct *child), | |
cf569a93 IM |
50 | TPARGS(parent, child)); |
51 | ||
0a16b607 MD |
52 | DEFINE_TRACE(sched_signal_send, |
53 | TPPROTO(int sig, struct task_struct *p), | |
cf569a93 | 54 | TPARGS(sig, p)); |
0a16b607 MD |
55 | |
56 | #endif |