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 | |
parent | 017730c11241e26577673eb9d957cfc66172ea91 (diff) |
ftrace: fix __trace_special()
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | include/linux/sched.h | 20 | ||||
-rw-r--r-- | kernel/trace/trace.c | 4 |
2 files changed, 12 insertions, 12 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); |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 2ca9d66aa74e..65d2c0a61ed4 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -670,8 +670,6 @@ ftrace(struct trace_array *tr, struct trace_array_cpu *data, | |||
670 | trace_function(tr, data, ip, parent_ip, flags); | 670 | trace_function(tr, data, ip, parent_ip, flags); |
671 | } | 671 | } |
672 | 672 | ||
673 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | ||
674 | |||
675 | void | 673 | void |
676 | __trace_special(void *__tr, void *__data, | 674 | __trace_special(void *__tr, void *__data, |
677 | unsigned long arg1, unsigned long arg2, unsigned long arg3) | 675 | unsigned long arg1, unsigned long arg2, unsigned long arg3) |
@@ -693,8 +691,6 @@ __trace_special(void *__tr, void *__data, | |||
693 | trace_wake_up(); | 691 | trace_wake_up(); |
694 | } | 692 | } |
695 | 693 | ||
696 | #endif | ||
697 | |||
698 | void __trace_stack(struct trace_array *tr, | 694 | void __trace_stack(struct trace_array *tr, |
699 | struct trace_array_cpu *data, | 695 | struct trace_array_cpu *data, |
700 | unsigned long flags, | 696 | unsigned long flags, |