]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit008953dc6a3164b7ec2be2684a8fad1e636d5648
treec7b78ca8a747ecd75ae048651fdacb66465f94c8
parent0bc8d20580af74c9a8a39c200e269261e5cded05
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