Re: [Qemu-devel] [PATCH v2 1/6] trace: add trace event iterator APIs

2016-09-15 Thread Daniel P. Berrange
On Wed, Sep 14, 2016 at 11:53:10PM +0200, Lluís Vilanova wrote: > Daniel P Berrange writes: > > > Currently methods which want to iterate over trace events, > > do so using the trace_event_count() and trace_event_id() > > methods. This leaks the concept of a single ID enum to > > the callers. Ther

Re: [Qemu-devel] [PATCH v2 1/6] trace: add trace event iterator APIs

2016-09-14 Thread Lluís Vilanova
Daniel P Berrange writes: > Currently methods which want to iterate over trace events, > do so using the trace_event_count() and trace_event_id() > methods. This leaks the concept of a single ID enum to > the callers. There is an alternative trace_event_pattern() > method which can be used in an i

[Qemu-devel] [PATCH v2 1/6] trace: add trace event iterator APIs

2016-09-14 Thread Daniel P. Berrange
Currently methods which want to iterate over trace events, do so using the trace_event_count() and trace_event_id() methods. This leaks the concept of a single ID enum to the callers. There is an alternative trace_event_pattern() method which can be used in an iteration context, but its design is s