use bt_ctf_iter_destroy instead of generic destroy
[lttngtop.git] / src / lttngtop.c
index c4dc4ced60fc0098f307bf5d490c13ff24dec61d..95bd383e6d8b4f4b8f8d5c11cfe114b7f16b5052 100644 (file)
@@ -212,7 +212,7 @@ void extract_perf_counter_scope(struct bt_ctf_event *event,
 
        for (i = 0; i < count; i++) {
                const char *name = bt_ctf_field_name(list[i]);
-               if (strncmp(name, "_perf_", 6) == 0) {
+               if (strncmp(name, "perf_", 5) == 0) {
                        int value = bt_ctf_get_uint64(list[i]);
                        if (bt_ctf_field_get_error())
                                continue;
@@ -434,7 +434,7 @@ void iter_trace(struct bt_context *bt_ctx)
        sem_wait(&end_trace_sem);
 
 end_iter:
-       bt_iter_destroy(bt_ctf_get_iter(iter));
+       bt_ctf_iter_destroy(iter);
 }
 
 /*
This page took 0.022152 seconds and 4 git commands to generate.