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> |
||
---|---|---|
.. | ||
__init__.py | ||
c.py | ||
d.py | ||
events_c.py | ||
events_h.py | ||
h.py | ||
simpletrace_stap.py | ||
stap.py | ||
tcg_h.py | ||
tcg_helper_c.py | ||
tcg_helper_h.py | ||
tcg_helper_wrapper_h.py | ||
ust_events_c.py | ||
ust_events_h.py |