fix perf name (now without underscore prefix)
authorJulien Desfossez <julien.desfossez@efficios.com>
Thu, 8 Mar 2012 20:35:33 +0000 (15:35 -0500)
committerJulien Desfossez <julien.desfossez@efficios.com>
Thu, 8 Mar 2012 20:35:33 +0000 (15:35 -0500)
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/cursesdisplay.c
src/lttngtop.c

index eb859af1e33d5a618bff1804132b869ab8e91176..81db0af99d04b1fff3d2868cc1599b7649c8f8f9 100644 (file)
@@ -488,9 +488,9 @@ void update_perf()
        g_hash_table_iter_init(&iter, data->perf_list);
        while (g_hash_table_iter_next (&iter, &key, (gpointer) &perfn1)) {
                if (perfn1->visible) {
-                       /* + 6 to strip the "_perf_" prefix */
+                       /* + 5 to strip the "perf_" prefix */
                        mvwprintw(center, 1, perf_row, "%s",
-                                       (char *) key + 6);
+                                       (char *) key + 5);
                        perf_row += 20;
                }
                if (perfn1->sort) {
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.024523 seconds and 4 git commands to generate.