summaryrefslogtreecommitdiff
path: root/simpletrace.h
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-10-13 19:14:29 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-10-13 19:14:29 +0000
commitf871d6893a7bf8c14db162f6e75a5f8157e4c2bb (patch)
tree6b68bc6aed69b8725f4454ec83c577056f206869 /simpletrace.h
parent2abf314dddcfc1792a981ef6ecda343384b2a1a2 (diff)
downloadqemu-f871d6893a7bf8c14db162f6e75a5f8157e4c2bb.tar.gz
qemu-f871d6893a7bf8c14db162f6e75a5f8157e4c2bb.tar.bz2
qemu-f871d6893a7bf8c14db162f6e75a5f8157e4c2bb.zip
trace: print a warning if user tries to enable an unknown trace event
There was no warning if a bad trace event name was given to 'trace-event' command, thus the user could think that the command was successful even if this was not the case. Print a warning if the user tries to enable a trace event which is not known. Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'simpletrace.h')
-rw-r--r--simpletrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/simpletrace.h b/simpletrace.h
index cf3589774b..72614ec1d1 100644
--- a/simpletrace.h
+++ b/simpletrace.h
@@ -31,7 +31,7 @@ void trace5(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t
void trace6(TraceEventID event, uint64_t x1, uint64_t x2, uint64_t x3, uint64_t x4, uint64_t x5, uint64_t x6);
void st_print_trace(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...));
void st_print_trace_events(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...));
-void st_change_trace_event_state(const char *tname, bool tstate);
+bool st_change_trace_event_state(const char *tname, bool tstate);
void st_print_trace_file_status(FILE *stream, int (*stream_printf)(FILE *stream, const char *fmt, ...));
void st_set_trace_file_enabled(bool enable);
bool st_set_trace_file(const char *file);