perf top: Stop using globals for tool state
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Nov 2011 11:37:05 +0000 (09:37 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Nov 2011 12:39:44 +0000 (10:39 -0200)
commit1758af10cf13d156014035b29ff50eab3773d849
tree782ee9c4ee5589081b52d3894f4728f4e692cf86
parent45694aa7702bc44d538a3bcb51bb2bb96cf190c0
perf top: Stop using globals for tool state

Use its 'perf_tool' base class instead.

Cc: David Ahern <dsahern@gmail.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>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-i33q40wwvk2zna8fd36ex6sm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c
tools/perf/util/top.h