From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxLB-0001Rl-0O for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:28:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIxL8-0005tW-0j for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:28:44 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:38736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxL7-0005t8-G3 for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:28:41 -0400 Received: from m3.gw.fujitsu.co.jp (unknown [10.0.50.73]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id AE61F3EE0BC for ; Fri, 22 Mar 2013 17:28:40 +0900 (JST) Received: from smail (m3 [127.0.0.1]) by outgoing.m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 93E8445DEB2 for ; Fri, 22 Mar 2013 17:28:40 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (s3.gw.fujitsu.co.jp [10.0.50.93]) by m3.gw.fujitsu.co.jp (Postfix) with ESMTP id 7D9B845DEB5 for ; Fri, 22 Mar 2013 17:28:40 +0900 (JST) Received: from s3.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 7130F1DB8038 for ; Fri, 22 Mar 2013 17:28:40 +0900 (JST) Received: from g01jpexchyt24.g01.fujitsu.local (g01jpexchyt24.g01.fujitsu.local [10.128.193.107]) by s3.gw.fujitsu.co.jp (Postfix) with ESMTP id 12E21E08001 for ; Fri, 22 Mar 2013 17:28:40 +0900 (JST) Message-ID: <514C162D.10307@jp.fujitsu.com> Date: Fri, 22 Mar 2013 17:28:29 +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 3/5] kvm-all: add kvm_run_exit tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patch enable us to know exit reason of KVM_RUN. It will help us know where the trouble is caused. Signed-off-by: Kazuya Saito --- kvm-all.c | 1 + trace-events | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index da15623..29fca13 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1576,6 +1576,7 @@ int kvm_cpu_exec(CPUArchState *env) abort(); } + trace_kvm_run_exit(run->exit_reason); switch (run->exit_reason) { case KVM_EXIT_IO: DPRINTF("handle_io\n"); diff --git a/trace-events b/trace-events index 1af7060..c691ce4 100644 --- a/trace-events +++ b/trace-events @@ -1101,3 +1101,4 @@ migrate_set_state(int new_state) "new state %d" kvm_ioctl(int type) "type %d" kvm_vm_ioctl(int type) "type %d" kvm_vcpu_ioctl(int type) "type %d" +kvm_run_exit(uint32_t reason) "reason %d" -- 1.7.1