qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 2/3] trace: Add event "guest_cpu_enter"


From: Lluís Vilanova
Subject: [Qemu-devel] [PATCH v2 2/3] trace: Add event "guest_cpu_enter"
Date: Thu, 15 Sep 2016 17:25:41 +0200
User-agent: StGit/0.17.1-dirty

Signals the hot-plugging of a new virtual (guest) CPU.

Signed-off-by: Lluís Vilanova <address@hidden>
---
 trace-events           |    8 ++++++++
 trace/control-target.c |    3 +++
 2 files changed, 11 insertions(+)

diff --git a/trace-events b/trace-events
index 616cc52..16a1cb4 100644
--- a/trace-events
+++ b/trace-events
@@ -142,6 +142,14 @@ memory_region_tb_write(int cpu_index, uint64_t addr, 
uint64_t value, unsigned si
 
 ### 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);
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]