xref: /linux/tools/testing/selftests/powerpc/pmu/ebb/Makefile (revision 985ac68eba4c6487754a67401909239e0505171a)
13752e453SMichael Ellermannoarg:
23752e453SMichael Ellerman	$(MAKE) -C ../../
33752e453SMichael Ellerman
43752e453SMichael Ellerman# The EBB handler is 64-bit code and everything links against it
53752e453SMichael EllermanCFLAGS += -m64
63752e453SMichael Ellerman
73752e453SMichael EllermanPROGS := reg_access_test event_attributes_test cycles_test	\
83752e453SMichael Ellerman	 cycles_with_freeze_test pmc56_overflow_test		\
93752e453SMichael Ellerman	 ebb_vs_cpu_event_test cpu_event_vs_ebb_test		\
103752e453SMichael Ellerman	 cpu_event_pinned_vs_ebb_test task_event_vs_ebb_test	\
113752e453SMichael Ellerman	 task_event_pinned_vs_ebb_test multi_ebb_procs_test	\
123752e453SMichael Ellerman	 multi_counter_test pmae_handling_test			\
133752e453SMichael Ellerman	 close_clears_pmcc_test instruction_count_test		\
143752e453SMichael Ellerman	 fork_cleanup_test ebb_on_child_test			\
153752e453SMichael Ellerman	 ebb_on_willing_child_test back_to_back_ebbs_test	\
16*985ac68eSMichael Ellerman	 lost_exception_test no_handler_test			\
17*985ac68eSMichael Ellerman	 cycles_with_mmcr2_test
183752e453SMichael Ellerman
193752e453SMichael Ellermanall: $(PROGS)
203752e453SMichael Ellerman
216873def9SMichael Ellerman$(PROGS): ../../harness.c ../event.c ../lib.c ebb.c ebb_handler.S trace.c busy_loop.S
223752e453SMichael Ellerman
233752e453SMichael Ellermaninstruction_count_test: ../loop.S
243752e453SMichael Ellerman
253752e453SMichael Ellermanlost_exception_test: ../lib.c
263752e453SMichael Ellerman
273752e453SMichael Ellermanrun_tests: all
283752e453SMichael Ellerman	@-for PROG in $(PROGS); do \
293752e453SMichael Ellerman		./$$PROG; \
303752e453SMichael Ellerman	done;
313752e453SMichael Ellerman
323752e453SMichael Ellermanclean:
333752e453SMichael Ellerman	rm -f $(PROGS)
34