summaryrefslogtreecommitdiffstats
path: root/scripts/tracetool/backend/syslog.py
diff options
context:
space:
mode:
authorDaniel P. Berrange2016-10-04 15:35:42 +0200
committerStefan Hajnoczi2016-10-12 09:35:53 +0200
commit6a1b0f3aea09142cb8989ccffb3b74bb8808a00f (patch)
treee92e911b9783cdff602181b1c5d9e6089c23eba1 /scripts/tracetool/backend/syslog.py
parenttrace: move colo trace events to net/ sub-directory (diff)
downloadqemu-6a1b0f3aea09142cb8989ccffb3b74bb8808a00f.tar.gz
qemu-6a1b0f3aea09142cb8989ccffb3b74bb8808a00f.tar.xz
qemu-6a1b0f3aea09142cb8989ccffb3b74bb8808a00f.zip
trace: add trace event iterator APIs
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: 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-4-git-send-email-berrange@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/tracetool/backend/syslog.py')
0 files changed, 0 insertions, 0 deletions