diff options
author | 2023-04-17 16:28:28 -0300 | |
---|---|---|
committer | 2023-04-17 16:49:08 -0300 | |
commit | 491b13c46d4165eacc294b880f388e00ed85e5aa (patch) | |
tree | daa5ccb14331e6486e78ae08dcfa26ee8de4f038 /tools/lib/perf/include/internal/cpumap.h | |
parent | perf cpumap: Remove initializations done in perf_cpu_map__alloc() (diff) | |
download | linux-491b13c46d4165eacc294b880f388e00ed85e5aa.tar.gz linux-491b13c46d4165eacc294b880f388e00ed85e5aa.tar.bz2 linux-491b13c46d4165eacc294b880f388e00ed85e5aa.zip |
perf cpumap: Use perf_cpu_map__cpu(map, cpu) instead of accessing map->map[cpu] directly
So that we can validate the 'map' instance wrt refcount checking.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Riccardo Mancini <rickyman7@gmail.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
Link: https://lore.kernel.org/lkml/20230407230405.2931830-3-irogers@google.com
[ Extracted from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib/perf/include/internal/cpumap.h')
0 files changed, 0 insertions, 0 deletions