summaryrefslogtreecommitdiff
path: root/hmp-commands.hx
diff options
context:
space:
mode:
authorLluís <xscript@gmx.net>2011-08-31 20:31:24 +0200
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-09-01 10:34:54 +0100
commit31965ae27bc11e90674be12584bb201b83df5aef (patch)
tree95e1c094a394d1ee56f1e1dc242a2c23df6bfb54 /hmp-commands.hx
parentfc764105397fa55e7c03f42a6d019063ec0cad00 (diff)
downloadqemu-31965ae27bc11e90674be12584bb201b83df5aef.tar.gz
trace: always compile support for controlling and querying trace event states
The current interface is generic for this small set of operations, and thus other backends can easily modify the "trace/control.c" file to add their own implementation. Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Diffstat (limited to 'hmp-commands.hx')
-rw-r--r--hmp-commands.hx7
1 files changed, 5 insertions, 2 deletions
diff --git a/hmp-commands.hx b/hmp-commands.hx
index d77e75fa81..9e1cca8e3d 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -180,7 +180,6 @@ STEXI
Output logs to @var{filename}.
ETEXI
-#ifdef CONFIG_TRACE_SIMPLE
{
.name = "trace-event",
.args_type = "name:s,option:b",
@@ -195,6 +194,7 @@ STEXI
changes status of a trace event
ETEXI
+#if defined(CONFIG_SIMPLE_TRACE)
{
.name = "trace-file",
.args_type = "op:s?,arg:F?",
@@ -1358,10 +1358,13 @@ ETEXI
STEXI
@item info trace
show contents of trace buffer
+ETEXI
+#endif
+
+STEXI
@item info trace-events
show available trace events and their state
ETEXI
-#endif
STEXI
@end table