perf stat: Don't require a workload when using system wide or CPU options
authorDavid Ahern <dsahern@gmail.com>
Mon, 30 Sep 2013 13:37:37 +0000 (07:37 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2013 15:17:44 +0000 (12:17 -0300)
commitac3063bd4725689f39d7a23fdfca2e034c73dcac
tree99c048c62b2df63038afff75adbbe604ec409d96
parent62d3b617c02785a4f1fbde8d93ca77a0b33d8454
perf stat: Don't require a workload when using system wide or CPU options

The "perf stat" command can do system wide counters or one or more cpus.
For these options do not require a workload to be specified.

v2: use perf_target__none per Namhyung's comment.

Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/52497F3C.9070908@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-stat.c