aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorIan Rogers <[email protected]>2024-12-06 04:40:35 +0000
committerArnaldo Carvalho de Melo <[email protected]>2024-12-09 20:52:41 +0000
commitbfb946753550d8d5f5bd5a156e4413c3df359faa (patch)
treec0912a117548b0813cbb6e35df0de06d18254348 /tools/perf/util/scripting-engines/trace-event-python.c
parentlibperf cpumap: Remove perf_cpu_map__read() (diff)
downloadkernel-bfb946753550d8d5f5bd5a156e4413c3df359faa.tar.gz
kernel-bfb946753550d8d5f5bd5a156e4413c3df359faa.zip
libperf cpumap: Grow array of read CPUs in smaller increments
Instead of growing the array by 2048, grow by the larger of the current range or 16. As ranges are typical for things like the online CPUs this will mean a single allocation happens. While uncore CPU maps will grow 16 at a time which is a value that is generous except say on large servers. Reviewed-by: Leo Yan <[email protected]> Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Ben Gainey <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Kan Liang <[email protected]> Cc: Kyle Meyer <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions