qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 1/2] trace: Add "vcpu_init" event
@ 2011-09-20 19:06 Lluís Vilanova
  2011-09-20 19:06 ` [Qemu-devel] [PATCH 2/2] trace: Add "vcpu_reset" event Lluís Vilanova
  2011-09-21  7:21 ` [Qemu-devel] [PATCH 1/2] trace: Add "vcpu_init" event Jan Kiszka
  0 siblings, 2 replies; 3+ messages in thread
From: Lluís Vilanova @ 2011-09-20 19:06 UTC (permalink / raw)
  To: qemu-devel; +Cc: Jan Kiszka, Stefan Hajnoczi

Signals the creation of a new vCPU (CPUState structure).

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 cpus.c        |    1 +
 qemu-common.h |    4 +++-
 trace-events  |    7 +++++++
 3 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/cpus.c b/cpus.c
index 54c188c..ab699bb 100644
--- a/cpus.c
+++ b/cpus.c
@@ -861,6 +861,7 @@ void qemu_init_vcpu(void *_env)
     } else {
         qemu_tcg_init_vcpu(env);
     }
+    trace_vcpu_init(env);
 }
 
 void qemu_notify_event(void)
diff --git a/qemu-common.h b/qemu-common.h
index 404c421..511f0c7 100644
--- a/qemu-common.h
+++ b/qemu-common.h
@@ -296,8 +296,10 @@ struct qemu_work_item {
     int done;
 };
 
+#include "trace.h"
+
 #ifdef CONFIG_USER_ONLY
-#define qemu_init_vcpu(env) do { } while (0)
+#define qemu_init_vcpu(env) do { trace_vcpu_init(env); } while (0)
 #else
 void qemu_init_vcpu(void *env);
 #endif
diff --git a/trace-events b/trace-events
index 658f0bc..cc59149 100644
--- a/trace-events
+++ b/trace-events
@@ -502,3 +502,10 @@ escc_sunkbd_event_in(int ch) "Untranslated keycode %2.2x"
 escc_sunkbd_event_out(int ch) "Translated keycode %2.2x"
 escc_kbd_command(int val) "Command %d"
 escc_sunmouse_event(int dx, int dy, int buttons_state) "dx=%d dy=%d buttons=%01x"
+
+### Abstract events (not specific to a file; keep at bottom)
+
+## vCPU
+
+# Create a new vCPU (CPUState structure)
+vcpu_init(void *vcpu) "%p"

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-21  7:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-20 19:06 [Qemu-devel] [PATCH 1/2] trace: Add "vcpu_init" event Lluís Vilanova
2011-09-20 19:06 ` [Qemu-devel] [PATCH 2/2] trace: Add "vcpu_reset" event Lluís Vilanova
2011-09-21  7:21 ` [Qemu-devel] [PATCH 1/2] trace: Add "vcpu_init" event Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).