From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R78oi-0006Jc-4N for qemu-devel@nongnu.org; Fri, 23 Sep 2011 12:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R78og-0001cZ-Ko for qemu-devel@nongnu.org; Fri, 23 Sep 2011 12:41:36 -0400 Received: from gw.ac.upc.edu ([147.83.30.3]:44264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R78og-0001cM-D5 for qemu-devel@nongnu.org; Fri, 23 Sep 2011 12:41:34 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Fri, 23 Sep 2011 18:39:13 +0200 Message-ID: <20110923163913.7646.4277.stgit@ginnungagap.bsc.es> In-Reply-To: <20110923163908.7646.87389.stgit@ginnungagap.bsc.es> References: <20110923163908.7646.87389.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 2/3] trace: Add "vcpu_init" event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Stefan Hajnoczi Signals the creation of a new vCPU (CPUState structure). Signed-off-by: Llu=C3=ADs Vilanova --- 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 */ =20 #include "qemu-common.h" +#include "trace.h" =20 =20 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 @@ =20 #include "qemu-thread.h" #include "cpus.h" +#include "trace.h" =20 #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); } =20 void qemu_notify_event(void) diff --git a/trace-events b/trace-events index 98c68a3..9b87f90 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=3D%d dy=3D%d = buttons=3D%01x" + +### Abstract events (not specific to a file; keep at bottom) + +## vCPU + +# Create a new vCPU (CPUState structure) +vcpu_init(void *vcpu) "%p"