From patchwork Fri Mar 22 08:28:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kazuya Saito X-Patchwork-Id: 229908 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B9BCD2C00D2 for ; Fri, 22 Mar 2013 19:29:09 +1100 (EST) Received: from localhost ([::1]:47447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxLX-0001W2-TN for incoming@patchwork.ozlabs.org; Fri, 22 Mar 2013 04:29:07 -0400 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) Received: from [127.0.0.1] (10.33.110.106) by g01jpexchyt24.g01.fujitsu.local (10.128.193.107) with Microsoft SMTP Server id 14.2.309.2; Fri, 22 Mar 2013 17:28:35 +0900 Message-ID: <514C162D.10307@jp.fujitsu.com> Date: Fri, 22 Mar 2013 17:28:29 +0900 From: Kazuya Saito User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: References: <514C1560.1020406@jp.fujitsu.com> In-Reply-To: <514C1560.1020406@jp.fujitsu.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 192.51.44.35 Subject: [Qemu-devel] [PATCH 3/5] kvm-all: add kvm_run_exit tracepoint X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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"