diff options
author | Lluís Vilanova <vilanova@ac.upc.edu> | 2016-09-19 14:55:18 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2016-09-28 19:17:55 +0100 |
commit | 2cc2d082b52ef0aa9bffff512ce552391405ce9f (patch) | |
tree | daf3f7a7e3b70b369d5a98a9e181cabf06872f1c /qom/cpu.c | |
parent | b9d72215248789abdd1e2bfce746eff2eddd67fc (diff) | |
download | qemu-2cc2d082b52ef0aa9bffff512ce552391405ce9f.zip qemu-2cc2d082b52ef0aa9bffff512ce552391405ce9f.tar.gz qemu-2cc2d082b52ef0aa9bffff512ce552391405ce9f.tar.bz2 |
trace: Add event "guest_cpu_reset"
Signals the reset of the state a virtual (guest) CPU.
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Message-id: 147428971851.15111.8799439252178273840.stgit@fimbulvetr.bsc.es
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qom/cpu.c')
-rw-r--r-- | qom/cpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -29,6 +29,7 @@ #include "qemu/error-report.h" #include "sysemu/sysemu.h" #include "hw/qdev-properties.h" +#include "trace.h" bool cpu_exists(int64_t id) { @@ -245,6 +246,8 @@ void cpu_reset(CPUState *cpu) if (klass->reset != NULL) { (*klass->reset)(cpu); } + + trace_guest_cpu_reset(cpu); } static void cpu_common_reset(CPUState *cpu) |