qemu-patch-raspberry4/scripts/tracetool/format
Daniel P. Berrange 9397740244 trace: remove global 'uint16 dstate[]' array
Instead of having a global dstate array, declare a single
'uint16 TRACE_${EVENT_NAME}_DSTATE' variable for each
trace event. Record a pointer to this variable in the
TraceEvent struct too.

By turning trace_event_get_state_dynamic_by_id into a
macro, this still hits the fast path, and cache affinity
is ensured by declaring all the uint16 vars adjacent to
each other.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Lluís Vilanova <vilanova@ac.upc.edu>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 1475588159-30598-7-git-send-email-berrange@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2016-10-12 09:35:54 +02:00
..
__init__.py trace: [tracetool] Minimize the amount of per-backend code 2014-05-07 19:07:18 +02:00
c.py trace: [tracetool] Minimize the amount of per-backend code 2014-05-07 19:07:18 +02:00
d.py trace: add DTrace reserved words for .d files 2015-03-02 15:39:43 -06:00
events_c.py trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
events_h.py trace: remove global 'uint16 dstate[]' array 2016-10-12 09:35:54 +02:00
h.py trace: Conditionally trace events based on their per-vCPU state 2016-07-18 18:23:12 +01:00
simpletrace_stap.py trace: add tracetool simpletrace_stap format 2014-08-12 14:26:11 +01:00
stap.py trace: extract stap_escape() function for reuse 2014-08-12 14:26:11 +01:00
tcg_h.py Clean up includes some more 2016-03-22 22:20:16 +01:00
tcg_helper_c.py qemu-common: push cpu.h inclusion out of qemu-common.h 2016-05-19 16:42:29 +02:00
tcg_helper_h.py trace: Add 'vcpu' event property to trace guest vCPU 2016-03-01 13:27:10 +00:00
tcg_helper_wrapper_h.py trace: Add 'vcpu' event property to trace guest vCPU 2016-03-01 13:27:10 +00:00
ust_events_c.py Clean up includes some more 2016-03-22 22:20:16 +01:00
ust_events_h.py trace: [ust] Fix format string computation in tcg-enabled events 2014-09-26 09:34:38 +01:00