From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47372) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHK8-0004GW-70 for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhHK4-0005yP-4F for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:26:04 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:59609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhHK3-0005y4-Oh for qemu-devel@nongnu.org; Tue, 06 Sep 2016 10:26:00 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 6 Sep 2016 16:25:58 +0200 Message-Id: <147317195853.24754.9968188864229641356.stgit@fimbulvetr.bsc.es> In-Reply-To: <147317195306.24754.2911961107337506103.stgit@fimbulvetr.bsc.es> References: <147317195306.24754.2911961107337506103.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/2] trace: Add "cpu_reset" event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi Signals the reset of the state a virtual (guest) CPU. Signed-off-by: Llu=C3=ADs Vilanova --- qom/cpu.c | 3 +++ trace-events | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/qom/cpu.c b/qom/cpu.c index 2553247..47bd807 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -29,6 +29,7 @@ #include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "hw/qdev-properties.h" +#include "trace.h" =20 bool cpu_exists(int64_t id) { @@ -245,6 +246,8 @@ void cpu_reset(CPUState *cpu) if (klass->reset !=3D NULL) { (*klass->reset)(cpu); } + + trace_guest_cpu_reset(cpu); } =20 static void cpu_common_reset(CPUState *cpu) diff --git a/trace-events b/trace-events index 5715826..2780bc8 100644 --- a/trace-events +++ b/trace-events @@ -150,6 +150,11 @@ memory_region_tb_write(int cpu_index, uint64_t addr,= uint64_t value, unsigned si # Targets: all guest_cpu_init(void *cpu) "cpu=3D%p" =20 +# Reset the state of a virtual (guest) CPU +# +# Targets: all +vcpu guest_cpu_reset(void) + # @vaddr: Access' virtual address. # @info : Access' information (see below). #