diff mbox

[RFC,4/4] trace-instrument: Add a per-vCPU opaque pointer for the instrumentation backend

Message ID 20111207211037.24875.53239.stgit@ginnungagap.bsc.es
State New
Headers show

Commit Message

Lluís Vilanova Dec. 7, 2011, 9:10 p.m. UTC
The 'instrument' opaque pointer can be used by the user-provided trace
instrumentation backend to hold arbitrary data.

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
---
 cpu-defs.h |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

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