On Thu, Sep 22, 2016 at 09:40:36AM +0100, Daniel P. Berrange wrote: > 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 stateless, so is not easy to expand it in the > future. > > This defines a formal iterator API will provide a future- > proof way of iterating over events. > > The iterator is also able to apply a pattern match filter > to events, further removing the need for the pattern > > Reviewed-by: Lluís Vilanova <vilan...@ac.upc.edu> > Signed-off-by: Daniel P. Berrange <berra...@redhat.com> > --- > trace/control.c | 21 +++++++++++++++++++++ > trace/control.h | 27 +++++++++++++++++++++++++++ > 2 files changed, 48 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature