perf tools: Rename cpu_map__all() to cpu_map__empty()
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Thu, 23 May 2013 00:42:38 +0000 (17:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jul 2013 16:45:44 +0000 (13:45 -0300)
commitec1e7e437ac47ecf7b4e07241036b1e1c3366012
tree447a172da806ecb9b02a6b3698bf8517c99a8789
parent67516844625f45f0ce148a01c27bf41f591872b2
perf tools: Rename cpu_map__all() to cpu_map__empty()

The CPU map is in an "empty" (or not-applicable) state when monitoring
specific threads.

cpu_map__all() returns true if the CPU map is in this empty state (i.e
for the 'empty_cpu_map' or if we created the map via
cpu_map__dummy_new().

The name, cpu_map__all(), is misleading, because even when monitoring
all CPUs, (eg: perf record -a), cpu_map__all() returns false.

Rename cpu_map__all() to cpu_map__empty().

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20130523012620.GA27733@us.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.h
tools/perf/util/evlist.c