aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-top.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r--tools/perf/builtin-top.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index ce2e50c891c7..7f92ab7696f7 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -464,7 +464,7 @@ static void rb_insert_active_sym(struct rb_root *tree, struct sym_entry *se)
464 rb_insert_color(&se->rb_node, tree); 464 rb_insert_color(&se->rb_node, tree);
465} 465}
466 466
467static void print_sym_table(void) 467static void print_sym_table(struct perf_session *session)
468{ 468{
469 int printed = 0, j; 469 int printed = 0, j;
470 struct perf_evsel *counter; 470 struct perf_evsel *counter;
@@ -513,7 +513,6 @@ static void print_sym_table(void)
513 513
514 puts(CONSOLE_CLEAR); 514 puts(CONSOLE_CLEAR);
515 515
516 printf("%-*.*s\n", win_width, win_width, graph_dotted_line);
517 if (!perf_guest) { 516 if (!perf_guest) {
518 printf(" PerfTop:%8.0f irqs/sec kernel:%4.1f%%" 517 printf(" PerfTop:%8.0f irqs/sec kernel:%4.1f%%"
519 " exact: %4.1f%% [", 518 " exact: %4.1f%% [",
@@ -578,6 +577,12 @@ static void print_sym_table(void)
578 577
579 printf("%-*.*s\n", win_width, win_width, graph_dotted_line); 578 printf("%-*.*s\n", win_width, win_width, graph_dotted_line);
580 579
580 if (session->hists.stats.total_lost != 0) {
581 color_fprintf(stdout, PERF_COLOR_RED, "WARNING:");
582 printf(" LOST %" PRIu64 " events, Check IO/CPU overload\n",
583 session->hists.stats.total_lost);
584 }
585
581 if (sym_filter_entry) { 586 if (sym_filter_entry) {
582 show_details(sym_filter_entry); 587 show_details(sym_filter_entry);
583 return; 588 return;
@@ -919,7 +924,7 @@ repeat:
919 getc(stdin); 924 getc(stdin);
920 925
921 do { 926 do {
922 print_sym_table(); 927 print_sym_table(session);
923 } while (!poll(&stdin_poll, 1, delay_msecs) == 1); 928 } while (!poll(&stdin_poll, 1, delay_msecs) == 1);
924 929
925 c = getc(stdin); 930 c = getc(stdin);
@@ -1176,7 +1181,7 @@ try_again:
1176 } 1181 }
1177 } 1182 }
1178 1183
1179 if (perf_evlist__mmap(evlist, cpus, threads, mmap_pages, true) < 0) 1184 if (perf_evlist__mmap(evlist, cpus, threads, mmap_pages, false) < 0)
1180 die("failed to mmap with %d (%s)\n", errno, strerror(errno)); 1185 die("failed to mmap with %d (%s)\n", errno, strerror(errno));
1181} 1186}
1182 1187