Received: from eggs.gnu.org ([140.186.70.92]:41847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYOlM-0005vR-9Q for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:10:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYOlK-0003vB-Rr for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:10:48 -0500 Received: from gw.ac.upc.edu ([147.83.30.3]:52810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYOlK-0003ux-II for qemu-devel@nongnu.org; Wed, 07 Dec 2011 16:10:46 -0500 Received: from localhost (unknown [84.88.53.92]) by gw.ac.upc.edu (Postfix) with ESMTP id AB20A6B02C7 for ; Wed, 7 Dec 2011 22:10:45 +0100 (CET) From: =?utf-8?b?TGx1w61z?= Vilanova Date: Wed, 07 Dec 2011 22:10:37 +0100 Message-ID: <20111207211037.24875.53239.stgit@ginnungagap.bsc.es> In-Reply-To: <20111207210936.24875.39375.stgit@ginnungagap.bsc.es> References: <20111207210936.24875.39375.stgit@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH RFC 4/4] trace-instrument: Add a per-vCPU opaque pointer for the instrumentation backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The 'instrument' opaque pointer can be used by the user-provided trace instrumentation backend to hold arbitrary data. Signed-off-by: Llu=C3=ADs Vilanova --- cpu-defs.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu-defs.h b/cpu-defs.h index db48a7a..9e46953 100644 --- a/cpu-defs.h +++ b/cpu-defs.h @@ -218,6 +218,8 @@ typedef struct CPUWatchpoint { struct KVMState *kvm_state; = \ struct kvm_run *kvm_run; = \ int kvm_fd; = \ - int kvm_vcpu_dirty; - + int kvm_vcpu_dirty; = \ + = \ + /* opaque pointer to instrumentation data */ = \ + void *instrument; #endif