From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kazuya Saito Subject: [PATCH uq/master v2 2/2] kvm-all: add kvm_run_exit tracepoint Date: Fri, 29 Mar 2013 13:27:52 +0900 Message-ID: <51551848.3040207@jp.fujitsu.com> References: <51551779.9060403@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , "aliguori@us.ibm.com" , "stefanha@linux.vnet.ibm.com" , "kvm@vger.kernel.org" To: "qemu-devel@nongnu.org" Return-path: Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:43396 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850Ab3C2E2G (ORCPT ); Fri, 29 Mar 2013 00:28:06 -0400 Received: from m2.gw.fujitsu.co.jp (unknown [10.0.50.72]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 2AFF13EE0BD for ; Fri, 29 Mar 2013 13:28:04 +0900 (JST) Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 008A445DE50 for ; Fri, 29 Mar 2013 13:28:04 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id DF97D45DDCF for ; Fri, 29 Mar 2013 13:28:03 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id D21581DB8038 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 s2.gw.fujitsu.co.jp (Postfix) with ESMTP id 8F8F81DB803C for ; Fri, 29 Mar 2013 13:28:03 +0900 (JST) In-Reply-To: <51551779.9060403@jp.fujitsu.com> Sender: kvm-owner@vger.kernel.org List-ID: 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" + -- 1.7.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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) Message-ID: <51551848.3040207@jp.fujitsu.com> Date: Fri, 29 Mar 2013 13:27:52 +0900 From: Kazuya Saito MIME-Version: 1.0 References: <51551779.9060403@jp.fujitsu.com> In-Reply-To: <51551779.9060403@jp.fujitsu.com> Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH uq/master v2 2/2] kvm-all: add kvm_run_exit tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Cc: Paolo Bonzini , "aliguori@us.ibm.com" , "stefanha@linux.vnet.ibm.com" , "kvm@vger.kernel.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" + -- 1.7.1