]> git.proxmox.com Git - qemu.git/blobdiff - simpletrace.h
x86: Properly reset PAT MSR
[qemu.git] / simpletrace.h
index 2f44ed3c3c1a20618ca3e16a70f9daabe80c1f9e..3a5bd9fb9d5c3485e27ec0278ad735fcf5ca22eb 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);
+void st_init(const char *file);
+#else
+static inline void st_init(const char *file)
+{
+    /* Do nothing */
+}
+#endif /* !CONFIG_SIMPLE_TRACE */
 
 #endif /* SIMPLETRACE_H */