[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 6/8] trace: Add event "guest_cpu_enter"
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 6/8] trace: Add event "guest_cpu_enter" |
Date: |
Wed, 28 Sep 2016 22:31:31 +0100 |
From: Lluís Vilanova <address@hidden>
Signals the hot-plugging of a new virtual (guest) CPU.
Signed-off-by: Lluís Vilanova <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
trace-events | 8 ++++++++
trace/control-target.c | 3 +++
2 files changed, 11 insertions(+)
diff --git a/trace-events b/trace-events
index a45dc56..0492c96 100644
--- a/trace-events
+++ b/trace-events
@@ -140,6 +140,14 @@ colo_filter_rewriter_conn_offset(uint32_t offset) ":
offset=%u\n"
### Guest events, keep at bottom
+
+## vCPU
+
+# Hot-plug a new virtual (guest) CPU
+#
+# Targets: all
+vcpu guest_cpu_enter(void)
+
# @vaddr: Access' virtual address.
# @info : Access' information (see below).
#
diff --git a/trace/control-target.c b/trace/control-target.c
index 3b7d99b..52fcce5 100644
--- a/trace/control-target.c
+++ b/trace/control-target.c
@@ -9,6 +9,7 @@
#include "qemu/osdep.h"
#include "cpu.h"
+#include "trace.h"
#include "trace/control.h"
#include "translate-all.h"
@@ -117,4 +118,6 @@ void trace_init_vcpu(CPUState *vcpu)
}
}
}
+
+ trace_guest_cpu_enter(vcpu);
}
--
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 <=
- [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, 2016/09/28
- [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