From patchwork Fri Mar 29 04:27:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kazuya Saito X-Patchwork-Id: 232281 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 11BBA2C00AF for ; Fri, 29 Mar 2013 15:28:27 +1100 (EST) Received: from localhost ([::1]:45809 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULQvR-0006Jy-9O for incoming@patchwork.ozlabs.org; Fri, 29 Mar 2013 00:28:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42692) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULQvA-0006Jj-Au for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:28:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULQv7-0008W9-B6 for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:28:08 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:59036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULQv6-0008W1-SX for qemu-devel@nongnu.org; Fri, 29 Mar 2013 00:28:05 -0400 Received: from m4.gw.fujitsu.co.jp (unknown [10.0.50.74]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 23E5B3EE0B6 for ; Fri, 29 Mar 2013 13:28:04 +0900 (JST) Received: from smail (m4 [127.0.0.1]) by outgoing.m4.gw.fujitsu.co.jp (Postfix) with ESMTP id 0CEF645DE50 for ; Fri, 29 Mar 2013 13:28:04 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (s4.gw.fujitsu.co.jp [10.0.50.94]) by m4.gw.fujitsu.co.jp (Postfix) with ESMTP id E7B5E45DE4F for ; Fri, 29 Mar 2013 13:28:03 +0900 (JST) Received: from s4.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id D8FBAE08001 for ; Fri, 29 Mar 2013 13:28:03 +0900 (JST) Received: from g01jpexchkw04.g01.fujitsu.local (g01jpexchkw04.g01.fujitsu.local [10.0.194.43]) by s4.gw.fujitsu.co.jp (Postfix) with ESMTP id 9452D1DB802F for ; Fri, 29 Mar 2013 13:28:03 +0900 (JST) Received: from [127.0.0.1] (10.33.110.178) by g01jpexchkw04.g01.fujitsu.local (10.0.194.43) with Microsoft SMTP Server id 14.2.309.2; Fri, 29 Mar 2013 13:28:03 +0900 Message-ID: <51551848.3040207@jp.fujitsu.com> Date: Fri, 29 Mar 2013 13:27:52 +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: "qemu-devel@nongnu.org" References: <51551779.9060403@jp.fujitsu.com> In-Reply-To: <51551779.9060403@jp.fujitsu.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 192.51.44.36 Cc: Paolo Bonzini , "aliguori@us.ibm.com" , "stefanha@linux.vnet.ibm.com" , "kvm@vger.kernel.org" Subject: [Qemu-devel] [PATCH uq/master v2 2/2] 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 | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index fdb099c..325f5e7 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1574,6 +1574,7 @@ int kvm_cpu_exec(CPUArchState *env) abort(); } + trace_kvm_run_exit(cpu->cpu_index, run->exit_reason); switch (run->exit_reason) { case KVM_EXIT_IO: DPRINTF("handle_io\n"); diff --git a/trace-events b/trace-events index 3023744..8fd6e80 100644 --- a/trace-events +++ b/trace-events @@ -1106,3 +1106,5 @@ migrate_set_state(int new_state) "new state %d" kvm_ioctl(int type, void *arg) "type %d, arg %p" kvm_vm_ioctl(int type, void *arg) "type %d, arg %p" kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type %d, arg %p" +kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d" +