summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/Build
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2026-09-25 23:20:13 -0700
committerArnaldo Carvalho de Melo <acme@redhat.com>2026-09-26 20:54:54 +0200
commit0d0f9e540d940a48b91cbea1657794d44b25aedf (patch)
treec278c28d2ce50a88dfaaae897161d0ad385aa01e /tools/perf/scripts/Build
parent5084b5f91a70e0aa2811c7c894ac19424bfc4194 (diff)
perf: Remove libpython support and legacy Python scripts
Remove embedded Python interpreter support (libpython) from perf, as all Python scripts have been migrated to standalone scripts using the perf Python extension module. Changes include: - Remove libpython detection and build flags from Makefile.config. - Remove legacy Python script installation rules from Makefile.perf. - Delete tools/perf/util/scripting-engines/trace-event-python.c and tools/perf/scripts/python/Perf-Trace-Util/Context.c. - Remove Python scripting engine registration from trace-event-scripting.c. - Remove libpython from the supported features list in builtin-check.c and Documentation/perf-check.txt. - Delete the legacy Python scripts and bin wrappers in tools/perf/scripts/python/ and update shell tests. Assisted-by: Antigravity:gemini-3.1-pro Signed-off-by: Ian Rogers <irogers@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/Build')
-rw-r--r--tools/perf/scripts/Build27
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/perf/scripts/Build b/tools/perf/scripts/Build
index 91229a1fe3ff..fbeab8fff88b 100644
--- a/tools/perf/scripts/Build
+++ b/tools/perf/scripts/Build
@@ -1,30 +1,3 @@
ifeq ($(CONFIG_LIBTRACEEVENT),y)
perf-util-$(CONFIG_LIBPERL) += perl/Perf-Trace-Util/
endif
-perf-util-$(CONFIG_LIBPYTHON) += python/Perf-Trace-Util/
-
-ifdef MYPY
- PY_TESTS := $(shell find python -type f -name '*.py')
- MYPY_TEST_LOGS := $(PY_TESTS:python/%=python/%.mypy_log)
-else
- MYPY_TEST_LOGS :=
-endif
-
-$(OUTPUT)%.mypy_log: %
- $(call rule_mkdir)
- $(Q)$(call echo-cmd,test)mypy "$<" > $@ || (cat $@ && rm $@ && false)
-
-perf-y += $(MYPY_TEST_LOGS)
-
-ifdef PYLINT
- PY_TESTS := $(shell find python -type f -name '*.py')
- PYLINT_TEST_LOGS := $(PY_TESTS:python/%=python/%.pylint_log)
-else
- PYLINT_TEST_LOGS :=
-endif
-
-$(OUTPUT)%.pylint_log: %
- $(call rule_mkdir)
- $(Q)$(call echo-cmd,test)pylint "$<" > $@ || (cat $@ && rm $@ && false)
-
-perf-y += $(PYLINT_TEST_LOGS)