aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2010-11-16 12:20:25 +0000
committerAnthony Liguori <aliguori@us.ibm.com>2010-11-21 09:16:57 -0600
commit94b0b5ff5f5c3ab946fa926d464738edb3713ed4 (patch)
treead036f244c901516dbd3940d25b32c5834903160 /vl.c
parent9dbcca5aa13cb9ab40788ac4c56bc227d94ca920 (diff)
downloadqemu-94b0b5ff5f5c3ab946fa926d464738edb3713ed4.zip
qemu-94b0b5ff5f5c3ab946fa926d464738edb3713ed4.tar.gz
qemu-94b0b5ff5f5c3ab946fa926d464738edb3713ed4.tar.bz2
trace: Trace vm_start()/vm_stop()
VM state change notifications are invoked from vm_start()/vm_stop(). Trace these state changes so we can reason about the state of the VM from trace output. Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 9ee6479..805e11f 100644
--- a/vl.c
+++ b/vl.c
@@ -158,6 +158,7 @@ int main(int argc, char **argv)
#include "slirp/libslirp.h"
+#include "trace.h"
#include "qemu-queue.h"
#include "cpus.h"
#include "arch_init.h"
@@ -1074,6 +1075,8 @@ void vm_state_notify(int running, int reason)
{
VMChangeStateEntry *e;
+ trace_vm_state_notify(running, reason);
+
for (e = vm_change_state_head.lh_first; e; e = e->entries.le_next) {
e->cb(e->opaque, running, reason);
}