diff options
author | Lluís <xscript@gmx.net> | 2011-08-31 20:31:03 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-09-01 10:34:53 +0100 |
commit | e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7 (patch) | |
tree | ceb7f2b2cdff3c511e1807e65eb862b82cfac16c /trace/simple.h | |
parent | edb47ec498a5c00607e8d428668d5141822a9eac (diff) | |
download | qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.zip qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.tar.gz qemu-e4858974ec36afd8a6b3a9e2b0ad8f357f28efc7.tar.bz2 |
trace: avoid conditional code compilation during option parsing
A default implementation for backend-specific routines is provided in
"trace/default.c", which backends can override by setting "trace_default=no" in
"configure".
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Diffstat (limited to 'trace/simple.h')
-rw-r--r-- | trace/simple.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/trace/simple.h b/trace/simple.h index 77633ab..08b9a52 100644 --- a/trace/simple.h +++ b/trace/simple.h @@ -15,7 +15,6 @@ #include <stdbool.h> #include <stdio.h> -#ifdef CONFIG_TRACE_SIMPLE typedef uint64_t TraceEventID; typedef struct { @@ -37,12 +36,5 @@ 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); -bool st_init(const char *file); -#else -static inline bool st_init(const char *file) -{ - return true; -} -#endif /* !CONFIG_TRACE_SIMPLE */ #endif /* TRACE_SIMPLE_H */ |