linux/tools/lib/perf/tests
Jiri Olsa 30d1c4d947 libperf: Fix perf_cpu_map__for_each_cpu macro
Tzvetomir Stoyanov reported an issue with using macro
perf_cpu_map__for_each_cpu using private perf_cpu object.

The issue is caused by recent change that wrapped cpu in struct perf_cpu
to distinguish it from cpu indexes. We need to make struct perf_cpu
public.

Add a simple test for using the perf_cpu_map__for_each_cpu macro.

Fixes: 6d18804b96 ("perf cpumap: Give CPUs their own type")
Reported-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20220215153713.31395-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-02-16 13:49:25 -03:00
..
Build libperf: Change tests to single static and shared binaries 2021-07-07 11:41:58 -03:00
main.c libperf: Change tests to single static and shared binaries 2021-07-07 11:41:58 -03:00
test-cpumap.c libperf: Fix perf_cpu_map__for_each_cpu macro 2022-02-16 13:49:25 -03:00
test-evlist.c libperf: Fix 32-bit build for tests uint64_t printf 2022-02-16 13:49:24 -03:00
test-evsel.c libperf: Add arm64 support to perf_mmap__read_self() 2022-02-06 09:14:27 -03:00
test-threadmap.c libperf: Change tests to single static and shared binaries 2021-07-07 11:41:58 -03:00
tests.h libperf: Change tests to single static and shared binaries 2021-07-07 11:41:58 -03:00