]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate tui: Fix exit and RIGHT keys handling
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Aug 2010 13:43:54 +0000 (10:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Aug 2010 13:43:54 +0000 (10:43 -0300)
commit1371b0d30cbd6bf51047df1d3bea79288d587f39
treef89db39cefbde906302277d4ddede765ff3828ac
parentd1a5ef25f4f4034bef7991998f8f95568eb6224a
perf annotate tui: Fix exit and RIGHT keys handling

As part of ongoing effort to reduce the coupling with libnewt, browsers
are being changed to return the exit key.

The annotate browser is not returning it as expected by builtin-annotate
when annotating multiple symbols (when 'perf annotate' is called without
specifying a symbol name).

Fix it by returning the exit key and also adding the RIGHT key as a exit
key so that going to the next symbol in the TUI can work again.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/annotate.c