Commit 516e5368 authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo
Browse files

perf hists browser: Do not exit when 'f' is pressed in 'report' mode

The 'f' hotkey is only used when in 'top', dynamic mode, to
enable/disable events, currently not making sense in the 'report',
static mode, where we can't go from showing the histogram entries
created from a file to adding more events after recreating the
evlist created from the file, albeit possible, this is not
implemented right now.

Cc: Adrian Hunter <>
Cc: Borislav Petkov <>
Cc: David Ahern <>
Cc: Don Zickus <>
Cc: Frederic Weisbecker <>
Cc: Jiri Olsa <>
Cc: Namhyung Kim <>
Cc: Stephane Eranian <>

Signed-off-by: default avatarArnaldo Carvalho de Melo <>
parent fbb7997e
......@@ -1901,7 +1901,10 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events,
/* Fall thru */
case 'q':
case CTRL('c'):
goto out_free_stack;
case 'f':
if (is_report_browser(hbt))
goto out_free_stack;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment