blob: ad47369d01b5957fbc22322482c530ef28e25a33 [file] [log] [blame]
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -04001#ifndef _TRACE_SCHED_H
2#define _TRACE_SCHED_H
3
4#include <linux/sched.h>
5#include <linux/tracepoint.h>
6
7DEFINE_TRACE(sched_kthread_stop,
8 TPPROTO(struct task_struct *t),
Ingo Molnarcf569a92008-07-23 13:48:22 +02009 TPARGS(t));
10
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040011DEFINE_TRACE(sched_kthread_stop_ret,
12 TPPROTO(int ret),
Ingo Molnarcf569a92008-07-23 13:48:22 +020013 TPARGS(ret));
14
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040015DEFINE_TRACE(sched_wait_task,
16 TPPROTO(struct rq *rq, struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020017 TPARGS(rq, p));
18
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040019DEFINE_TRACE(sched_wakeup,
20 TPPROTO(struct rq *rq, struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020021 TPARGS(rq, p));
22
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040023DEFINE_TRACE(sched_wakeup_new,
24 TPPROTO(struct rq *rq, struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020025 TPARGS(rq, p));
26
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040027DEFINE_TRACE(sched_switch,
28 TPPROTO(struct rq *rq, struct task_struct *prev,
29 struct task_struct *next),
Ingo Molnarcf569a92008-07-23 13:48:22 +020030 TPARGS(rq, prev, next));
31
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040032DEFINE_TRACE(sched_migrate_task,
33 TPPROTO(struct rq *rq, struct task_struct *p, int dest_cpu),
Ingo Molnarcf569a92008-07-23 13:48:22 +020034 TPARGS(rq, p, dest_cpu));
35
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040036DEFINE_TRACE(sched_process_free,
37 TPPROTO(struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020038 TPARGS(p));
39
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040040DEFINE_TRACE(sched_process_exit,
41 TPPROTO(struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020042 TPARGS(p));
43
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040044DEFINE_TRACE(sched_process_wait,
45 TPPROTO(struct pid *pid),
Ingo Molnarcf569a92008-07-23 13:48:22 +020046 TPARGS(pid));
47
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040048DEFINE_TRACE(sched_process_fork,
49 TPPROTO(struct task_struct *parent, struct task_struct *child),
Ingo Molnarcf569a92008-07-23 13:48:22 +020050 TPARGS(parent, child));
51
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040052DEFINE_TRACE(sched_signal_send,
53 TPPROTO(int sig, struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020054 TPARGS(sig, p));
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040055
56#endif