From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40066) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLeWh-0006UL-Vw for qemu-devel@nongnu.org; Thu, 06 Mar 2014 15:04:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLeWc-0005FP-Tk for qemu-devel@nongnu.org; Thu, 06 Mar 2014 15:04:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLeWc-0005FJ-M6 for qemu-devel@nongnu.org; Thu, 06 Mar 2014 15:04:14 -0500 From: Amit Shah Date: Fri, 7 Mar 2014 01:33:36 +0530 Message-Id: In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 2/4] vl: add system_wakeup_request tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: aik@ozlabs.ru, Amit Shah , qemu list , Markus Armbruster From: Alexey Kardashevskiy It might be useful for tracing migration. Signed-off-by: Alexey Kardashevskiy Signed-off-by: Amit Shah --- trace-events | 1 + vl.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/trace-events b/trace-events index 580281d..91a2edc 100644 --- a/trace-events +++ b/trace-events @@ -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 1d27b34..179f14e 100644 --- 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; } -- 1.8.5.3