aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-06-19 15:56:04 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-06-19 15:56:04 -0400
commitfbb7997e308064a0ea26fb5435ee5fa69a588dac (patch)
tree58c4b90b4c8e2cdcace52131d586a5e7d67ff9dd /tools
parent276af92f107fc35ede78c7cdea323aaec364002c (diff)
perf top: Replace CTRL+z with 'f' as hotkey for enable/disable events
I.e. 'freeze'/'unfreeze', this is because CTRL+z has a well known action, i.e. suspend the app, perf needs to follow that convention, that will be done on a separate patch, tho. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Borislav Petkov <bp@suse.de> Cc: David Ahern <dsahern@gmail.com> Cc: Don Zickus <dzickus@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-oedcl6ovohara4koig14ayip@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-top.c2
-rw-r--r--tools/perf/ui/browsers/hists.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 72d8a7ae5986..ccf569ab08aa 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -591,7 +591,7 @@ static void *display_thread_tui(void *arg)
591 top->min_percent, 591 top->min_percent,
592 &top->session->header.env); 592 &top->session->header.env);
593 593
594 if (key != CTRL('z')) 594 if (key != 'f')
595 break; 595 break;
596 596
597 perf_evlist__toggle_enable(top->evlist); 597 perf_evlist__toggle_enable(top->evlist);
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 8f7c4d49d327..764f7cabd6f2 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -1736,7 +1736,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
1736 "t Zoom into current Thread\n" 1736 "t Zoom into current Thread\n"
1737 "V Verbose (DSO names in callchains, etc)\n" 1737 "V Verbose (DSO names in callchains, etc)\n"
1738 "z Toggle zeroing of samples\n" 1738 "z Toggle zeroing of samples\n"
1739 "CTRL+z Enable/Disable events\n" 1739 "f Enable/Disable events\n"
1740 "/ Filter symbol by name"; 1740 "/ Filter symbol by name";
1741 1741
1742 if (browser == NULL) 1742 if (browser == NULL)
@@ -1901,7 +1901,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
1901 /* Fall thru */ 1901 /* Fall thru */
1902 case 'q': 1902 case 'q':
1903 case CTRL('c'): 1903 case CTRL('c'):
1904 case CTRL('z'): 1904 case 'f':
1905 goto out_free_stack; 1905 goto out_free_stack;
1906 default: 1906 default:
1907 continue; 1907 continue;