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.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index f2ecd498c72d..c9ff3950cd4b 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -582,6 +582,11 @@ static void *display_thread_tui(void *arg)
582 struct perf_evsel *pos; 582 struct perf_evsel *pos;
583 struct perf_top *top = arg; 583 struct perf_top *top = arg;
584 const char *help = "For a higher level overview, try: perf top --sort comm,dso"; 584 const char *help = "For a higher level overview, try: perf top --sort comm,dso";
585 struct hist_browser_timer hbt = {
586 .timer = perf_top__sort_new_samples,
587 .arg = top,
588 .refresh = top->delay_secs,
589 };
585 590
586 perf_top__sort_new_samples(top); 591 perf_top__sort_new_samples(top);
587 592
@@ -593,9 +598,8 @@ static void *display_thread_tui(void *arg)
593 list_for_each_entry(pos, &top->evlist->entries, node) 598 list_for_each_entry(pos, &top->evlist->entries, node)
594 pos->hists.uid_filter_str = top->target.uid_str; 599 pos->hists.uid_filter_str = top->target.uid_str;
595 600
596 perf_evlist__tui_browse_hists(top->evlist, help, 601 perf_evlist__tui_browse_hists(top->evlist, help, &hbt,
597 perf_top__sort_new_samples, 602 &top->session->header.env);
598 top, top->delay_secs);
599 603
600 exit_browser(0); 604 exit_browser(0);
601 exit(0); 605 exit(0);