perf top: Default to system wide using perf_target methods
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 May 2012 13:47:09 +0000 (10:47 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 8 May 2012 13:47:09 +0000 (10:47 -0300)
commit80eebd94d2090cf9e13ecdc305a0cf7996fa0070
treeaed1f5415ef00c4c9c04a3634a970171609d8122
parent77a6f014e9ae330c747c66bebfddf29abf9b89e9
perf top: Default to system wide using perf_target methods

Additionally we were not checking if a cpu list had been provided by the
user. Fix that.

Reported-by: David Ahern <dsahern@gmail.com>
Reported-by: Namhyung Kim <namhyung@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
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-ao3zrouylwmt7h9ikj0krubi@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-top.c