diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-05-12 15:20:52 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:04:44 -0400 |
commit | 4e65551905fb0300ae7e667cbaa41ee2e3f29a13 (patch) | |
tree | 0e642c311e31043eecf86c218128c40e1ddac782 /include/linux/sched.h | |
parent | 4c1f4d4f0175129934d5dbc19a39296430937a05 (diff) |
ftrace: sched tracer, trace full rbtree
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 05744f9cb096..652d380ae563 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2119,20 +2119,34 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) | |||
2119 | 2119 | ||
2120 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | 2120 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER |
2121 | extern void | 2121 | extern void |
2122 | ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next); | 2122 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next); |
2123 | extern void | ||
2124 | ftrace_wake_up_task(void *rq, struct task_struct *wakee, | ||
2125 | struct task_struct *curr); | ||
2126 | extern void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data); | ||
2127 | extern void | ||
2128 | __trace_special(void *__tr, void *__data, | ||
2129 | unsigned long arg1, unsigned long arg2, unsigned long arg3); | ||
2123 | #else | 2130 | #else |
2124 | static inline void | 2131 | static inline void |
2125 | ftrace_ctx_switch(struct task_struct *prev, struct task_struct *next) | 2132 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next) |
2133 | { | ||
2134 | } | ||
2135 | static inline void | ||
2136 | sched_trace_special(unsigned long p1, unsigned long p2, unsigned long p3) | ||
2137 | { | ||
2138 | } | ||
2139 | static inline void | ||
2140 | ftrace_wake_up_task(void *rq, struct task_struct *wakee, | ||
2141 | struct task_struct *curr) | ||
2142 | { | ||
2143 | } | ||
2144 | static inline void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data) | ||
2126 | { | 2145 | { |
2127 | } | 2146 | } |
2128 | #endif | ||
2129 | |||
2130 | #ifdef CONFIG_SCHED_TRACER | ||
2131 | extern void | ||
2132 | ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr); | ||
2133 | #else | ||
2134 | static inline void | 2147 | static inline void |
2135 | ftrace_wake_up_task(struct task_struct *wakee, struct task_struct *curr) | 2148 | __trace_special(void *__tr, void *__data, |
2149 | unsigned long arg1, unsigned long arg2, unsigned long arg3) | ||
2136 | { | 2150 | { |
2137 | } | 2151 | } |
2138 | #endif | 2152 | #endif |