1# SPDX-License-Identifier: GPL-2.0 2 3perf-test-y += builtin-test.o 4perf-test-y += tests-scripts.o 5perf-test-y += parse-events.o 6perf-test-y += dso-data.o 7perf-test-y += attr.o 8perf-test-y += vmlinux-kallsyms.o 9perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall.o 10perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-all-cpus.o 11perf-test-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o 12perf-test-$(CONFIG_LIBTRACEEVENT) += mmap-basic.o 13perf-test-y += perf-record.o 14perf-test-y += evsel-roundtrip-name.o 15perf-test-$(CONFIG_LIBTRACEEVENT) += evsel-tp-sched.o 16perf-test-y += fdarray.o 17perf-test-y += pmu.o 18perf-test-y += pmu-events.o 19perf-test-y += hists_common.o 20perf-test-y += hists_link.o 21perf-test-y += hists_filter.o 22perf-test-y += hists_output.o 23perf-test-y += hists_cumulate.o 24perf-test-y += python-use.o 25perf-test-y += bp_signal.o 26perf-test-y += bp_signal_overflow.o 27perf-test-y += bp_account.o 28perf-test-y += wp.o 29perf-test-y += task-exit.o 30perf-test-y += sw-clock.o 31perf-test-y += mmap-thread-lookup.o 32perf-test-y += thread-maps-share.o 33perf-test-$(CONFIG_LIBTRACEEVENT) += switch-tracking.o 34perf-test-y += keep-tracking.o 35perf-test-y += code-reading.o 36perf-test-y += sample-parsing.o 37perf-test-y += parse-no-sample-id-all.o 38perf-test-y += kmod-path.o 39perf-test-y += thread-map.o 40perf-test-y += topology.o 41perf-test-y += mem.o 42perf-test-y += cpumap.o 43perf-test-y += stat.o 44perf-test-y += event_update.o 45perf-test-y += event-times.o 46perf-test-y += expr.o 47perf-test-y += backward-ring-buffer.o 48perf-test-y += sdt.o 49perf-test-y += is_printable_array.o 50perf-test-y += bitmap.o 51perf-test-y += perf-hooks.o 52perf-test-y += unit_number__scnprintf.o 53perf-test-y += mem2node.o 54perf-test-y += maps.o 55perf-test-y += time-utils-test.o 56perf-test-y += genelf.o 57perf-test-y += api-io.o 58perf-test-y += demangle-java-test.o 59perf-test-y += demangle-ocaml-test.o 60perf-test-y += pfm.o 61perf-test-y += parse-metric.o 62perf-test-y += pe-file-parsing.o 63perf-test-y += expand-cgroup.o 64perf-test-y += perf-time-to-tsc.o 65perf-test-y += dlfilter-test.o 66perf-test-y += sigtrap.o 67perf-test-y += event_groups.o 68perf-test-y += symbols.o 69perf-test-y += util.o 70 71ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc)) 72perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o 73endif 74 75CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))" 76CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))" 77CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls 78 79perf-test-y += workloads/ 80 81ifdef SHELLCHECK 82 SHELL_TESTS := $(shell find tests/shell -executable -type f -name '*.sh') 83 TEST_LOGS := $(SHELL_TESTS:tests/shell/%=shell/%.shellcheck_log) 84else 85 SHELL_TESTS := 86 TEST_LOGS := 87endif 88 89$(OUTPUT)%.shellcheck_log: % 90 $(call rule_mkdir) 91 $(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false) 92 93perf-test-y += $(TEST_LOGS) 94