]> git.proxmox.com Git - mirror_qemu.git/commitdiff
vl: add system_wakeup_request tracepoint
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 6 Mar 2014 20:03:36 +0000 (01:33 +0530)
committerJuan Quintela <quintela@redhat.com>
Sat, 8 Mar 2014 21:22:34 +0000 (22:22 +0100)
It might be useful for tracing migration.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
trace-events
vl.c

index aec420292c3c215bf454f89b3263464a90a23d50..466c27efdd8eb30ab17dc34ce263a69ca21ff90a 100644 (file)
@@ -486,6 +486,7 @@ runstate_set(int new_state) "new state %d"
 g_malloc(size_t size, void *ptr) "size %zu ptr %p"
 g_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p"
 g_free(void *ptr) "ptr %p"
+system_wakeup_request(int reason) "reason=%d"
 
 # block/qcow2.c
 qcow2_writev_start_req(void *co, int64_t sector, int nb_sectors) "co %p sector %" PRIx64 " nb_sectors %d"
diff --git a/vl.c b/vl.c
index 41581c1c238f07e2a20077b9c032483ff14a6782..50693e6efdf606abc1b9af1568a9b9aec93486be 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -1837,6 +1837,8 @@ void qemu_register_suspend_notifier(Notifier *notifier)
 
 void qemu_system_wakeup_request(WakeupReason reason)
 {
+    trace_system_wakeup_request(reason);
+
     if (!runstate_check(RUN_STATE_SUSPENDED)) {
         return;
     }