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