mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
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>
This commit is contained in:
parent
6913e79c36
commit
17f7ac75df
5 changed files with 51 additions and 5 deletions
|
|
@ -85,6 +85,23 @@ static TraceEventID trace_event_count(void);
|
|||
*/
|
||||
static TraceEventID trace_event_get_id(TraceEvent *ev);
|
||||
|
||||
/**
|
||||
* trace_event_get_vcpu_id:
|
||||
*
|
||||
* Get the per-vCPU identifier of an event.
|
||||
*
|
||||
* Special value #TRACE_VCPU_EVENT_COUNT means the event is not vCPU-specific
|
||||
* (does not have the "vcpu" property).
|
||||
*/
|
||||
static TraceEventVCPUID trace_event_get_vcpu_id(TraceEvent *ev);
|
||||
|
||||
/**
|
||||
* trace_event_is_vcpu:
|
||||
*
|
||||
* Whether this is a per-vCPU event.
|
||||
*/
|
||||
static bool trace_event_is_vcpu(TraceEvent *ev);
|
||||
|
||||
/**
|
||||
* trace_event_get_name:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue