Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 1 | #ifndef _TRACE_SCHED_H |
| 2 | #define _TRACE_SCHED_H |
| 3 | |
| 4 | #include <linux/sched.h> |
| 5 | #include <linux/tracepoint.h> |
| 6 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 7 | DECLARE_TRACE(sched_kthread_stop, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 8 | TPPROTO(struct task_struct *t), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 9 | TPARGS(t)); |
| 10 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 11 | DECLARE_TRACE(sched_kthread_stop_ret, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 12 | TPPROTO(int ret), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 13 | TPARGS(ret)); |
| 14 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 15 | DECLARE_TRACE(sched_wait_task, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 16 | TPPROTO(struct rq *rq, struct task_struct *p), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 17 | TPARGS(rq, p)); |
| 18 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 19 | DECLARE_TRACE(sched_wakeup, |
Peter Zijlstra | 468a15b | 2008-12-16 08:07:03 +0100 | [diff] [blame] | 20 | TPPROTO(struct rq *rq, struct task_struct *p, int success), |
| 21 | TPARGS(rq, p, success)); |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 22 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 23 | DECLARE_TRACE(sched_wakeup_new, |
Ingo Molnar | c71dd42 | 2008-12-19 01:09:51 +0100 | [diff] [blame] | 24 | TPPROTO(struct rq *rq, struct task_struct *p, int success), |
| 25 | TPARGS(rq, p, success)); |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 26 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 27 | DECLARE_TRACE(sched_switch, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 28 | TPPROTO(struct rq *rq, struct task_struct *prev, |
| 29 | struct task_struct *next), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 30 | TPARGS(rq, prev, next)); |
| 31 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 32 | DECLARE_TRACE(sched_migrate_task, |
Peter Zijlstra | cbc34ed | 2008-12-10 08:08:22 +0100 | [diff] [blame] | 33 | TPPROTO(struct task_struct *p, int orig_cpu, int dest_cpu), |
| 34 | TPARGS(p, orig_cpu, dest_cpu)); |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 35 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 36 | DECLARE_TRACE(sched_process_free, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 37 | TPPROTO(struct task_struct *p), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 38 | TPARGS(p)); |
| 39 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 40 | DECLARE_TRACE(sched_process_exit, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 41 | TPPROTO(struct task_struct *p), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 42 | TPARGS(p)); |
| 43 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 44 | DECLARE_TRACE(sched_process_wait, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 45 | TPPROTO(struct pid *pid), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 46 | TPARGS(pid)); |
| 47 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 48 | DECLARE_TRACE(sched_process_fork, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 49 | TPPROTO(struct task_struct *parent, struct task_struct *child), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 50 | TPARGS(parent, child)); |
| 51 | |
Mathieu Desnoyers | 7e066fb | 2008-11-14 17:47:47 -0500 | [diff] [blame] | 52 | DECLARE_TRACE(sched_signal_send, |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 53 | TPPROTO(int sig, struct task_struct *p), |
Ingo Molnar | cf569a9 | 2008-07-23 13:48:22 +0200 | [diff] [blame] | 54 | TPARGS(sig, p)); |
Mathieu Desnoyers | 0a16b60 | 2008-07-18 12:16:17 -0400 | [diff] [blame] | 55 | |
| 56 | #endif |