Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf test: Remove C python_use test

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>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
d18020cf 33706fb0

-31
-2
tools/perf/tests/Build
··· 20 20 perf-test-y += hists_filter.o 21 21 perf-test-y += hists_output.o 22 22 perf-test-y += hists_cumulate.o 23 - perf-test-y += python-use.o 24 23 perf-test-y += bp_signal.o 25 24 perf-test-y += bp_signal_overflow.o 26 25 perf-test-y += bp_account.o ··· 74 75 perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o 75 76 endif 76 77 77 - CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))" 78 78 CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls 79 79 80 80 perf-test-y += workloads/
-1
tools/perf/tests/builtin-test.c
··· 84 84 &suite__syscall_openat_tp_fields, 85 85 #endif 86 86 &suite__hists_link, 87 - &suite__python_use, 88 87 &suite__bp_signal, 89 88 &suite__bp_signal_overflow, 90 89 &suite__bp_accounting,
-27
tools/perf/tests/python-use.c
··· 1 - // SPDX-License-Identifier: GPL-2.0 2 - /* 3 - * Just test if we can load the python binding. 4 - */ 5 - 6 - #include <stdio.h> 7 - #include <stdlib.h> 8 - #include <linux/compiler.h> 9 - #include "tests.h" 10 - #include "util/debug.h" 11 - 12 - static int test__python_use(struct test_suite *test __maybe_unused, int subtest __maybe_unused) 13 - { 14 - char *cmd; 15 - int ret; 16 - 17 - if (asprintf(&cmd, "echo \"import sys ; sys.path.insert(0, '%s'); import perf\" | %s %s", 18 - PYTHONPATH, PYTHON, verbose > 0 ? "" : "2> /dev/null") < 0) 19 - return -1; 20 - 21 - pr_debug("python usage test: \"%s\"\n", cmd); 22 - ret = system(cmd) ? -1 : 0; 23 - free(cmd); 24 - return ret; 25 - } 26 - 27 - DEFINE_SUITE("'import perf' in python", python_use);
-1
tools/perf/tests/tests.h
··· 120 120 DECLARE_SUITE(dso_data_reopen); 121 121 DECLARE_SUITE(parse_events); 122 122 DECLARE_SUITE(hists_link); 123 - DECLARE_SUITE(python_use); 124 123 DECLARE_SUITE(bp_signal); 125 124 DECLARE_SUITE(bp_signal_overflow); 126 125 DECLARE_SUITE(bp_accounting);