From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxJk-0008NT-RN for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:27:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIxJh-0005bV-Pl for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:27:16 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:38907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxJh-0005bO-GD for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:27:13 -0400 Received: from m1.gw.fujitsu.co.jp (unknown [10.0.50.71]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 8F16E3EE0AE for ; Fri, 22 Mar 2013 17:27:11 +0900 (JST) Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 7050B45DE58 for ; Fri, 22 Mar 2013 17:27:11 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 5221245DE59 for ; Fri, 22 Mar 2013 17:27:11 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 414C0E08002 for ; Fri, 22 Mar 2013 17:27:11 +0900 (JST) Received: from g01jpexchyt25.g01.fujitsu.local (g01jpexchyt25.g01.fujitsu.local [10.128.193.108]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id E90D41DB804E for ; Fri, 22 Mar 2013 17:27:10 +0900 (JST) Message-ID: <514C15D3.1020003@jp.fujitsu.com> Date: Fri, 22 Mar 2013 17:26:59 +0900 From: Kazuya Saito MIME-Version: 1.0 References: <514C1560.1020406@jp.fujitsu.com> In-Reply-To: <514C1560.1020406@jp.fujitsu.com> Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 1/5] vl: add runstate_set tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- trace-events | 1 + vl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/trace-events b/trace-events index d6a847d..1e352a7 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 a621aec..4bd3671 100644 --- a/vl.c +++ b/vl.c @@ -638,7 +638,7 @@ void runstate_set(RunState new_state) RunState_lookup[new_state]); abort(); } - + trace_runstate_set(new_state); current_run_state = new_state; } -- 1.7.1