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:07:20 -0400 |
commit | 1a3c3034336320554a3342572dae98d69e054fc7 (patch) | |
tree | b28ca59b09a0e2d3c3be61dba2e864526383ae1e /include | |
parent | 017730c11241e26577673eb9d957cfc66172ea91 (diff) |
ftrace: fix __trace_special()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sched.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index a3970b563757..5b186bed54bc 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -2119,6 +2119,18 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) | |||
2119 | } | 2119 | } |
2120 | #endif | 2120 | #endif |
2121 | 2121 | ||
2122 | #ifdef CONFIG_TRACING | ||
2123 | extern void | ||
2124 | __trace_special(void *__tr, void *__data, | ||
2125 | unsigned long arg1, unsigned long arg2, unsigned long arg3); | ||
2126 | #else | ||
2127 | static inline void | ||
2128 | __trace_special(void *__tr, void *__data, | ||
2129 | unsigned long arg1, unsigned long arg2, unsigned long arg3) | ||
2130 | { | ||
2131 | } | ||
2132 | #endif | ||
2133 | |||
2122 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | 2134 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER |
2123 | extern void | 2135 | extern void |
2124 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next); | 2136 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next); |
@@ -2126,9 +2138,6 @@ extern void | |||
2126 | ftrace_wake_up_task(void *rq, struct task_struct *wakee, | 2138 | ftrace_wake_up_task(void *rq, struct task_struct *wakee, |
2127 | struct task_struct *curr); | 2139 | struct task_struct *curr); |
2128 | extern void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data); | 2140 | extern void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data); |
2129 | extern void | ||
2130 | __trace_special(void *__tr, void *__data, | ||
2131 | unsigned long arg1, unsigned long arg2, unsigned long arg3); | ||
2132 | #else | 2141 | #else |
2133 | static inline void | 2142 | static inline void |
2134 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next) | 2143 | ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next) |
@@ -2146,11 +2155,6 @@ ftrace_wake_up_task(void *rq, struct task_struct *wakee, | |||
2146 | static inline void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data) | 2155 | static inline void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data) |
2147 | { | 2156 | { |
2148 | } | 2157 | } |
2149 | static inline void | ||
2150 | __trace_special(void *__tr, void *__data, | ||
2151 | unsigned long arg1, unsigned long arg2, unsigned long arg3) | ||
2152 | { | ||
2153 | } | ||
2154 | #endif | 2158 | #endif |
2155 | 2159 | ||
2156 | extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); | 2160 | extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); |