]> www.infradead.org Git - users/hch/misc.git/commitdiff
perf test: Remove C python_use test
authorIan Rogers <irogers@google.com>
Wed, 3 Sep 2025 18:42:48 +0000 (11:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Oct 2025 19:59:11 +0000 (16:59 -0300)
Removed in favor of the shell script version.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Collin Funk <collin.funk1@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@amd.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/Build
tools/perf/tests/builtin-test.c
tools/perf/tests/python-use.c [deleted file]
tools/perf/tests/tests.h

index 3e8394be15aea4fbe3f2d513341c2536b873e883..af67f8ef74b49c58b4533bcfe553e8a4e45f8278 100644 (file)
@@ -20,7 +20,6 @@ perf-test-y += hists_link.o
 perf-test-y += hists_filter.o
 perf-test-y += hists_output.o
 perf-test-y += hists_cumulate.o
-perf-test-y += python-use.o
 perf-test-y += bp_signal.o
 perf-test-y += bp_signal_overflow.o
 perf-test-y += bp_account.o
@@ -75,7 +74,6 @@ ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc))
 perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o
 endif
 
-CFLAGS_python-use.o   += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))"
 CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls
 
 perf-test-y += workloads/
index 8921846b3f369fbd45c9f3378e783638222ccff1..0d2fb7a4ae5bd74923bb10e81e3f8c07565c2444 100644 (file)
@@ -84,7 +84,6 @@ static struct test_suite *generic_tests[] = {
        &suite__syscall_openat_tp_fields,
 #endif
        &suite__hists_link,
-       &suite__python_use,
        &suite__bp_signal,
        &suite__bp_signal_overflow,
        &suite__bp_accounting,
diff --git a/tools/perf/tests/python-use.c b/tools/perf/tests/python-use.c
deleted file mode 100644 (file)
index 0ebc22a..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Just test if we can load the python binding.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <linux/compiler.h>
-#include "tests.h"
-#include "util/debug.h"
-
-static int test__python_use(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
-{
-       char *cmd;
-       int ret;
-
-       if (asprintf(&cmd, "echo \"import sys ; sys.path.insert(0, '%s'); import perf\" | %s %s",
-                    PYTHONPATH, PYTHON, verbose > 0 ? "" : "2> /dev/null") < 0)
-               return -1;
-
-       pr_debug("python usage test: \"%s\"\n", cmd);
-       ret = system(cmd) ? -1 : 0;
-       free(cmd);
-       return ret;
-}
-
-DEFINE_SUITE("'import perf' in python", python_use);
index cf3a14a95b6749a6a98a9c720c4ae67cd56668eb..33de16dde737fadd718b6574fb255da2c1a6a863 100644 (file)
@@ -120,7 +120,6 @@ DECLARE_SUITE(dso_data_cache);
 DECLARE_SUITE(dso_data_reopen);
 DECLARE_SUITE(parse_events);
 DECLARE_SUITE(hists_link);
-DECLARE_SUITE(python_use);
 DECLARE_SUITE(bp_signal);
 DECLARE_SUITE(bp_signal_overflow);
 DECLARE_SUITE(bp_accounting);