perf top: Fix the 'E' hotkey, select among multiple events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Oct 2011 11:10:24 +0000 (09:10 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Oct 2011 11:10:24 +0000 (09:10 -0200)
commitb2b7e9eb2983e24b0296a93171f811d95f044fbc
tree0c9f31a880cfb4d24c11fa77d5a7a4b63a0f2ed7
parentb079d4e975b6338bcf8f8868eb2b3d3fd867b933
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 <efault@gmx.de>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-zcx055vnhagddvqlaqxvdhtb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c