Skip to content

Cpumap improvements for large MAX_NR_CPUS

Ian Rogers linux-perf-users lkml 1 version Applied

Status from this message: Thanks, applied to perf-tools-next,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/8perf: Increase MAX_NR_CPUS to 4096tools/lib/perf/include/internal/cpumap.h tools/perf/perf.h tools/perf/util/bpf_skel/kwork_top.bpf.c+5 -36 replies
2/8perf cpumap: Reduce transitive dependencies on libperf MAX_NR_CPUStools/perf/builtin-annotate.c tools/perf/builtin-diff.c tools/perf/builtin-kwork.c +5 more+8 -00 replies
3/8libperf cpumap: Hide/reduce scope of MAX_NR_CPUStools/lib/perf/cpumap.c tools/lib/perf/include/internal/cpumap.h+2 -40 replies
4/8libperf cpumap: Be tolerant of newline at the end of a cpumasktools/lib/perf/cpumap.c+2 -20 replies
5/8perf pmu: Remove use of perf_cpu_map__readtools/perf/util/pmu.c+20 -100 replies
6/8libperf cpumap: Remove use of perf_cpu_map__readtools/lib/perf/cpumap.c+6 -50 replies
7/8libperf cpumap: Remove perf_cpu_map__readtools/lib/perf/Documentation/libperf.txt tools/lib/perf/cpumap.c tools/lib/perf/include/perf/cpumap.h +1 more+0 -600 replies
8/8libperf cpumap: Grow array of read CPUs in smaller incrementstools/lib/perf/cpumap.c+5 -40 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchIan RogersLeo Yan
SeriesR-b
1/8R-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v1 0/8] Cpumap improvements for large MAX_NR_CPUS

Prompted by Kyle Meyer's <[email protected]> report of the MAX_NR_CPUS value being too small, initiate some clean up of its use. Kyle's patch is at the head of the series. The additional patches hide MAX_NR_CPUS as exposed from cpumap.h, reduce its use by removing perf_cpu_map__read, and try to better size the temporary CPU array in perf_cpu_map__new.

Ian Rogers (7):
perf cpumap: Reduce transitive dependencies on libperf MAX_NR_CPUS libperf cpumap: Hide/reduce scope of MAX_NR_CPUS libperf cpumap: Be tolerant of newline at the end of a cpumask perf pmu: Remove use of perf_cpu_map__read
libperf cpumap: Remove use of perf_cpu_map__read libperf cpumap: Remove perf_cpu_map__read
libperf cpumap: Grow array of read CPUs in smaller increments

Kyle Meyer (1):
perf: Increase MAX_NR_CPUS to 4096

 tools/lib/perf/Documentation/libperf.txt |  1 -
 tools/lib/perf/cpumap.c                  | 82 +++++-------------------
 tools/lib/perf/include/internal/cpumap.h |  4 --
 tools/lib/perf/include/perf/cpumap.h     |  2 -
 tools/lib/perf/libperf.map               |  1 -
 tools/perf/builtin-annotate.c            |  1 +
 tools/perf/builtin-diff.c                |  1 +
 tools/perf/builtin-kwork.c               |  1 +
 tools/perf/builtin-mem.c                 |  1 +
 tools/perf/builtin-sched.c               |  1 +
 tools/perf/perf.h                        |  2 +-
 tools/perf/util/bpf_skel/kwork_top.bpf.c |  4 +-
 tools/perf/util/kwork.h                  |  1 +
 tools/perf/util/pmu.c                    | 30 ++++++---
 tools/perf/util/session.c                |  1 +
 tools/perf/util/svghelper.c              |  1 +
 16 files changed, 47 insertions(+), 87 deletions(-)
Signature · 1 line
2.47.0.338.g60cca15819-goog