tracing, sched: LTTng instrumentation - scheduler
[linux-2.6.git] / include / trace / sched.h
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),
9         TPARGS(t));
10 DEFINE_TRACE(sched_kthread_stop_ret,
11         TPPROTO(int ret),
12         TPARGS(ret));
13 DEFINE_TRACE(sched_wait_task,
14         TPPROTO(struct rq *rq, struct task_struct *p),
15         TPARGS(rq, p));
16 DEFINE_TRACE(sched_wakeup,
17         TPPROTO(struct rq *rq, struct task_struct *p),
18         TPARGS(rq, p));
19 DEFINE_TRACE(sched_wakeup_new,
20         TPPROTO(struct rq *rq, struct task_struct *p),
21         TPARGS(rq, p));
22 DEFINE_TRACE(sched_switch,
23         TPPROTO(struct rq *rq, struct task_struct *prev,
24                 struct task_struct *next),
25         TPARGS(rq, prev, next));
26 DEFINE_TRACE(sched_migrate_task,
27         TPPROTO(struct rq *rq, struct task_struct *p, int dest_cpu),
28         TPARGS(rq, p, dest_cpu));
29 DEFINE_TRACE(sched_process_free,
30         TPPROTO(struct task_struct *p),
31         TPARGS(p));
32 DEFINE_TRACE(sched_process_exit,
33         TPPROTO(struct task_struct *p),
34         TPARGS(p));
35 DEFINE_TRACE(sched_process_wait,
36         TPPROTO(struct pid *pid),
37         TPARGS(pid));
38 DEFINE_TRACE(sched_process_fork,
39         TPPROTO(struct task_struct *parent, struct task_struct *child),
40         TPARGS(parent, child));
41 DEFINE_TRACE(sched_signal_send,
42         TPPROTO(int sig, struct task_struct *p),
43         TPARGS(sig, p));
44
45 #endif