aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2008-11-11 17:21:31 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-12 04:17:18 -0500
commit3f5ec13696fd4a33bde42f385406cbb1d3cc96fd (patch)
tree3c705c5991fcf0f4968ff790bb2e2ce65c8cbf18 /include/linux/ftrace.h
parent60a011c736e7dd09a0b01ca6a051a416f3f52ffb (diff)
tracing/fastboot: move boot tracer structs and funcs into their own header.
Impact: Cleanups on the boot tracer and ftrace This patch bring some cleanups about the boot tracer headers. The functions and structures of this tracer have nothing related to ftrace and should have so their own header file. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index dcbbf72a88b1..4fbc4a8b86a5 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -287,45 +287,4 @@ extern trace_function_return_t ftrace_function_return;
287extern void unregister_ftrace_return(void); 287extern void unregister_ftrace_return(void);
288#endif 288#endif
289 289
290/*
291 * Structure which defines the trace of an initcall.
292 * You don't have to fill the func field since it is
293 * only used internally by the tracer.
294 */
295struct boot_trace {
296 pid_t caller;
297 char func[KSYM_NAME_LEN];
298 int result;
299 unsigned long long duration; /* usecs */
300 ktime_t calltime;
301 ktime_t rettime;
302};
303
304#ifdef CONFIG_BOOT_TRACER
305/* Append the trace on the ring-buffer */
306extern void trace_boot(struct boot_trace *it, initcall_t fn);
307
308/* Tells the tracer that smp_pre_initcall is finished.
309 * So we can start the tracing
310 */
311extern void start_boot_trace(void);
312
313/* Resume the tracing of other necessary events
314 * such as sched switches
315 */
316extern void enable_boot_trace(void);
317
318/* Suspend this tracing. Actually, only sched_switches tracing have
319 * to be suspended. Initcalls doesn't need it.)
320 */
321extern void disable_boot_trace(void);
322#else
323static inline void trace_boot(struct boot_trace *it, initcall_t fn) { }
324static inline void start_boot_trace(void) { }
325static inline void enable_boot_trace(void) { }
326static inline void disable_boot_trace(void) { }
327#endif
328
329
330
331#endif /* _LINUX_FTRACE_H */ 290#endif /* _LINUX_FTRACE_H */