diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-06 07:43:47 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-06 07:43:47 +0100 |
commit | 79c81d220c8e25163f56edcdfaf23f83a4c88e6b (patch) | |
tree | 8748e39e968aacebbf150b81cbc845582b382a47 /include/linux/ftrace.h | |
parent | 3299b4dd1180762da831be5eb6adc44553eaec26 (diff) | |
parent | 79a9d461fd521f133f0e66485aa9ed09c21f5191 (diff) | |
download | kernel_samsung_espresso10-79c81d220c8e25163f56edcdfaf23f83a4c88e6b.zip kernel_samsung_espresso10-79c81d220c8e25163f56edcdfaf23f83a4c88e6b.tar.gz kernel_samsung_espresso10-79c81d220c8e25163f56edcdfaf23f83a4c88e6b.tar.bz2 |
Merge branch 'tracing/fastboot' into tracing/ftrace
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index e46a7b3..4642959 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -234,6 +234,11 @@ ftrace_init_module(unsigned long *start, unsigned long *end) { } #endif +/* + * Structure which defines the trace of an initcall. + * You don't have to fill the func field since it is + * only used internally by the tracer. + */ struct boot_trace { pid_t caller; char func[KSYM_NAME_LEN]; @@ -244,13 +249,28 @@ struct boot_trace { }; #ifdef CONFIG_BOOT_TRACER +/* Append the trace on the ring-buffer */ extern void trace_boot(struct boot_trace *it, initcall_t fn); + +/* Tells the tracer that smp_pre_initcall is finished. + * So we can start the tracing + */ extern void start_boot_trace(void); -extern void stop_boot_trace(void); + +/* Resume the tracing of other necessary events + * such as sched switches + */ +extern void enable_boot_trace(void); + +/* Suspend this tracing. Actually, only sched_switches tracing have + * to be suspended. Initcalls doesn't need it.) + */ +extern void disable_boot_trace(void); #else static inline void trace_boot(struct boot_trace *it, initcall_t fn) { } static inline void start_boot_trace(void) { } -static inline void stop_boot_trace(void) { } +static inline void enable_boot_trace(void) { } +static inline void disable_boot_trace(void) { } #endif |