From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYEgN-0007uY-Jw for qemu-devel@nongnu.org; Fri, 03 May 2013 08:02:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYEgC-00045r-4A for qemu-devel@nongnu.org; Fri, 03 May 2013 08:01:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYEgB-00045M-QY for qemu-devel@nongnu.org; Fri, 03 May 2013 08:01:35 -0400 From: Stefan Hajnoczi Date: Fri, 3 May 2013 14:01:23 +0200 Message-Id: <1367582485-15579-3-git-send-email-stefanha@redhat.com> In-Reply-To: <1367582485-15579-1-git-send-email-stefanha@redhat.com> References: <1367582485-15579-1-git-send-email-stefanha@redhat.com> Subject: [Qemu-devel] [PATCH 2/4] 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: Anthony Liguori , Kazuya Saito , Stefan Hajnoczi From: Kazuya Saito 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 Reviewed-by: Paolo Bonzini Signed-off-by: Stefan Hajnoczi --- kvm-all.c | 1 + trace-events | 2 ++ 2 files changed, 3 insertions(+) diff --git a/kvm-all.c b/kvm-all.c index 4f73b98..3a31602 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1627,6 +1627,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 d5bc7a5..17d75ab 100644 --- a/trace-events +++ b/trace-events @@ -1158,3 +1158,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.8.1.4