From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIztz-0004ot-9S for qemu-devel@nongnu.org; Fri, 22 Mar 2013 07:12:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIzty-0005jl-0F for qemu-devel@nongnu.org; Fri, 22 Mar 2013 07:12:51 -0400 Received: from mail-vb0-x230.google.com ([2607:f8b0:400c:c02::230]:48568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIztx-0005jU-SA for qemu-devel@nongnu.org; Fri, 22 Mar 2013 07:12:49 -0400 Received: by mail-vb0-f48.google.com with SMTP id fc21so2506697vbb.7 for ; Fri, 22 Mar 2013 04:12:49 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <514C3CAD.6070703@redhat.com> Date: Fri, 22 Mar 2013 12:12:45 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <514C1560.1020406@jp.fujitsu.com> <514C162D.10307@jp.fujitsu.com> In-Reply-To: <514C162D.10307@jp.fujitsu.com> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Subject: Re: [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: Kazuya Saito Cc: qemu-devel@nongnu.org Il 22/03/2013 09:28, Kazuya Saito ha scritto: > 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" > Please add the CPU number here, too. Paolo