aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2008-10-03 09:39:21 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-14 04:39:17 -0400
commit097d036a2f25eecc42435c57e010aaf4a2eed2d9 (patch)
treeee5e40b940475e8a047e02093688072ff3e330d3 /include/linux/ftrace.h
parent6450c1d3213e27b0dcbf34cce7ad1ae74244c520 (diff)
tracing/fastboot: only trace non-module initcalls
At this time, only built-in initcalls interest us. We can't really produce a relevant graph if we include the modules initcall too. I had good results after this patch (see svg in attachment). Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index ed53265d1f63..5812dba4ee24 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -225,9 +225,11 @@ struct boot_trace {
225#ifdef CONFIG_BOOT_TRACER 225#ifdef CONFIG_BOOT_TRACER
226extern void trace_boot(struct boot_trace *it, initcall_t fn); 226extern void trace_boot(struct boot_trace *it, initcall_t fn);
227extern void start_boot_trace(void); 227extern void start_boot_trace(void);
228extern void stop_boot_trace(void);
228#else 229#else
229static inline void trace_boot(struct boot_trace *it, initcall_t fn) { } 230static inline void trace_boot(struct boot_trace *it, initcall_t fn) { }
230static inline void start_boot_trace(void) { } 231static inline void start_boot_trace(void) { }
232static inline void stop_boot_trace(void) { }
231#endif 233#endif
232 234
233 235