@@ -116,6 +116,17 @@ unless you have specific needs for more advanced backends.
* trace-event NAME on|off
Enable/disable a given trace event.
+==== Enabling/disabling trace events programmatically ====
+
+The change_trace_event_state() function can be used to enable or disable trace
+events at runtime inside QEMU:
+
+ #include "trace.h"
+
+ change_trace_event_state("virtio_irq", true); /* enable */
+ [...]
+ change_trace_event_state("virtio_irq", false); /* disable */
+
==== Analyzing trace files ====
The "simple" backend produces binary trace files that can be formatted with the
The simple trace backend exports a function that can be used to programmatically enable/disable trace events at runtime. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> --- This applies to the tracing branch at: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing-dev docs/tracing.txt | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-)