]> git.baikalelectronics.ru Git - kernel.git/commit
perf top: Fix number of samples displayed
authorStephane Eranian <eranian@google.com>
Mon, 30 Jan 2012 10:50:37 +0000 (11:50 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Jan 2012 00:29:49 +0000 (22:29 -0200)
commit73b8f317e702bbb06fbec4e8e7cb9ea2b2d0c9b1
treeccb91fc9a5c29a3f544982cf782fc03db2c54cbb
parentc1a8039a9a4517b5e6f2ade1d938a0dac335f487
perf top: Fix number of samples displayed

In recent versions of perf top, pressing the 'e' key to change the
number of displayed samples had no effect.

The number of samples was still dictated by the size of the terminal
(stdio mode). That was quite annoying because typically only the first
dozen samples really matter.

This patch fixes this.

Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20120130105037.GA5160@quad
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c