diff options
author | Namhyung Kim | 2013-12-26 06:37:59 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo | 2013-12-26 15:22:02 +0100 |
commit | 6dd601354f14b5cd7a0a4103811e52ccec22ac53 (patch) | |
tree | f12c46aa00fa66a3c16164348bc3704315e2c73c /tools/perf/ui/browsers/hists.c | |
parent | perf ui/tui: Split help message for perf top and report (diff) | |
download | kernel-qcow2-linux-6dd601354f14b5cd7a0a4103811e52ccec22ac53.tar.gz kernel-qcow2-linux-6dd601354f14b5cd7a0a4103811e52ccec22ac53.tar.xz kernel-qcow2-linux-6dd601354f14b5cd7a0a4103811e52ccec22ac53.zip |
perf ui/tui: Implement header window
Implement a simple, full-screen header window which shows session header
(metadata) information. Press 'i' key to display the header window.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1388036284-32342-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browsers/hists.c')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index d43ec79ea4e3..0d9dd99507ee 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c @@ -1417,6 +1417,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, /* help messages are sorted by lexical order of the hotkey */ const char report_help[] = HIST_BROWSER_HELP_COMMON + "i Show header information\n" "P Print histograms to perf.hist.N\n" "r Run available scripts\n" "s Switch to another data file in PWD\n" @@ -1513,6 +1514,11 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, if (is_report_browser(hbt)) goto do_data_switch; continue; + case 'i': + /* env->arch is NULL for live-mode (i.e. perf top) */ + if (env->arch) + tui__header_window(env); + continue; case K_F1: case 'h': case '?': |