Skip to contentSkip to conversation

perf hists browser: React to unassigned hotkey pressing

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Jun 19, 2015 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  3e323dc0a80c3921f30d03ca300426f70dc5a327
Gitweb:     http://git.kernel.org/tip/3e323dc0a80c3921f30d03ca300426f70dc5a327
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Fri, 19 Jun 2015 17:49:29 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Fri, 19 Jun 2015 18:14:05 -0300

perf hists browser: React to unassigned hotkey pressing

When that happens we were just ignoring the key press, now this message is presented in the bottom line (the help line):

"Press '?' for help on key bindings"

Cc Adrian Hunter <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Stephane Eranian <[email protected]>
---
 tools/perf/ui/browsers/hists.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
tools/perf/ui/browsers/hists.c +4 -3
index e2b500b..c42adb6 100644
@@ -1902,10 +1902,11 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
 		case CTRL('c'):
 			goto out_free_stack;
 		case 'f':
-			if (is_report_browser(hbt))
-				continue;
-			goto out_free_stack;
+			if (!is_report_browser(hbt))
+				goto out_free_stack;
+			/* Fall thru */
 		default:
+			helpline = "Press '?' for help on key bindings";
 			continue;
 		}
 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/