diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-17 09:10:24 -0200 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2011-10-17 09:10:24 -0200 |
| commit | b2b7e9eb2983e24b0296a93171f811d95f044fbc (patch) | |
| tree | 0c9f31a880cfb4d24c11fa77d5a7a4b63a0f2ed7 | |
| parent | b079d4e975b6338bcf8f8868eb2b3d3fd867b933 (diff) | |
perf top: Fix the 'E' hotkey, select among multiple events
We were not recognizing 'E' as a hotkey due to a bug introduced when
switching to the new, hist_entry based top. Fix it by returning that 'E'
is mapped if evlist->nr_entries > 1.
Reported-by: Mike Galbraith <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
| -rw-r--r-- | tools/perf/builtin-top.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index bf368f1663d1..7a871714d44e 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -438,6 +438,7 @@ static int key_mapped(int c) case 'S': return 1; case 'E': + return top.evlist->nr_entries > 1 ? 1 : 0; default: break; } |