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