xref: /linux/tools/testing/selftests/powerpc/pmu/ebb/Makefile (revision 3752e453f6bafd78e5586cc2b2e33ee4b6e1566d)
1*3752e453SMichael Ellermannoarg:
2*3752e453SMichael Ellerman	$(MAKE) -C ../../
3*3752e453SMichael Ellerman
4*3752e453SMichael Ellerman# The EBB handler is 64-bit code and everything links against it
5*3752e453SMichael EllermanCFLAGS += -m64
6*3752e453SMichael Ellerman
7*3752e453SMichael EllermanPROGS := reg_access_test event_attributes_test cycles_test	\
8*3752e453SMichael Ellerman	 cycles_with_freeze_test pmc56_overflow_test		\
9*3752e453SMichael Ellerman	 ebb_vs_cpu_event_test cpu_event_vs_ebb_test		\
10*3752e453SMichael Ellerman	 cpu_event_pinned_vs_ebb_test task_event_vs_ebb_test	\
11*3752e453SMichael Ellerman	 task_event_pinned_vs_ebb_test multi_ebb_procs_test	\
12*3752e453SMichael Ellerman	 multi_counter_test pmae_handling_test			\
13*3752e453SMichael Ellerman	 close_clears_pmcc_test instruction_count_test		\
14*3752e453SMichael Ellerman	 fork_cleanup_test ebb_on_child_test			\
15*3752e453SMichael Ellerman	 ebb_on_willing_child_test back_to_back_ebbs_test	\
16*3752e453SMichael Ellerman	 lost_exception_test no_handler_test
17*3752e453SMichael Ellerman
18*3752e453SMichael Ellermanall: $(PROGS)
19*3752e453SMichael Ellerman
20*3752e453SMichael Ellerman$(PROGS): ../../harness.c ../event.c ../lib.c ebb.c ebb_handler.S trace.c
21*3752e453SMichael Ellerman
22*3752e453SMichael Ellermaninstruction_count_test: ../loop.S
23*3752e453SMichael Ellerman
24*3752e453SMichael Ellermanlost_exception_test: ../lib.c
25*3752e453SMichael Ellerman
26*3752e453SMichael Ellermanrun_tests: all
27*3752e453SMichael Ellerman	@-for PROG in $(PROGS); do \
28*3752e453SMichael Ellerman		./$$PROG; \
29*3752e453SMichael Ellerman	done;
30*3752e453SMichael Ellerman
31*3752e453SMichael Ellermanclean:
32*3752e453SMichael Ellerman	rm -f $(PROGS)
33