]> 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>
Mon, 30 Jan 2012 20:30:10 +0000 (18:30 -0200)
commit3e67160b80a0d7eebde27b4838caf63519bc41da
treec7b78ca8a747ecd75ae048651fdacb66465f94c8
parent73fd1ae419abd6d10da552fbf65510e226017087
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