mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
97da3854c5
commit
e725c731e3
3 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue