blob: 0d81098ee9fce3b4ce9d7bc8b3a7280a6a41f95a [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
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -05007DECLARE_TRACE(sched_kthread_stop,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -04008 TPPROTO(struct task_struct *t),
Ingo Molnarcf569a92008-07-23 13:48:22 +02009 TPARGS(t));
10
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050011DECLARE_TRACE(sched_kthread_stop_ret,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040012 TPPROTO(int ret),
Ingo Molnarcf569a92008-07-23 13:48:22 +020013 TPARGS(ret));
14
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050015DECLARE_TRACE(sched_wait_task,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040016 TPPROTO(struct rq *rq, struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020017 TPARGS(rq, p));
18
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050019DECLARE_TRACE(sched_wakeup,
Peter Zijlstra468a15b2008-12-16 08:07:03 +010020 TPPROTO(struct rq *rq, struct task_struct *p, int success),
21 TPARGS(rq, p, success));
Ingo Molnarcf569a92008-07-23 13:48:22 +020022
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050023DECLARE_TRACE(sched_wakeup_new,
Ingo Molnarc71dd422008-12-19 01:09:51 +010024 TPPROTO(struct rq *rq, struct task_struct *p, int success),
25 TPARGS(rq, p, success));
Ingo Molnarcf569a92008-07-23 13:48:22 +020026
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050027DECLARE_TRACE(sched_switch,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040028 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 Desnoyers7e066fb2008-11-14 17:47:47 -050032DECLARE_TRACE(sched_migrate_task,
Peter Zijlstracbc34ed2008-12-10 08:08:22 +010033 TPPROTO(struct task_struct *p, int orig_cpu, int dest_cpu),
34 TPARGS(p, orig_cpu, dest_cpu));
Ingo Molnarcf569a92008-07-23 13:48:22 +020035
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050036DECLARE_TRACE(sched_process_free,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040037 TPPROTO(struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020038 TPARGS(p));
39
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050040DECLARE_TRACE(sched_process_exit,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040041 TPPROTO(struct task_struct *p),
Ingo Molnarcf569a92008-07-23 13:48:22 +020042 TPARGS(p));
43
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050044DECLARE_TRACE(sched_process_wait,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040045 TPPROTO(struct pid *pid),
Ingo Molnarcf569a92008-07-23 13:48:22 +020046 TPARGS(pid));
47
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050048DECLARE_TRACE(sched_process_fork,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040049 TPPROTO(struct task_struct *parent, struct task_struct *child),
Ingo Molnarcf569a92008-07-23 13:48:22 +020050 TPARGS(parent, child));
51
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -050052DECLARE_TRACE(sched_signal_send,
Mathieu Desnoyers0a16b602008-07-18 12:16:17 -040053 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