X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcursesdisplay.c;h=d6befea5be042fe34f7d9647ed7b61c9eca94085;hb=ceb3a2216fed5f405aa77c358328f71f44ed3303;hp=eb859af1e33d5a618bff1804132b869ab8e91176;hpb=71bd7ce14826a0d7067c45657f33080e546cd5dc;p=lttngtop.git diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index eb859af..d6befea 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -422,6 +422,7 @@ void update_process_details() double maxcputime; struct processtop *tmp = find_process_tid(data, selected_tid, selected_comm); struct files *file_tmp; + struct file_history *history = tmp->files_history; int i, j = 0; set_window_title(center, "Process details"); @@ -462,6 +463,15 @@ void update_process_details() j++; } } +/* + print_key_title("----------- Files History -----------",8+j); + j = 0; + while (history != NULL) { + file_tmp = history->file; + wprintw(center, "fd = %d\n", file_tmp->fd);//, file_tmp->fd); + history = history->next; + } +*/ } void update_perf() @@ -488,9 +498,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) {