aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-05-12 15:20:52 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:07:20 -0400
commit1a3c3034336320554a3342572dae98d69e054fc7 (patch)
treeb28ca59b09a0e2d3c3be61dba2e864526383ae1e /include/linux
parent017730c11241e26577673eb9d957cfc66172ea91 (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/linux')
-rw-r--r--include/linux/sched.h20
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
2123extern void
2124__trace_special(void *__tr, void *__data,
2125 unsigned long arg1, unsigned long arg2, unsigned long arg3);
2126#else
2127static 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
2123extern void 2135extern void
2124ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next); 2136ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next);
@@ -2126,9 +2138,6 @@ extern void
2126ftrace_wake_up_task(void *rq, struct task_struct *wakee, 2138ftrace_wake_up_task(void *rq, struct task_struct *wakee,
2127 struct task_struct *curr); 2139 struct task_struct *curr);
2128extern void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data); 2140extern void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data);
2129extern void
2130__trace_special(void *__tr, void *__data,
2131 unsigned long arg1, unsigned long arg2, unsigned long arg3);
2132#else 2141#else
2133static inline void 2142static inline void
2134ftrace_ctx_switch(void *rq, struct task_struct *prev, struct task_struct *next) 2143ftrace_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,
2146static inline void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data) 2155static inline void ftrace_all_fair_tasks(void *__rq, void *__tr, void *__data)
2147{ 2156{
2148} 2157}
2149static 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
2156extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask); 2160extern long sched_setaffinity(pid_t pid, const cpumask_t *new_mask);