summary refs log tree commit diff stats
path: root/trace/event-internal.h
diff options
context:
space:
mode:
authorLluís Vilanova <vilanova@ac.upc.edu>2016-07-11 12:53:24 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2016-07-18 18:13:54 +0100
commit17f7ac75df3909c384c18274b41a2a91192599e3 (patch)
treeb5000f5a073806b11d4a5e4f73336df85f82d348 /trace/event-internal.h
parent6913e79c3677a4282203fdd79af7927a94d0427e (diff)
downloadfocaccia-qemu-17f7ac75df3909c384c18274b41a2a91192599e3.tar.gz
focaccia-qemu-17f7ac75df3909c384c18274b41a2a91192599e3.zip
trace: Identify events with the 'vcpu' property
A new event attribute 'cpu_id' is added to have a separate ID
space ('TRACE_VCPU_*') for all events with the 'vcpu' property.

These are later used to identify which events are enabled on each vCPU.

Signed-off-by: Lluís Vilanova <vilanova@ac.upc.edu>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace/event-internal.h')
-rw-r--r--trace/event-internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/trace/event-internal.h b/trace/event-internal.h
index e4ea2e78a9..5d8fa97ca5 100644
--- a/trace/event-internal.h
+++ b/trace/event-internal.h
@@ -1,7 +1,7 @@
 /*
  * Interface for configuring and controlling the state of tracing events.
  *
- * Copyright (C) 2012 Lluís Vilanova <vilanova@ac.upc.edu>
+ * Copyright (C) 2012-2016 Lluís Vilanova <vilanova@ac.upc.edu>
  *
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
@@ -16,6 +16,7 @@
 /**
  * TraceEvent:
  * @id: Unique event identifier.
+ * @vcpu_id: Unique per-vCPU event identifier.
  * @name: Event name.
  * @sstate: Static tracing state.
  *
@@ -23,6 +24,7 @@
  */
 typedef struct TraceEvent {
     TraceEventID id;
+    TraceEventVCPUID vcpu_id;
     const char * name;
     const bool sstate;
 } TraceEvent;