aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
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 */