0001
0002 include ../../../../../build/Build.include
0003
0004 noarg:
0005 $(MAKE) -C ../../
0006
0007
0008 CFLAGS += -m64
0009
0010 TMPOUT = $(OUTPUT)/TMPDIR/
0011
0012 no-pie-option := $(call try-run, echo 'int main() { return 0; }' | \
0013 $(CC) -Werror $(KBUILD_CPPFLAGS) $(CC_OPTION_CFLAGS) -no-pie -x c - -o "$$TMP", -no-pie)
0014
0015 LDFLAGS += $(no-pie-option)
0016
0017 TEST_GEN_PROGS := reg_access_test event_attributes_test cycles_test \
0018 cycles_with_freeze_test pmc56_overflow_test \
0019 ebb_vs_cpu_event_test cpu_event_vs_ebb_test \
0020 cpu_event_pinned_vs_ebb_test task_event_vs_ebb_test \
0021 task_event_pinned_vs_ebb_test multi_ebb_procs_test \
0022 multi_counter_test pmae_handling_test \
0023 close_clears_pmcc_test instruction_count_test \
0024 fork_cleanup_test ebb_on_child_test \
0025 ebb_on_willing_child_test back_to_back_ebbs_test \
0026 lost_exception_test no_handler_test \
0027 cycles_with_mmcr2_test regs_access_pmccext_test
0028
0029 top_srcdir = ../../../../../..
0030 include ../../../lib.mk
0031
0032 $(TEST_GEN_PROGS): ../../harness.c ../../utils.c ../event.c ../lib.c \
0033 ebb.c ebb_handler.S trace.c busy_loop.S
0034
0035 $(OUTPUT)/instruction_count_test: ../loop.S
0036
0037 $(OUTPUT)/lost_exception_test: ../lib.c