diff options
Diffstat (limited to 'simpletrace.h')
-rw-r--r-- | simpletrace.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/simpletrace.h b/simpletrace.h index 2f44ed3c3c..3a5bd9fb9d 100644 --- a/simpletrace.h +++ b/simpletrace.h @@ -15,6 +15,7 @@ #include <stdbool.h> #include <stdio.h> +#ifdef CONFIG_SIMPLE_TRACE typedef uint64_t TraceEventID; typedef struct { @@ -36,5 +37,12 @@ void st_print_trace_file_status(FILE *stream, fprintf_function stream_printf); void st_set_trace_file_enabled(bool enable); bool st_set_trace_file(const char *file); void st_flush_trace_buffer(void); +void st_init(const char *file); +#else +static inline void st_init(const char *file) +{ + /* Do nothing */ +} +#endif /* !CONFIG_SIMPLE_TRACE */ #endif /* SIMPLETRACE_H */ |