X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fcursesdisplay.c;h=97069fe10299347334db8104ca36a45dc233112e;hp=5ef175248e781ad11a749cfa13a6086744f94512;hb=fbbda4dac5b23757921dea8e2992cbb6bff5775f;hpb=575cc4fdfc069c934faa48019f2a833f9446d314 diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 5ef1752..97069fe 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -520,6 +520,30 @@ gint sort_by_cpu_group_by_threads_desc(gconstpointer p1, gconstpointer p2) return -1; } +void update_kprobes_display() +{ + int i, column; + + set_window_title(center, "Kprobes Top"); + /* + wattron(center, A_BOLD); + column = 1; + for (i = 0; i < 6; i++) { + if (toggle_virt < 0 && (i == 3 || i == 4)) { + continue; + } + if (cputopview[i].sort) { + wattron(center, A_UNDERLINE); + pref_current_sort = i; + } + mvwprintw(center, 1, column, cputopview[i].title); + wattroff(center, A_UNDERLINE); + column += 10; + } + wattroff(center, A_BOLD); + */ +} + void update_cputop_display() { int i; @@ -993,6 +1017,9 @@ void update_current_view() case tree: update_cputop_display(); break; + case kprobes: + update_kprobes_display(); + break; default: break; } @@ -1551,6 +1578,13 @@ void *handle_keyboard(void *p) selected_line = 0; update_current_view(); break; + case KEY_F(5): + if (pref_panel_visible) + toggle_pref_panel(); + current_view = kprobes; + selected_line = 0; + update_current_view(); + break; case KEY_F(10): case 'q': reset_ncurses();