]> git.baikalelectronics.ru Git - kernel.git/commit
perf hists browser: Fix TAB/UNTAB use with multiple events
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 6 Oct 2011 13:46:45 +0000 (10:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Oct 2011 20:01:04 +0000 (17:01 -0300)
commit227af7304188c2f5b67e2b4e019e71d15997ad6d
tree4d66882be91241d541dd97f7ee5080983b141230
parent9049fd9bb0ea4f0d67f7a615643a55af100789b0
perf hists browser: Fix TAB/UNTAB use with multiple events

When requesting multiple events, say:

  # perf top -e instructions -e cycles -e cache-misses

The first screen lets the user chose what to see first, then to switch
one can either use the left key to get back to the event menu or simply
use TAB to go the next and shift+TAB to go the prev.

When using TAB/UNTAB the call to perf_evlist__set_selected(event) was
missing, fix it.

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-3xqqh3fwmt914gg43frey14y@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/hists.c