[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 7/8] trace: Add event "guest_cpu_reset"
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 7/8] trace: Add event "guest_cpu_reset" |
Date: |
Wed, 28 Sep 2016 22:31:32 +0100 |
From: Lluís Vilanova <address@hidden>
Signals the reset of the state a virtual (guest) CPU.
Signed-off-by: Lluís Vilanova <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
qom/cpu.c | 3 +++
trace-events | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/qom/cpu.c b/qom/cpu.c
index f87fffa..484c493 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"
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)
diff --git a/trace-events b/trace-events
index 0492c96..fb96f6c 100644
--- a/trace-events
+++ b/trace-events
@@ -148,6 +148,11 @@ colo_filter_rewriter_conn_offset(uint32_t offset) ":
offset=%u\n"
# Targets: all
vcpu guest_cpu_enter(void)
+# Reset the state of a virtual (guest) CPU
+#
+# Targets: all
+vcpu guest_cpu_reset(void)
+
# @vaddr: Access' virtual address.
# @info : Access' information (see below).
#
--
2.7.4
- [Qemu-devel] [PULL 0/8] Tracing patches, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 2/8] trace: move util/qemu-coroutine*.c trace points into correct file, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 1/8] trace: move util/buffer.c trace points into correct file, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 3/8] trace: move hw/mem/pc-dimm.c trace points into correct file, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 4/8] trace: move hw/virtio/virtio-balloon.c trace points into correct file, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 6/8] trace: Add event "guest_cpu_enter", Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 5/8] trace: Properly initialize dynamic event states in hot-plugged vCPUs, Stefan Hajnoczi, 2016/09/28
- [Qemu-devel] [PULL 7/8] trace: Add event "guest_cpu_reset",
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 8/8] trace: Document the execution mode of guest events, Stefan Hajnoczi, 2016/09/28
- Re: [Qemu-devel] [PULL 0/8] Tracing patches, Peter Maydell, 2016/09/29