1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 perf-test-y += builtin-test.o !! 3 perf-y += builtin-test.o 4 perf-test-y += tests-scripts.o !! 4 perf-y += builtin-test-list.o 5 perf-test-y += parse-events.o !! 5 perf-y += parse-events.o 6 perf-test-y += dso-data.o !! 6 perf-y += dso-data.o 7 perf-test-y += attr.o !! 7 perf-y += attr.o 8 perf-test-y += vmlinux-kallsyms.o !! 8 perf-y += vmlinux-kallsyms.o 9 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-sy !! 9 perf-$(CONFIG_LIBTRACEEVENT) += openat-syscall.o 10 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-sy !! 10 perf-$(CONFIG_LIBTRACEEVENT) += openat-syscall-all-cpus.o 11 perf-test-$(CONFIG_LIBTRACEEVENT) += openat-sy !! 11 perf-$(CONFIG_LIBTRACEEVENT) += openat-syscall-tp-fields.o 12 perf-test-$(CONFIG_LIBTRACEEVENT) += mmap-basi !! 12 perf-$(CONFIG_LIBTRACEEVENT) += mmap-basic.o 13 perf-test-y += perf-record.o !! 13 perf-y += perf-record.o 14 perf-test-y += evsel-roundtrip-name.o !! 14 perf-y += evsel-roundtrip-name.o 15 perf-test-$(CONFIG_LIBTRACEEVENT) += evsel-tp- !! 15 perf-$(CONFIG_LIBTRACEEVENT) += evsel-tp-sched.o 16 perf-test-y += fdarray.o !! 16 perf-y += fdarray.o 17 perf-test-y += pmu.o !! 17 perf-y += pmu.o 18 perf-test-y += pmu-events.o !! 18 perf-y += pmu-events.o 19 perf-test-y += hists_common.o !! 19 perf-y += hists_common.o 20 perf-test-y += hists_link.o !! 20 perf-y += hists_link.o 21 perf-test-y += hists_filter.o !! 21 perf-y += hists_filter.o 22 perf-test-y += hists_output.o !! 22 perf-y += hists_output.o 23 perf-test-y += hists_cumulate.o !! 23 perf-y += hists_cumulate.o 24 perf-test-y += python-use.o !! 24 perf-y += python-use.o 25 perf-test-y += bp_signal.o !! 25 perf-y += bp_signal.o 26 perf-test-y += bp_signal_overflow.o !! 26 perf-y += bp_signal_overflow.o 27 perf-test-y += bp_account.o !! 27 perf-y += bp_account.o 28 perf-test-y += wp.o !! 28 perf-y += wp.o 29 perf-test-y += task-exit.o !! 29 perf-y += task-exit.o 30 perf-test-y += sw-clock.o !! 30 perf-y += sw-clock.o 31 perf-test-y += mmap-thread-lookup.o !! 31 perf-y += mmap-thread-lookup.o 32 perf-test-y += thread-maps-share.o !! 32 perf-y += thread-maps-share.o 33 perf-test-$(CONFIG_LIBTRACEEVENT) += switch-tr !! 33 perf-$(CONFIG_LIBTRACEEVENT) += switch-tracking.o 34 perf-test-y += keep-tracking.o !! 34 perf-y += keep-tracking.o 35 perf-test-y += code-reading.o !! 35 perf-y += code-reading.o 36 perf-test-y += sample-parsing.o !! 36 perf-y += sample-parsing.o 37 perf-test-y += parse-no-sample-id-all.o !! 37 perf-y += parse-no-sample-id-all.o 38 perf-test-y += kmod-path.o !! 38 perf-y += kmod-path.o 39 perf-test-y += thread-map.o !! 39 perf-y += thread-map.o 40 perf-test-y += topology.o !! 40 perf-y += llvm.o llvm-src-base.o llvm-src-kbuild.o llvm-src-prologue.o llvm-src-relocation.o 41 perf-test-y += mem.o !! 41 perf-y += bpf.o 42 perf-test-y += cpumap.o !! 42 perf-y += topology.o 43 perf-test-y += stat.o !! 43 perf-y += mem.o 44 perf-test-y += event_update.o !! 44 perf-y += cpumap.o 45 perf-test-y += event-times.o !! 45 perf-y += stat.o 46 perf-test-y += expr.o !! 46 perf-y += event_update.o 47 perf-test-y += backward-ring-buffer.o !! 47 perf-y += event-times.o 48 perf-test-y += sdt.o !! 48 perf-y += expr.o 49 perf-test-y += is_printable_array.o !! 49 perf-y += backward-ring-buffer.o 50 perf-test-y += bitmap.o !! 50 perf-y += sdt.o 51 perf-test-y += perf-hooks.o !! 51 perf-y += is_printable_array.o 52 perf-test-y += unit_number__scnprintf.o !! 52 perf-y += bitmap.o 53 perf-test-y += mem2node.o !! 53 perf-y += perf-hooks.o 54 perf-test-y += maps.o !! 54 perf-y += clang.o 55 perf-test-y += time-utils-test.o !! 55 perf-y += unit_number__scnprintf.o 56 perf-test-y += genelf.o !! 56 perf-y += mem2node.o 57 perf-test-y += api-io.o !! 57 perf-y += maps.o 58 perf-test-y += demangle-java-test.o !! 58 perf-y += time-utils-test.o 59 perf-test-y += demangle-ocaml-test.o !! 59 perf-y += genelf.o 60 perf-test-y += pfm.o !! 60 perf-y += api-io.o 61 perf-test-y += parse-metric.o !! 61 perf-y += demangle-java-test.o 62 perf-test-y += pe-file-parsing.o !! 62 perf-y += demangle-ocaml-test.o 63 perf-test-y += expand-cgroup.o !! 63 perf-y += pfm.o 64 perf-test-y += perf-time-to-tsc.o !! 64 perf-y += parse-metric.o 65 perf-test-y += dlfilter-test.o !! 65 perf-y += pe-file-parsing.o 66 perf-test-y += sigtrap.o !! 66 perf-y += expand-cgroup.o 67 perf-test-y += event_groups.o !! 67 perf-y += perf-time-to-tsc.o 68 perf-test-y += symbols.o !! 68 perf-y += dlfilter-test.o 69 perf-test-y += util.o !! 69 perf-y += sigtrap.o >> 70 perf-y += event_groups.o >> 71 >> 72 $(OUTPUT)tests/llvm-src-base.c: tests/bpf-script-example.c tests/Build >> 73 $(call rule_mkdir) >> 74 $(Q)echo '#include <tests/llvm.h>' > $@ >> 75 $(Q)echo 'const char test_llvm__bpf_base_prog[] =' >> $@ >> 76 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ >> 77 $(Q)echo ';' >> $@ >> 78 >> 79 $(OUTPUT)tests/llvm-src-kbuild.c: tests/bpf-script-test-kbuild.c tests/Build >> 80 $(call rule_mkdir) >> 81 $(Q)echo '#include <tests/llvm.h>' > $@ >> 82 $(Q)echo 'const char test_llvm__bpf_test_kbuild_prog[] =' >> $@ >> 83 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ >> 84 $(Q)echo ';' >> $@ >> 85 >> 86 $(OUTPUT)tests/llvm-src-prologue.c: tests/bpf-script-test-prologue.c tests/Build >> 87 $(call rule_mkdir) >> 88 $(Q)echo '#include <tests/llvm.h>' > $@ >> 89 $(Q)echo 'const char test_llvm__bpf_test_prologue_prog[] =' >> $@ >> 90 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ >> 91 $(Q)echo ';' >> $@ >> 92 >> 93 $(OUTPUT)tests/llvm-src-relocation.c: tests/bpf-script-test-relocation.c tests/Build >> 94 $(call rule_mkdir) >> 95 $(Q)echo '#include <tests/llvm.h>' > $@ >> 96 $(Q)echo 'const char test_llvm__bpf_test_relocation[] =' >> $@ >> 97 $(Q)sed -e 's/"/\\"/g' -e 's/\(.*\)/"\1\\n"/g' $< >> $@ >> 98 $(Q)echo ';' >> $@ 70 99 71 ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm a 100 ifeq ($(SRCARCH),$(filter $(SRCARCH),x86 arm arm64 powerpc)) 72 perf-test-$(CONFIG_DWARF_UNWIND) += dwarf-unwi !! 101 perf-$(CONFIG_DWARF_UNWIND) += dwarf-unwind.o 73 endif 102 endif 74 103 75 CFLAGS_attr.o += -DBINDIR="BUILD_STR($ 104 CFLAGS_attr.o += -DBINDIR="BUILD_STR($(bindir_SQ))" -DPYTHON="BUILD_STR($(PYTHON_WORD))" 76 CFLAGS_python-use.o += -DPYTHONPATH="BUILD_S 105 CFLAGS_python-use.o += -DPYTHONPATH="BUILD_STR($(OUTPUT)python)" -DPYTHON="BUILD_STR($(PYTHON_WORD))" 77 CFLAGS_dwarf-unwind.o += -fno-optimize-sibling 106 CFLAGS_dwarf-unwind.o += -fno-optimize-sibling-calls 78 107 79 perf-test-y += workloads/ !! 108 perf-y += workloads/ 80 << 81 ifdef SHELLCHECK << 82 SHELL_TESTS := $(shell find tests/shell -exe << 83 TEST_LOGS := $(SHELL_TESTS:tests/shell/%=she << 84 else << 85 SHELL_TESTS := << 86 TEST_LOGS := << 87 endif << 88 << 89 $(OUTPUT)%.shellcheck_log: % << 90 $(call rule_mkdir) << 91 $(Q)$(call echo-cmd,test)shellcheck -a << 92 << 93 perf-test-y += $(TEST_LOGS) <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.