mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
30d1c4d947
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:
|
||
---|---|---|
.. | ||
Build | ||
main.c | ||
test-cpumap.c | ||
test-evlist.c | ||
test-evsel.c | ||
test-threadmap.c | ||
tests.h |