]> git.proxmox.com Git - qemu.git/blobdiff - simpletrace.h
virtio-serial: Clean up virtser_bus_dev_print() output
[qemu.git] / simpletrace.h
index 2f44ed3c3c1a20618ca3e16a70f9daabe80c1f9e..8d893bd849175b9eae8d213d783d893bd9e7bb9c 100644 (file)
@@ -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);
+bool st_init(const char *file);
+#else
+static inline bool st_init(const char *file)
+{
+    return true;
+}
+#endif /* !CONFIG_SIMPLE_TRACE */
 
 #endif /* SIMPLETRACE_H */