All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Rogers <irogers@google.com>
To: Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	 Arnaldo Carvalho de Melo <acme@kernel.org>,
	Namhyung Kim <namhyung@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>,
	Adrian Hunter <adrian.hunter@intel.com>,
	 James Clark <james.clark@linaro.org>,
	linux-perf-users@vger.kernel.org,  linux-kernel@vger.kernel.org,
	Ian Rogers <irogers@google.com>
Subject: [PATCH 3/8] perf build: Avoid copying pmu-events JSON files into OUTPUT
Date: Sat,  5 Dec 2026 18:11:42 -0800	[thread overview]
Message-ID: <20261206021147.3036701-4-irogers@google.com> (raw)
In-Reply-To: <20261206021147.3036701-1-irogers@google.com>

Out-of-tree perf builds previously copied all ~1,013 checked-in JSON
and CSV files from pmu-events/arch/ into $(OUTPUT)pmu-events/arch/ via
dynamically generated Make rules solely so jevents.py could read them
alongside the 137 generated JSON files (legacy-cache.json and
extra-metric{s,groups}.json). That also required scanning $(OUT_DIR)
and running a prune_orphans rule (which needed multiple ARG_MAX fixes),
while in-tree builds wrote generated JSONs directly into
pmu-events/arch/ and forgot to remove legacy-cache.json on clean.

Write generated JSON files into GEN_DIR := $(OUTPUT)pmu-events/gen for
both in-tree and out-of-tree builds and pass them to jevents.py via
--gen-dir and --gen-manifest (or --gen-file for
test-empty-pmu-events.c):
- Remove OUT_DIR, OUT_JSON, OUT_DIRS, COPY_RULE, CUR_OUT_JSON,
  ORPHAN_FILES, and prune_orphans from tools/perf/pmu-events/Build.
- Track input lists in write-if-changed manifests (jevents-gen-files,
  jevents-src-files, jevents-empty-src-files) using GNU Make's built-in
  $(file ...) (guarded for dry-run make -n and avoiding shell ARG_MAX)
  so deleting or checking out older source JSONs triggers rebuilds for
  both in-tree and out-of-tree builds, while stale files in GEN_DIR are
  never read by jevents.py.
- Derive ZENS, INTELS, and ARMS from mapfile.csv instead of ls globs so
  stray files or backup directories cannot be treated as CPU models, and
  filter backup/hidden/generated JSONs in FIND_SRC_EXPR while preserving
  valid symlinks (e.g. riscv/sifive/).
- Narrow TEST_EMPTY_PMU_EVENTS_C prerequisites to common/, test/, and
  legacy-cache.json instead of all arch JSONs and metric generators.
- Simplify pmu-events-clean in tools/perf/Makefile.perf and update
  tools/perf/.gitignore for pmu-events/gen/ and the manifest files.

For an out-of-tree libpmu-events.a build with default JEVENTS_ARCH=all,
COPY lines drop from 1,013 to 0, MKDIR lines from 120 to 75, and total
build log lines from 1,330 to 272 (-79.5%), while generating
byte-for-byte identical pmu-events.c and pmu-events-string.c outputs.

Signed-off-by: Ian Rogers <irogers@google.com>
---
 tools/perf/.gitignore       |   7 +-
 tools/perf/Makefile.perf    |  18 ++--
 tools/perf/pmu-events/Build | 178 +++++++++++++++++-------------------
 3 files changed, 95 insertions(+), 108 deletions(-)

diff --git a/tools/perf/.gitignore b/tools/perf/.gitignore
index 8aa4ee7209c6..73edc24dbe3f 100644
--- a/tools/perf/.gitignore
+++ b/tools/perf/.gitignore
@@ -37,17 +37,18 @@ config.mak.autogen
 util/intel-pt-decoder/inat-tables.c
 arch/*/include/generated/
 trace/beauty/generated/
-pmu-events/arch/common/common/legacy-cache.json
+pmu-events/gen/
 pmu-events/pmu-events.c
 pmu-events/pmu-events-string.c
 pmu-events/jevents-flags
+pmu-events/jevents-gen-files
+pmu-events/jevents-src-files
+pmu-events/jevents-empty-src-files
 pmu-events/jevents
 pmu-events/metric_test.log
 pmu-events/empty-pmu-events.log
 pmu-events/test-empty-pmu-events.c
 *.shellcheck_log
-pmu-events/arch/**/extra-metrics.json
-pmu-events/arch/**/extra-metricgroups.json
 tests/shell/*.shellcheck_log
 tests/shell/coresight/*.shellcheck_log
 tests/shell/lib/*.shellcheck_log
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 4fc1932b5eeb..a4f9e88f40df 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -1050,22 +1050,18 @@ bpf-skel-clean:
 	$(Q)$(MAKE) -f bpf_skel.mak clean
 
 pmu-events-clean:
-ifeq ($(OUTPUT),)
-	$(call QUIET_CLEAN, pmu-events) $(RM) \
-		pmu-events/pmu-events*.c \
-		pmu-events/jevents-flags \
-		pmu-events/metric_test.log \
-		pmu-events/test-empty-pmu-events.c \
-		pmu-events/empty-pmu-events.log
-	$(Q)find pmu-events/arch -name 'extra-metrics.json' -delete -o \
-		-name 'extra-metricgroups.json' -delete
-else # When an OUTPUT directory is present, clean up the copied pmu-events/arch directory.
-	$(call QUIET_CLEAN, pmu-events) $(RM) -r $(OUTPUT)pmu-events/arch \
+	$(call QUIET_CLEAN, pmu-events) $(RM) -r \
+		$(OUTPUT)pmu-events/gen \
 		$(OUTPUT)pmu-events/pmu-events*.c \
 		$(OUTPUT)pmu-events/jevents-flags \
+		$(OUTPUT)pmu-events/jevents-gen-files \
+		$(OUTPUT)pmu-events/jevents-src-files \
+		$(OUTPUT)pmu-events/jevents-empty-src-files \
 		$(OUTPUT)pmu-events/metric_test.log \
 		$(OUTPUT)pmu-events/test-empty-pmu-events.c \
 		$(OUTPUT)pmu-events/empty-pmu-events.log
+ifneq ($(OUTPUT),)
+	$(Q)$(RM) -r $(OUTPUT)pmu-events/arch
 endif
 
 clean:: $(LIBAPI)-clean $(LIBBPF)-clean $(LIBSUBCMD)-clean $(LIBSYMBOL)-clean $(LIBPERF)-clean \
diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build
index 32fc1378ef3a..22e4db88272f 100644
--- a/tools/perf/pmu-events/Build
+++ b/tools/perf/pmu-events/Build
@@ -65,18 +65,30 @@ endif
 JEVENTS_COMPRESS_ARG := $(subst $(space),$(comma),$(strip $(JEVENTS_COMPRESS_ACTIVE)))
 JEVENTS_FLAGS_STR := $(NO_JEVENTS):$(JEVENTS_ARCH):$(JEVENTS_MODEL):$(JEVENTS_COMPRESS_ARG)
 
-# The input json/csv files
+# The checked-in input json/csv files and the separate directory for generated
+# json files. Generated files are always written under GEN_DIR (even for
+# in-tree builds) so checked-in files never need copying into OUTPUT and the
+# source tree stays clean.
 SRC_DIR		:= pmu-events/arch
+GEN_DIR		:= $(OUTPUT)pmu-events/gen
+FIND_SRC_EXPR	:= \( -type f -o -type l \) -not -name '.*' -not -path '*/.*' \
+		   -not -path '$(SRC_DIR)/*.*/*' -not -name '*.*.json' \
+		   -not -name '*_BACKUP_*.json' -not -name '*_BASE_*.json' \
+		   -not -name '*_LOCAL_*.json' -not -name '*_REMOTE_*.json' \
+		   -not -name 'legacy-cache.json' -not -name 'extra-metrics.json' \
+		   -not -name 'extra-metricgroups.json' \
+		   \( -name '*.json' -o -name '*.csv' \)
+SRC_COMMON_TEST	:= $(shell find $(SRC_DIR)/common $(SRC_DIR)/test $(FIND_SRC_EXPR))
 ifeq ($(JEVENTS_ARCH),all)
-SRC_JSON	:= $(shell find $(SRC_DIR) -name '*.json' -o -name '*.csv')
+SRC_JSON	:= $(shell find $(SRC_DIR) $(FIND_SRC_EXPR))
 else
-SRC_JSON	:= $(shell find $(SRC_DIR)/common $(SRC_DIR)/test $(SRC_DIR)/$(JEVENTS_ARCH) -name '*.json' -o -name '*.csv')
+SRC_JSON	:= $(SRC_COMMON_TEST) $(shell find $(SRC_DIR)/$(JEVENTS_ARCH) $(FIND_SRC_EXPR))
 endif
 
 # Python to build the generic legacy cache events
 LEGACY_CACHE_PY	=  pmu-events/make_legacy_cache.py
-LEGACY_CACHE_JSON = $(OUTPUT)pmu-events/arch/common/common/legacy-cache.json
-GEN_JSON = $(LEGACY_CACHE_JSON)
+LEGACY_CACHE_JSON = $(GEN_DIR)/common/common/legacy-cache.json
+GEN_JSON	:= $(LEGACY_CACHE_JSON)
 
 $(LEGACY_CACHE_JSON): $(LEGACY_CACHE_PY)
 	$(call rule_mkdir)
@@ -87,103 +99,95 @@ GEN_METRIC_DEPS := pmu-events/metric.py pmu-events/common_metrics.py
 # Functions to extract the model from an extra-metrics.json or extra-metricgroups.json path.
 model_name = $(notdir $(patsubst %/,%,$(dir $(1))))
 vendor_name = $(notdir $(patsubst %/,%,$(dir $(patsubst %/,%,$(dir $(1))))))
+JEVENTS_AWK := $(or $(AWK),awk)
 
 ifeq ($(JEVENTS_ARCH),$(filter $(JEVENTS_ARCH),x86 all))
+X86_MODELS := $(shell $(JEVENTS_AWK) -F, 'NR > 1 && $$0 !~ /^#/ && NF >= 3 { print $$3 }' $(SRC_DIR)/x86/mapfile.csv | sort -u)
+
 # Generate AMD Json
-ZENS := $(shell ls -d pmu-events/arch/x86/amdzen*)
-ZEN_METRICS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metrics.json)
-ZEN_METRICGROUPS = $(foreach x,$(ZENS),$(OUTPUT)$(x)/extra-metricgroups.json)
+ZENS := $(filter amdzen%,$(X86_MODELS))
+ZEN_METRICS := $(foreach x,$(ZENS),$(GEN_DIR)/x86/$(x)/extra-metrics.json)
+ZEN_METRICGROUPS := $(foreach x,$(ZENS),$(GEN_DIR)/x86/$(x)/extra-metricgroups.json)
 GEN_JSON += $(ZEN_METRICS) $(ZEN_METRICGROUPS)
 
 $(ZEN_METRICS): pmu-events/amd_metrics.py $(GEN_METRIC_DEPS)
 	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) pmu-events/arch > $@
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) $(SRC_DIR) > $@
 
 $(ZEN_METRICGROUPS): pmu-events/amd_metrics.py $(GEN_METRIC_DEPS)
 	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) pmu-events/arch > $@
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) $(SRC_DIR) > $@
+
+# Generate Intel Json
+INTELS := $(filter-out amdzen%,$(X86_MODELS))
+INTEL_METRICS := $(foreach x,$(INTELS),$(GEN_DIR)/x86/$(x)/extra-metrics.json)
+INTEL_METRICGROUPS := $(foreach x,$(INTELS),$(GEN_DIR)/x86/$(x)/extra-metricgroups.json)
+GEN_JSON += $(INTEL_METRICS) $(INTEL_METRICGROUPS)
+
+$(INTEL_METRICS): pmu-events/intel_metrics.py $(GEN_METRIC_DEPS)
+	$(call rule_mkdir)
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) $(SRC_DIR) > $@
 
+$(INTEL_METRICGROUPS): pmu-events/intel_metrics.py $(GEN_METRIC_DEPS)
+	$(call rule_mkdir)
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) $(SRC_DIR) > $@
 endif
 
 ifeq ($(JEVENTS_ARCH),$(filter $(JEVENTS_ARCH),arm64 all))
 # Generate ARM Json
-ARMS := $(shell ls -d pmu-events/arch/arm64/arm/*|grep -v cmn)
-ARM_METRICS = $(foreach x,$(ARMS),$(OUTPUT)$(x)/extra-metrics.json)
-ARM_METRICGROUPS = $(foreach x,$(ARMS),$(OUTPUT)$(x)/extra-metricgroups.json)
+ARMS := $(shell $(JEVENTS_AWK) -F, 'NR > 1 && $$0 !~ /^#/ && NF >= 3 && $$3 ~ /^arm\// { print $$3 }' $(SRC_DIR)/arm64/mapfile.csv | sort -u)
+ARM_METRICS := $(foreach x,$(ARMS),$(GEN_DIR)/arm64/$(x)/extra-metrics.json)
+ARM_METRICGROUPS := $(foreach x,$(ARMS),$(GEN_DIR)/arm64/$(x)/extra-metricgroups.json)
 GEN_JSON += $(ARM_METRICS) $(ARM_METRICGROUPS)
 
 $(ARM_METRICS): pmu-events/arm64_metrics.py $(GEN_METRIC_DEPS)
 	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call vendor_name,$@) $(call model_name,$@) pmu-events/arch > $@
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call vendor_name,$@) $(call model_name,$@) $(SRC_DIR) > $@
 
 $(ARM_METRICGROUPS): pmu-events/arm64_metrics.py $(GEN_METRIC_DEPS)
 	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call vendor_name,$@) $(call model_name,$@) pmu-events/arch > $@
-
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call vendor_name,$@) $(call model_name,$@) $(SRC_DIR) > $@
 endif
 
-ifeq ($(JEVENTS_ARCH),$(filter $(JEVENTS_ARCH),x86 all))
-# Generate Intel Json
-INTELS := $(shell ls -d pmu-events/arch/x86/*|grep -v amdzen|grep -v mapfile.csv)
-INTEL_METRICS = $(foreach x,$(INTELS),$(OUTPUT)$(x)/extra-metrics.json)
-INTEL_METRICGROUPS = $(foreach x,$(INTELS),$(OUTPUT)$(x)/extra-metricgroups.json)
-GEN_JSON += $(INTEL_METRICS) $(INTEL_METRICGROUPS)
+# Track input file lists via write-if-changed manifests using GNU Make's
+# $(file ...) built-in (avoids shell ARG_MAX limits). Updating the manifest
+# ensures deleting or checking out older source files still triggers a rebuild,
+# and passing the generated-file manifest to jevents.py ensures stale files in
+# $(GEN_DIR) are never read.
+define _jevents_nl
 
-$(INTEL_METRICS): pmu-events/intel_metrics.py $(GEN_METRIC_DEPS)
-	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< $(call model_name,$@) pmu-events/arch > $@
 
-$(INTEL_METRICGROUPS): pmu-events/intel_metrics.py $(GEN_METRIC_DEPS)
-	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $< -metricgroups $(call model_name,$@) pmu-events/arch > $@
+endef
 
-endif
+PMU_EVENTS_OUT_DIR := $(OUTPUT)pmu-events
+$(PMU_EVENTS_OUT_DIR):
+	$(Q)mkdir -p $@
 
-OUT_DIR		:= $(OUTPUT)pmu-events/arch
+GEN_JSON_REL := $(patsubst $(GEN_DIR)/%,%,$(sort $(GEN_JSON)))
+JEVENTS_GEN_MANIFEST := $(OUTPUT)pmu-events/jevents-gen-files
+JEVENTS_SRC_MANIFEST := $(OUTPUT)pmu-events/jevents-src-files
+JEVENTS_EMPTY_SRC_MANIFEST := $(OUTPUT)pmu-events/jevents-empty-src-files
 
-ifeq ($(OUTPUT),)
-OUT_JSON	:= $(SRC_JSON)
-ORPHAN_FILES	:=
-else
-# Things that need to be built in the OUTPUT directory. Note, ensure
-# there is a slash after the directory name so that it matches what
-# $(dir) gives in COPY_RULE.
-OUT_JSON	:= $(patsubst $(SRC_DIR)/%,$(OUT_DIR)/%,$(SRC_JSON))
-OUT_DIRS	:= $(sort $(patsubst %/,%,$(dir $(OUT_JSON))))
-
-# Things already in the OUTPUT directory
-CUR_OUT_JSON	:= $(shell [ -d $(OUT_DIR) ] && find $(OUT_DIR) -type f)
-
-# Things in the OUTPUT directory but shouldn't be there as computed by
-# OUT_JSON and GEN_JSON.
-
-ORPHAN_FILES	:= $(filter-out $(OUT_JSON) $(GEN_JSON),$(CUR_OUT_JSON))
-
-# Message for $(call echo-cmd,mkd). There is already a mkdir message
-# but it assumes $@ is a file to mkdir the directory for.
-quiet_cmd_mkd  = MKDIR   $@
-
-$(OUT_DIRS):
-	$(Q)$(call echo-cmd,mkd)mkdir -p $@
-
-# Explicitly generate rules to copy SRC_JSON files as $(dir) cannot
-# apply to $@ in a dependency. Exclude from the copy rules any that
-# look like they are copying generated json. This happens as a perf
-# build within the tools/perf directory will leave generated json
-# files within the tree, these then get picked up by SRC_JSON find.
-define COPY_RULE
-$(2): $(1) | $(3)
-	$$(Q)$$(call echo-cmd,cp)cp $(1) $(2)
-endef
-$(foreach src,$(SRC_JSON), \
-    $(eval dest := $(patsubst $(SRC_DIR)/%,$(OUT_DIR)/%,$(src))) \
-    $(eval ddir := $(patsubst %/,%,$(dir $(dest)))) \
-    $(if $(filter $(dest),$(GEN_JSON)),, \
-        $(eval $(call COPY_RULE,$(src),$(dest),$(ddir))) \
-    ) \
-)
+$(JEVENTS_GEN_MANIFEST): FORCE | $(PMU_EVENTS_OUT_DIR)
+	$(if $(findstring n,$(firstword -$(MAKEFLAGS))),,$(file > $@.tmp,$(subst $(space),$(_jevents_nl),$(strip $(GEN_JSON_REL)))))@if cmp -s $@.tmp $@ 2>/dev/null; then \
+		rm -f $@.tmp; \
+	else \
+		mv -f $@.tmp $@; \
+	fi
 
-endif # ifneq ($(OUTPUT),)
+$(JEVENTS_SRC_MANIFEST): FORCE | $(PMU_EVENTS_OUT_DIR)
+	$(if $(findstring n,$(firstword -$(MAKEFLAGS))),,$(file > $@.tmp,$(subst $(space),$(_jevents_nl),$(strip $(sort $(SRC_JSON))))))@if cmp -s $@.tmp $@ 2>/dev/null; then \
+		rm -f $@.tmp; \
+	else \
+		mv -f $@.tmp $@; \
+	fi
+
+$(JEVENTS_EMPTY_SRC_MANIFEST): FORCE | $(PMU_EVENTS_OUT_DIR)
+	$(if $(findstring n,$(firstword -$(MAKEFLAGS))),,$(file > $@.tmp,$(subst $(space),$(_jevents_nl),$(strip $(sort $(SRC_COMMON_TEST))))))@if cmp -s $@.tmp $@ 2>/dev/null; then \
+		rm -f $@.tmp; \
+	else \
+		mv -f $@.tmp $@; \
+	fi
 
 JEVENTS_PY	=  pmu-events/jevents.py
 METRIC_PY	=  pmu-events/metric.py
@@ -200,41 +204,27 @@ $(METRIC_TEST_LOG): $(METRIC_TEST_PY) $(METRIC_PY)
 TEST_EMPTY_PMU_EVENTS_C = $(OUTPUT)pmu-events/test-empty-pmu-events.c
 EMPTY_PMU_EVENTS_TEST_LOG = $(OUTPUT)pmu-events/empty-pmu-events.log
 
-$(TEST_EMPTY_PMU_EVENTS_C): $(OUT_JSON) $(GEN_JSON) $(JEVENTS_PY) $(METRIC_PY)
+$(TEST_EMPTY_PMU_EVENTS_C): $(SRC_COMMON_TEST) $(LEGACY_CACHE_JSON) $(JEVENTS_EMPTY_SRC_MANIFEST) $(JEVENTS_PY) $(METRIC_PY)
 	$(call rule_mkdir)
-	$(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) none none $(OUTPUT)pmu-events/arch $@
+	$(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) --gen-dir $(GEN_DIR) \
+            --gen-file common/common/legacy-cache.json none none $(SRC_DIR) $@
 
 $(EMPTY_PMU_EVENTS_TEST_LOG): $(EMPTY_PMU_EVENTS_C) $(TEST_EMPTY_PMU_EVENTS_C)
 	$(call rule_mkdir)
 	$(Q)$(call echo-cmd,test)diff -u $^ 2> $@ || (cat $@ && false)
 
-
 # Dependencies for jevents.py
-JEVENTS_DEPS := $(OUT_JSON) $(GEN_JSON) $(JEVENTS_PY) $(METRIC_PY) $(EMPTY_PMU_EVENTS_TEST_LOG) $(METRIC_TEST_LOG) $(JEVENTS_FLAGS_FILE)
-
-# If there are orphaned files remove them.
-ifneq ($(strip $(ORPHAN_FILES)),)
-.PHONY: prune_orphans
-
-# Message for $(call echo-cmd,rm). Generally cleaning files isn't part
-# of a build step.
-quiet_cmd_rm = RM      ...$(words $^) orphan file(s)...
-
-# The list of files can be long. Remove the $(OUT_DIR)/ prefix, and
-# restore it with printf, to prevent "Argument list too long"
-# (see scripts/Makefile.clean).
-prune_orphans: $(ORPHAN_FILES)
-	$(Q)$(call echo-cmd,rm)printf '$(OUT_DIR)/%s ' $(patsubst $(OUT_DIR)/%,%,$(ORPHAN_FILES)) | xargs rm -f
-
-JEVENTS_DEPS += prune_orphans
-endif
+JEVENTS_DEPS := $(SRC_JSON) $(GEN_JSON) $(JEVENTS_SRC_MANIFEST) $(JEVENTS_GEN_MANIFEST) \
+		$(JEVENTS_PY) $(METRIC_PY) $(EMPTY_PMU_EVENTS_TEST_LOG) $(METRIC_TEST_LOG) \
+		$(JEVENTS_FLAGS_FILE)
 
 # Finally, the rule to build pmu-events.c using jevents.py. All test
 # and inputs are dependencies.
 $(PMU_EVENTS_C): $(JEVENTS_DEPS)
 	$(call rule_mkdir)
 	$(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) --compress=$(JEVENTS_COMPRESS_ARG) \
-            $(JEVENTS_ARCH) $(JEVENTS_MODEL) $(OUT_DIR) $(PMU_EVENTS_C) $(PMU_EVENTS_STRING_C)
+            --gen-dir $(GEN_DIR) --gen-manifest $(JEVENTS_GEN_MANIFEST) \
+            $(JEVENTS_ARCH) $(JEVENTS_MODEL) $(SRC_DIR) $(PMU_EVENTS_C) $(PMU_EVENTS_STRING_C)
 
 $(PMU_EVENTS_STRING_C): $(PMU_EVENTS_C)
 	@:
-- 
2.56.1.915.g69d5ec7298-goog


  parent reply	other threads:[~2026-12-06  2:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-06  2:11 [PATCH 0/8] perf build: Avoid pmu-events copies and improve build parallelism Ian Rogers
2026-12-06  2:11 ` [PATCH 1/8] perf pmu-events: Ignore backup and non-event JSON files in metric.py Ian Rogers
2026-12-06  2:22   ` sashiko-bot
2026-12-06  2:11 ` [PATCH 2/8] perf jevents: Support --gen-dir/--gen-manifest overlay and ignore backups Ian Rogers
2026-12-06  2:23   ` sashiko-bot
2026-12-06  2:11 ` Ian Rogers [this message]
2026-12-06  2:26   ` [PATCH 3/8] perf build: Avoid copying pmu-events JSON files into OUTPUT sashiko-bot
2026-12-06  2:11 ` [PATCH 4/8] perf pmu-events: Batch metric generation and scope via mapfile.csv Ian Rogers
2026-12-06  2:28   ` sashiko-bot
2026-12-06  2:11 ` [PATCH 5/8] perf build: Batch metric JSON generation in pmu-events/Build Ian Rogers
2026-12-06  2:26   ` sashiko-bot
2026-12-06  2:11 ` [PATCH 6/8] perf build: Run pmu-events tests in parallel with jevents.py Ian Rogers
2026-12-06  2:11 ` [PATCH 7/8] perf build: Depend on lib*-headers instead of archives in prepare Ian Rogers
2026-12-06  2:11 ` [PATCH 8/8] perf tests make: Only run shellcheck, mypy and pylint in pure builds Ian Rogers
2026-12-06  2:22   ` sashiko-bot
2026-12-06  2:28 ` [PATCH 0/8] perf build: Avoid pmu-events copies and improve build parallelism sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261206021147.3036701-4-irogers@google.com \
    --to=irogers@google.com \
    --cc=acme@kernel.org \
    --cc=adrian.hunter@intel.com \
    --cc=james.clark@linaro.org \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.