1 #ifndef _LINUX_TRACE_BOOT_H
2 #define _LINUX_TRACE_BOOT_H
5 * Structure which defines the trace of an initcall.
6 * You don't have to fill the func field since it is
7 * only used internally by the tracer.
11 char func[KSYM_NAME_LEN];
13 unsigned long long duration; /* usecs */
18 #ifdef CONFIG_BOOT_TRACER
19 /* Append the trace on the ring-buffer */
20 extern void trace_boot(struct boot_trace *it, initcall_t fn);
22 /* Tells the tracer that smp_pre_initcall is finished.
23 * So we can start the tracing
25 extern void start_boot_trace(void);
27 /* Resume the tracing of other necessary events
28 * such as sched switches
30 extern void enable_boot_trace(void);
32 /* Suspend this tracing. Actually, only sched_switches tracing have
33 * to be suspended. Initcalls doesn't need it.)
35 extern void disable_boot_trace(void);
37 static inline void trace_boot(struct boot_trace *it, initcall_t fn) { }
38 static inline void start_boot_trace(void) { }
39 static inline void enable_boot_trace(void) { }
40 static inline void disable_boot_trace(void) { }
41 #endif /* CONFIG_BOOT_TRACER */
43 #endif /* __LINUX_TRACE_BOOT_H */