linux/tools/perf/lib/include/internal
Andi Kleen a2408a7036 perf evlist: Maintain evlist->all_cpus
Maintain a cpumap in the evlist that is the union of all the cpus of the
events.

This needs a cpumap merge operation, which is added together with tests.

v2:
Add tests for cpu map merge
Fix handling of duplicates
Rename _update to _merge
Factor out sorting.
Fix handling of NULL maps in merge

v3:
Add comments and empty lines to _merge

Committer testing:

  # perf test "Merge cpu map"
  52: Merge cpu map                                         : Ok
  #

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lore.kernel.org/lkml/20191121001522.180827-5-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2019-11-29 12:20:45 -03:00
..
cpumap.h libperf: Move perf's cpu_map__idx() to perf_cpu_map__idx() 2019-08-22 11:18:45 -03:00
evlist.h perf evlist: Maintain evlist->all_cpus 2019-11-29 12:20:45 -03:00
evsel.h libperf: Do not export perf_evsel__init()/perf_evlist__init() 2019-10-19 15:35:01 -03:00
lib.h libperf: Use sys/types.h to get ssize_t, not unistd.h 2019-09-25 09:51:49 -03:00
mmap.h libperf: Introduce perf_evlist__for_each_mmap() 2019-10-19 15:35:01 -03:00
tests.h libperf: Keep count of failed tests 2019-10-19 15:35:01 -03:00
threadmap.h libperf: Add perf_thread_map__new_dummy() function 2019-07-29 18:34:44 -03:00
xyarray.h libperf: Fix alignment trap with xyarray contents in 'perf stat' 2019-08-22 17:16:57 -03:00