linux/tools/lib/perf/include/internal
Ian Rogers ff8548172f perf evlist: Special map propagation for tool events that read on 1 CPU
Tool events like duration_time don't need a perf_cpu_map that contains
all online CPUs.

Having such a perf_cpu_map causes overheads when iterating between
events for CPU affinity.

During parsing mark events that just read on a single CPU map index as
such, then during map propagation set up the evsel's CPUs and thereby
the evlists accordingly.

The setting cannot be done early in parsing as user CPUs are only fully
known when evlist__create_maps is called.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Dapeng Mi <dapeng1.mi@linux.intel.com>
Cc: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Falcon <thomas.falcon@intel.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2026-02-10 09:33:28 -03:00
..
cpumap.h libperf cpumap: Hide/reduce scope of MAX_NR_CPUS 2024-12-09 17:52:41 -03:00
evlist.h libperf evlist: Avoid out-of-bounds access 2024-02-29 13:57:02 -08:00
evsel.h perf evlist: Special map propagation for tool events that read on 1 CPU 2026-02-10 09:33:28 -03:00
lib.h libperf: Add preadn() 2022-05-23 10:11:12 -03:00
mmap.h libperf: Lazily allocate/size mmap event copy 2023-11-30 19:25:19 -03:00
rc_check.h libperf rc_check: Add RC_CHK_EQUAL 2023-10-25 13:37:22 -07:00
tests.h libperf tests: Fix verbose printing 2021-08-24 15:05:35 -03:00
threadmap.h libperf: Move to tools/lib/perf 2020-01-06 11:46:09 -03:00
xyarray.h libperf xyarray: Add bounds checks to xyarray__entry() 2021-04-20 08:11:33 -03:00