summaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-03 13:37:33 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-24 13:08:43 -0400
commite725c731e3bb1e892e7b564c945b121cb41d1087 (patch)
tree90e6ebfbd020855bb1914a979fd78d4ef65b8b9d /include/linux/ftrace.h
parent97da3854c526d3a6ee05c849c96e48d21527606c (diff)
downloadlinux-e725c731e3bb1e892e7b564c945b121cb41d1087.tar.gz
linux-e725c731e3bb1e892e7b564c945b121cb41d1087.tar.bz2
linux-e725c731e3bb1e892e7b564c945b121cb41d1087.zip
tracing: Split tracing initialization into two for early initialization
Create an early_trace_init() function that will initialize the buffers and allow for ealier use of trace_printk(). This will also allow for future work to have function tracing start earlier at boot up. Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
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 3633e8beff39..569db5589851 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -42,8 +42,10 @@
/* Main tracing buffer and events set up */
#ifdef CONFIG_TRACING
void trace_init(void);
+void early_trace_init(void);
#else
static inline void trace_init(void) { }
+static inline void early_trace_init(void) { }
#endif
struct module;