aboutsummaryrefslogtreecommitdiff
path: root/trace/simple.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-06-01 15:24:03 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2021-07-12 17:37:07 +0100
commit117856c3748dfda50351d1c0328486ede5f2646c (patch)
treed8c7d94d85dc89e8c5bbcea24bf1051b0a22f40f /trace/simple.c
parent2adf2164918e2dc74fef2cdd0257917aff488640 (diff)
trace: iter init tweaks
Rename trace_event_iter_init() to trace_event_iter_init_pattern(), add trace_event_iter_init_all() for interating over all events. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20210601132414.432430-3-kraxel@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace/simple.c')
-rw-r--r--trace/simple.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trace/simple.c b/trace/simple.c
index 9cd2ed1fb3..97b6f85168 100644
--- a/trace/simple.c
+++ b/trace/simple.c
@@ -286,7 +286,7 @@ static int st_write_event_mapping(void)
TraceEventIter iter;
TraceEvent *ev;
- trace_event_iter_init(&iter, NULL);
+ trace_event_iter_init_all(&iter);
while ((ev = trace_event_iter_next(&iter)) != NULL) {
uint64_t id = trace_event_get_id(ev);
const char *name = trace_event_get_name(ev);