Re: [Qemu-devel] [PATCH v3 04/18] trace: remove global 'uint16 dstate[]' array

2016-09-19 Thread LluĂ­s Vilanova
Daniel P Berrange writes: > 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 stil

Re: [Qemu-devel] [PATCH v3 04/18] trace: remove global 'uint16 dstate[]' array

2016-09-19 Thread Eric Blake
On 09/19/2016 09:48 AM, Daniel P. Berrange wrote: > 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