]> git.baikalelectronics.ru Git - kernel.git/commit
perf cpu_map: Add cpu_map__empty_new function
authorJiri Olsa <jolsa@kernel.org>
Sun, 25 Oct 2015 14:51:17 +0000 (15:51 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 27 Oct 2015 18:05:36 +0000 (15:05 -0300)
commit477b5d67faa8f40010342985dbd2fc02e7e8903c
tree2a0a69388800dc7ea334f0922667b3f31d12bdb5
parentc803b80d0d8d757e932383ca75f45daf21192185
perf cpu_map: Add cpu_map__empty_new function

Adding cpu_map__empty_new interface to create empty cpumap with given
size. The cpumap entries are initialized with -1.

It'll be used for caching cpu_map in following patches.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Kan Liang <kan.liang@intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1445784728-21732-2-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cpumap.c
tools/perf/util/cpumap.h