perf top: Use all the lines in the screen
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 16 Nov 2009 21:30:27 +0000 (19:30 -0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Nov 2009 06:19:53 +0000 (07:19 +0100)
commit3b6ed98895b0fccd8c387f3fc44016fb922c0658
tree63b6af491b245af1b8051959cb42d45c5bc95ada
parentdc79c0fc08a94b857aed446bfb47cdfde529400c
perf top: Use all the lines in the screen

By querying the current number of rows, if the user specifies
the number of entries, use that instead. If the user uses the
'e' command to change the number of lines 0 will mean do it
automatically, any other number disables the auto resizing.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.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>
LKML-Reference: <1258407027-384-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-top.c