diff options
author | Jiri Olsa <[email protected]> | 2022-02-15 16:37:13 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2022-02-16 13:49:25 -0300 |
commit | 30d1c4d947983f3cfbff9cbb7a4d69b05b699678 (patch) | |
tree | d631f1a989d70a37f8a4c116e2f0ebb4ed667d65 /net/unix/sysctl_net_unix.c | |
parent | 9de0736973dd7f0f710d0f5e0a3dfd9fa9ffeb3f (diff) |
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: 6d18804b963b78dc ("perf cpumap: Give CPUs their own type")
Reported-by: Tzvetomir Stoyanov (VMware) <[email protected]>
Signed-off-by: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions