perf tools: Allow handling a NULL cpu_map as meaning "all cpus"
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Sep 2012 15:41:14 +0000 (12:41 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 26 Sep 2012 15:41:14 +0000 (12:41 -0300)
commita14bb7a6fd4a3d563ca971daf462ba4dc294a7a6
tree5ad6003f5cf57019c55b44023e10401e2d01b78e
parent0b80f8b32f31f80e001fb6355fd86769555c4a3c
perf tools: Allow handling a NULL cpu_map as meaning "all cpus"

Or one with cpu_map->map[0] == -1.

Reducing the boilerplate in setting up an evlist by nor requiring a
cpu_map to be created at all.

Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.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-rnaqn3dtnsfo1wlbbf3fhx00@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.h
tools/perf/util/evlist.c