@@ -861,6 +861,7 @@ void qemu_init_vcpu(void *_env)
} else {
qemu_tcg_init_vcpu(env);
}
+ trace_qemu_init_vcpu(env);
}
void qemu_notify_event(void)
@@ -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_qemu_init_vcpu(env); } while (0)
#else
void qemu_init_vcpu(void *env);
#endif
@@ -501,3 +501,6 @@ 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"
+
+# qemu-common.h
+qemu_init_vcpu(void *vcpu) "%p"
Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu> --- cpus.c | 1 + qemu-common.h | 4 +++- trace-events | 3 +++ 3 files changed, 7 insertions(+), 1 deletions(-)