Signals the creation of a new vCPU (CPUState structure). Signed-off-by: Lluís Vilanova <vilan...@ac.upc.edu> --- cpus-user.c | 2 ++ cpus.c | 2 ++ trace-events | 7 +++++++ 3 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/cpus-user.c b/cpus-user.c index c1e5e58..5db48d2 100644 --- a/cpus-user.c +++ b/cpus-user.c @@ -1,8 +1,10 @@ /* Implementation of routines in "cpus.c" when compiling for CONFIG_USER_ONLY */ #include "qemu-common.h" +#include "trace.h" void qemu_init_vcpu(void *env) { + trace_vcpu_init(env); } diff --git a/cpus.c b/cpus.c index 8978779..00679ad 100644 --- a/cpus.c +++ b/cpus.c @@ -33,6 +33,7 @@ #include "qemu-thread.h" #include "cpus.h" +#include "trace.h" #ifndef _WIN32 #include "compatfd.h" @@ -856,6 +857,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/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"