]> git.baikalelectronics.ru Git - kernel.git/commit
perf top: Improve interactive key handling
authorMike Galbraith <efault@gmx.de>
Tue, 4 Aug 2009 08:21:23 +0000 (10:21 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 9 Aug 2009 10:54:31 +0000 (12:54 +0200)
commit3c7eb6dae19d95dad8efcdd7e31e48af7ad7208d
tree6f6d88d3543ff3efcf1976b38b9ce90910cab22e
parent2c307c4873beadd4c462dc18bc38a4be01f34168
perf top: Improve interactive key handling

Pressing any key which is not currently mapped to
functionality, based on startup command line options, displays
currently mapped keys, and prompts for input.

Pressing any unmapped key at the prompt returns the user to
display mode with variables unchanged.  eg, pressing ? <SPACE>
<ESC> etc displays currently available keys, the value of the
variable associated with that key, and prompts.

Pressing same again aborts input.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c