diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-05-12 15:21:10 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 16:29:25 -0400 |
commit | 5b82a1b08a00b2adca3d9dd9777efff40b7aaaa1 (patch) | |
tree | 4dcce4af592ca177bee3dfeb34f9b482d142e713 /kernel/trace/trace.h | |
parent | 0aa977f592f17004f9d1d545f2e1bb9ea71896c3 (diff) |
Port ftrace to markers
Porting ftrace to the marker infrastructure.
Don't need to chain to the wakeup tracer from the sched tracer, because markers
support multiple probes connected.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 8845033ab49d..f5de0601b408 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -234,25 +234,10 @@ void update_max_tr_single(struct trace_array *tr, | |||
234 | 234 | ||
235 | extern cycle_t ftrace_now(int cpu); | 235 | extern cycle_t ftrace_now(int cpu); |
236 | 236 | ||
237 | #ifdef CONFIG_SCHED_TRACER | ||
238 | extern void | ||
239 | wakeup_sched_switch(struct task_struct *prev, struct task_struct *next); | ||
240 | extern void | ||
241 | wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr); | ||
242 | #else | ||
243 | static inline void | ||
244 | wakeup_sched_switch(struct task_struct *prev, struct task_struct *next) | ||
245 | { | ||
246 | } | ||
247 | static inline void | ||
248 | wakeup_sched_wakeup(struct task_struct *wakee, struct task_struct *curr) | ||
249 | { | ||
250 | } | ||
251 | #endif | ||
252 | |||
253 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | 237 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER |
254 | typedef void | 238 | typedef void |
255 | (*tracer_switch_func_t)(void *private, | 239 | (*tracer_switch_func_t)(void *private, |
240 | void *__rq, | ||
256 | struct task_struct *prev, | 241 | struct task_struct *prev, |
257 | struct task_struct *next); | 242 | struct task_struct *next); |
258 | 243 | ||
@@ -262,9 +247,6 @@ struct tracer_switch_ops { | |||
262 | struct tracer_switch_ops *next; | 247 | struct tracer_switch_ops *next; |
263 | }; | 248 | }; |
264 | 249 | ||
265 | extern int register_tracer_switch(struct tracer_switch_ops *ops); | ||
266 | extern int unregister_tracer_switch(struct tracer_switch_ops *ops); | ||
267 | |||
268 | #endif /* CONFIG_CONTEXT_SWITCH_TRACER */ | 250 | #endif /* CONFIG_CONTEXT_SWITCH_TRACER */ |
269 | 251 | ||
270 | #ifdef CONFIG_DYNAMIC_FTRACE | 252 | #ifdef CONFIG_DYNAMIC_FTRACE |