Skip to content

perf build: Linter parallelism and clean/install dependency fixes

Ian Rogers linux-perf-users lkml 2 versions Applied

Status from this message: Thanks, applied to perf-tools-next, for v7.4.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyApplied
  2. v14 patches 0 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4perf test: Update attr.py to use argparsetools/perf/tests/shell/lib/attr.py+14 -230 replies
2/4perf build: Run shellcheck, mypy, and remaining pylint checks in paralleltools/perf/Build tools/perf/Makefile.perf tools/perf/pmu-events/Build +2 more+99 -470 replies
3/4perf build: Clear GTK4 instead of setting unused NO_GTK4 when gtk4 is missingtools/perf/Makefile.config+1 -10 replies
4/4perf build: Fix clean and install target dependenciestools/perf/Documentation/build-docdep.perl tools/perf/Makefile tools/perf/Makefile.perf+31 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] perf build: Linter parallelism and clean/install dependency fixes

This series includes a small Python test cleanup alongside build system improvements for linter parallelism and clean/install target dependencies:

1. Update tools/perf/tests/shell/lib/attr.py to use argparse instead of the deprecated optparse module, avoiding a pylint deprecated-module warning.

2. Building on Leo Yan's recent change to run pylint checks on standalone scripts and tests in parallel with linking perf, move the remaining shellcheck, mypy, and pylint rules (in tools/perf/Build, tools/perf/tests/Build, tools/perf/util/Build, and tools/perf/pmu-events/Build) into top-level phony targets in Makefile.perf so they no longer serialize archive creation, jevents generation, or final linking, nor wait on $(LANG_BINDINGS).

3. Clear GTK4 via 'override GTK4 :=' in Makefile.config when the gtk4 feature check fails instead of setting the unused 'NO_GTK4 := 1' variable left over from commit 4751bddd3f98 ("perf tools: Make GTK2 support opt-in").

4. Fix missing dependencies and target ordering for clean and install targets across Makefile, Makefile.perf, and Documentation/build-docdep.perl.

v2: In patch 4, exclude 'install-build-deps' from 'install_goals' in
tools/perf/Makefile so it is not ordered after 'all', and explicitly order non-'clean' targets after 'install-build-deps' when present.

Ian Rogers (4):
perf test: Update attr.py to use argparse
perf build: Run shellcheck, mypy, and remaining pylint checks in
parallel
perf build: Clear GTK4 instead of setting unused NO_GTK4 when gtk4 is
missing
perf build: Fix clean and install target dependencies

 tools/perf/Build                           |  8 ++-
 tools/perf/Documentation/build-docdep.perl |  2 +-
 tools/perf/Makefile                        | 16 ++++-
 tools/perf/Makefile.config                 |  2 +-
 tools/perf/Makefile.perf                   | 75 ++++++++++++++++++----
 tools/perf/pmu-events/Build                | 66 ++++++++++---------
 tools/perf/tests/Build                     |  8 ++-
 tools/perf/tests/shell/lib/attr.py         | 37 ++++-------
 tools/perf/util/Build                      |  8 ++-
 9 files changed, 145 insertions(+), 77 deletions(-)
Signature · 1 line
2.56.0.rc1.315.gc6ed9934b7-goog