From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCt1-0000AQ-9U for qemu-devel@nongnu.org; Thu, 28 Mar 2013 09:29:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULCqX-0008Fx-0o for qemu-devel@nongnu.org; Thu, 28 Mar 2013 09:26:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULCqW-0008Ff-OQ for qemu-devel@nongnu.org; Thu, 28 Mar 2013 09:26:24 -0400 From: Stefan Hajnoczi Date: Thu, 28 Mar 2013 14:25:52 +0100 Message-Id: <1364477152-26994-12-git-send-email-stefanha@redhat.com> In-Reply-To: <1364477152-26994-1-git-send-email-stefanha@redhat.com> References: <1364477152-26994-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 11/11] vl: add runstate_set tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Anthony Liguori , Kazuya Saito , Stefan Hajnoczi From: Kazuya Saito This patch enables us to know RunState transition. It will be userful for investigation when the trouble occured in special event such like live migration, shutdown, suspend, and so on. Signed-off-by: Kazuya Saito Signed-off-by: Stefan Hajnoczi --- trace-events | 1 + vl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/trace-events b/trace-events index 406fe5f..85dd49c 100644 --- a/trace-events +++ b/trace-events @@ -474,6 +474,7 @@ scsi_request_sense(int target, int lun, int tag) "target %d lun %d tag %d" # vl.c vm_state_notify(int running, int reason) "running %d reason %d" load_file(const char *name, const char *path) "name %s location %s" +runstate_set(int new_state) "new state %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 7643f16..770cb7f 100644 --- a/vl.c +++ b/vl.c @@ -642,7 +642,7 @@ void runstate_set(RunState new_state) RunState_lookup[new_state]); abort(); } - + trace_runstate_set(new_state); current_run_state = new_state; } -- 1.8.1.4