[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH RFC 4/4] trace-instrument: Add a per-vCPU opaque poi
From: |
Lluís Vilanova |
Subject: |
[Qemu-devel] [PATCH RFC 4/4] trace-instrument: Add a per-vCPU opaque pointer for the instrumentation backend |
Date: |
Wed, 07 Dec 2011 22:10:37 +0100 |
User-agent: |
StGit/0.15 |
The 'instrument' opaque pointer can be used by the user-provided trace
instrumentation backend to hold arbitrary data.
Signed-off-by: Lluís Vilanova <address@hidden>
---
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