sched.h 1.2 KB
Newer Older
1 2 3 4 5 6 7 8
#ifndef _TRACE_SCHED_H
#define _TRACE_SCHED_H

#include <linux/sched.h>
#include <linux/tracepoint.h>

DEFINE_TRACE(sched_kthread_stop,
	TPPROTO(struct task_struct *t),
I
Ingo Molnar 已提交
9 10
		TPARGS(t));

11 12
DEFINE_TRACE(sched_kthread_stop_ret,
	TPPROTO(int ret),
I
Ingo Molnar 已提交
13 14
		TPARGS(ret));

15 16
DEFINE_TRACE(sched_wait_task,
	TPPROTO(struct rq *rq, struct task_struct *p),
I
Ingo Molnar 已提交
17 18
		TPARGS(rq, p));

19 20
DEFINE_TRACE(sched_wakeup,
	TPPROTO(struct rq *rq, struct task_struct *p),
I
Ingo Molnar 已提交
21 22
		TPARGS(rq, p));

23 24
DEFINE_TRACE(sched_wakeup_new,
	TPPROTO(struct rq *rq, struct task_struct *p),
I
Ingo Molnar 已提交
25 26
		TPARGS(rq, p));

27 28 29
DEFINE_TRACE(sched_switch,
	TPPROTO(struct rq *rq, struct task_struct *prev,
		struct task_struct *next),
I
Ingo Molnar 已提交
30 31
		TPARGS(rq, prev, next));

32 33
DEFINE_TRACE(sched_migrate_task,
	TPPROTO(struct rq *rq, struct task_struct *p, int dest_cpu),
I
Ingo Molnar 已提交
34 35
		TPARGS(rq, p, dest_cpu));

36 37
DEFINE_TRACE(sched_process_free,
	TPPROTO(struct task_struct *p),
I
Ingo Molnar 已提交
38 39
		TPARGS(p));

40 41
DEFINE_TRACE(sched_process_exit,
	TPPROTO(struct task_struct *p),
I
Ingo Molnar 已提交
42 43
		TPARGS(p));

44 45
DEFINE_TRACE(sched_process_wait,
	TPPROTO(struct pid *pid),
I
Ingo Molnar 已提交
46 47
		TPARGS(pid));

48 49
DEFINE_TRACE(sched_process_fork,
	TPPROTO(struct task_struct *parent, struct task_struct *child),
I
Ingo Molnar 已提交
50 51
		TPARGS(parent, child));

52 53
DEFINE_TRACE(sched_signal_send,
	TPPROTO(int sig, struct task_struct *p),
I
Ingo Molnar 已提交
54
		TPARGS(sig, p));
55 56

#endif