On 05/16/2016 04:09 PM, Paolo Bonzini wrote:
On 14/05/2016 14:01, Denis V. Lunev wrote:
It would be convinient to enable tracepoints in qemu-io binary. This would
allow to perform investigations without additional code recompilations.
The command line will be exactly the same as in qemu-system.
Signed-off-by: Denis V. Lunev <d...@openvz.org>
CC: Kevin Wolf <kw...@redhat.com>
CC: Paolo Bonzini <pbonz...@redhat.com>
---
qemu-io.c | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/qemu-io.c b/qemu-io.c
index 5ef3ef7..2d0d2b0 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -18,6 +18,7 @@
#include "qemu/option.h"
#include "qemu/config-file.h"
#include "qemu/readline.h"
+#include "qemu/log.h"
Why does this need qemu/log.h, as opposed to trace/control.h (which
probably should be moved to include/qemu/trace.h, but that's a patch for
another day)?
no, this is necessary for qemu_set_log(LOG_TRACE); which is performed
as a last
step to enable tracing.