From patchwork Fri Sep 16 17:01:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Llu=C3=ADs_Vilanova?= X-Patchwork-Id: 115007 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 97423B71C0 for ; Sat, 17 Sep 2011 03:01:51 +1000 (EST) Received: from localhost ([::1]:37595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4bnN-0005fi-Ky for incoming@patchwork.ozlabs.org; Fri, 16 Sep 2011 13:01:45 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4bnE-0005Ts-LW for qemu-devel@nongnu.org; Fri, 16 Sep 2011 13:01:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4bnD-0007hJ-EW for qemu-devel@nongnu.org; Fri, 16 Sep 2011 13:01:36 -0400 Received: from gw.ac.upc.edu ([147.83.30.3]:59328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4bnD-0007hD-8u for qemu-devel@nongnu.org; Fri, 16 Sep 2011 13:01:35 -0400 Received: from localhost (unknown [84.88.53.92]) by gw.ac.upc.edu (Postfix) with ESMTP id 00FDC6B01CD for ; Fri, 16 Sep 2011 19:01:34 +0200 (CEST) To: qemu-devel@nongnu.org From: =?utf-8?b?TGx1w61z?= Vilanova Date: Fri, 16 Sep 2011 19:01:29 +0200 Message-ID: <20110916170129.16838.55823.stgit@ginnungagap.bsc.es> In-Reply-To: <20110916170124.16838.70890.stgit@ginnungagap.bsc.es> References: <20110916170124.16838.70890.stgit@ginnungagap.bsc.es> User-Agent: StGit/0.15 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 147.83.30.3 Subject: [Qemu-devel] [PATCH 2/3] trace: Add "qemu_init_vcpu" event X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: LluĂ­s Vilanova --- cpus.c | 1 + qemu-common.h | 4 +++- trace-events | 3 +++ 3 files changed, 7 insertions(+), 1 deletions(-) diff --git a/cpus.c b/cpus.c index 54c188c..8f7ce15 100644 --- a/cpus.c +++ b/cpus.c @@ -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) diff --git a/qemu-common.h b/qemu-common.h index d848f4a..cdb6b3b 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_qemu_init_vcpu(env); } while (0) #else void qemu_init_vcpu(void *env); #endif diff --git a/trace-events b/trace-events index 7b2e619..53add77 100644 --- a/trace-events +++ b/trace-events @@ -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"