]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-io.c
qemu-io: add option to enable tracing
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 12 Mar 2012 16:36:07 +0000 (16:36 +0000)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:39 +0000 (14:54 +0200)
commitd7bb72c83cfbcfd0563e158800e4052819223524
treebb36b10cc9460fee6d78d0bc89eb4b112fb36b13
parent3948d1d4876065160583e79533bf604481063833
qemu-io: add option to enable tracing

It can be useful to enable QEMU tracing when trying out block layer
interfaces via qemu-io.  Tracing can be enabled using the new -T FILE
option where the given file contains a list of trace events to enable
(just like the qemu --trace events=FILE option).

  $ echo qemu_vfree >my-events
  $ ./qemu-io -T my-events ...

Remember to use ./configure --enable-trace-backend=BACKEND when building
qemu-io.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-io.c