fix perf name (now without underscore prefix)
[lttngtop.git] / src / lttngtop.c
index c4dc4ced60fc0098f307bf5d490c13ff24dec61d..e4979ebb1f2bd68e178a5d201fd9e247c2286b0f 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;
This page took 0.022522 seconds and 4 git commands to generate.