aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-03-06 11:07:30 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-03-06 11:14:53 -0500
commit7f0030b211579939461468f25b80c73e293c46e0 (patch)
treee0992d0a0c958526df603f9c18671a9612ff5b75 /tools/perf/builtin-report.c
parente248de331a452f8771eda6ed4bb30d92c82df28b (diff)
perf report tui: Improve multi event session support
When multiple events were used in 'perf record', allow the user to choose which one is wanted before showing the per event histograms. Annotations will be performed on the chosen event. Allow going back and forth from event to event quickly using just the arrow keys and enter. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> Cc: William Cohen <wcohen@redhat.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 1c399eae5f7b..e9b5d513333a 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -222,7 +222,8 @@ static size_t hists__fprintf_nr_sample_events(struct hists *self,
222 return ret + fprintf(fp, "\n#\n"); 222 return ret + fprintf(fp, "\n#\n");
223} 223}
224 224
225static int hists__tty_browse_tree(struct perf_evlist *evlist, const char *help) 225static int perf_evlist__tty_browse_hists(struct perf_evlist *evlist,
226 const char *help)
226{ 227{
227 struct perf_evsel *pos; 228 struct perf_evsel *pos;
228 229
@@ -304,9 +305,9 @@ static int __cmd_report(void)
304 } 305 }
305 306
306 if (use_browser > 0) 307 if (use_browser > 0)
307 hists__tui_browse_tree(session->evlist, help); 308 perf_evlist__tui_browse_hists(session->evlist, help);
308 else 309 else
309 hists__tty_browse_tree(session->evlist, help); 310 perf_evlist__tty_browse_hists(session->evlist, help);
310 311
311out_delete: 312out_delete:
312 /* 313 /*