xref: /xnu-11215.61.5/tests/sched/Makefile (revision 4f1223e81cd707a65cc109d0b8ad6653699da3c4)
1*4f1223e8SApple OSS DistributionsSCHED_UTILS = sched/sched_test_utils.c
2*4f1223e8SApple OSS DistributionsSCHED_UTILS_FLAGS = -ldarwintest_utils -Wno-format-nonliteral -Wno-cast-qual
3*4f1223e8SApple OSS DistributionsEXCLUDED_SOURCES += $(SCHED_UTILS)
4*4f1223e8SApple OSS Distributions# SCHED_UTILS depends on -ldarwintest_utils to build
5*4f1223e8SApple OSS Distributions
6*4f1223e8SApple OSS Distributionssched/all_cores_running: OTHER_LDFLAGS += $(SCHED_UTILS_FLAGS)
7*4f1223e8SApple OSS Distributionssched/all_cores_running: $(SCHED_UTILS)
8*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/all_cores_running
9*4f1223e8SApple OSS Distributions
10*4f1223e8SApple OSS Distributions
11*4f1223e8SApple OSS Distributionssched/cluster_bound_threads: OTHER_LDFLAGS += $(SCHED_UTILS_FLAGS)
12*4f1223e8SApple OSS Distributionssched/cluster_bound_threads: $(SCHED_UTILS)
13*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/cluster_bound_threads
14*4f1223e8SApple OSS Distributions
15*4f1223e8SApple OSS Distributionsinclude sched/sched_test_harness/Makefile
16*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/clutch_runqueue
17*4f1223e8SApple OSS Distributions
18*4f1223e8SApple OSS Distributionssched/contextswitch: OTHER_LDFLAGS += $(SCHED_UTILS_FLAGS)
19*4f1223e8SApple OSS Distributionssched/contextswitch: $(SCHED_UTILS)
20*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/contextswitch
21*4f1223e8SApple OSS Distributions
22*4f1223e8SApple OSS Distributionssched/enabled_policy: OTHER_LDFLAGS += $(SCHED_UTILS_FLAGS)
23*4f1223e8SApple OSS Distributionssched/enabled_policy: $(SCHED_UTILS)
24*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/enabled_policy
25*4f1223e8SApple OSS Distributions
26*4f1223e8SApple OSS Distributionssched/overloaded_runqueue: CODE_SIGN_ENTITLEMENTS = sched/overloaded_runqueue.entitlements
27*4f1223e8SApple OSS Distributionssched/overloaded_runqueue: OTHER_CFLAGS += -DENTITLED=1
28*4f1223e8SApple OSS Distributionssched/overloaded_runqueue: OTHER_LDFLAGS += -framework ktrace $(SCHED_UTILS_FLAGS)
29*4f1223e8SApple OSS Distributionssched/overloaded_runqueue: $(SCHED_UTILS)
30*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/overloaded_runqueue
31*4f1223e8SApple OSS Distributions
32*4f1223e8SApple OSS Distributionssched/thread_group_fairness: CODE_SIGN_ENTITLEMENTS = sched/thread_group_fairness.entitlements
33*4f1223e8SApple OSS Distributionssched/thread_group_fairness: OTHER_CFLAGS += -DENTITLED=1
34*4f1223e8SApple OSS Distributionssched/thread_group_fairness: OTHER_LDFLAGS += -framework perfdata $(SCHED_UTILS_FLAGS)
35*4f1223e8SApple OSS Distributionssched/thread_group_fairness: $(SCHED_UTILS)
36*4f1223e8SApple OSS Distributionssched/thread_group_fairness: sched/thread_group_fairness_workload_config.h
37*4f1223e8SApple OSS Distributionssched/thread_group_fairness_workload_config.h: sched/thread_group_fairness_workload_config.plist
38*4f1223e8SApple OSS Distributions	xxd -i $< > $@
39*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/thread_group_fairness
40*4f1223e8SApple OSS Distributions
41*4f1223e8SApple OSS Distributionssched/thread_group_flags: CODE_SIGN_ENTITLEMENTS = sched/thread_group_flags.entitlements
42*4f1223e8SApple OSS Distributionssched/thread_group_flags: OTHER_CFLAGS += -DENTITLED=1
43*4f1223e8SApple OSS Distributionssched/thread_group_flags: OTHER_LDFLAGS += -framework ktrace
44*4f1223e8SApple OSS Distributionssched/thread_group_flags: sched/thread_group_flags_workload_config.h
45*4f1223e8SApple OSS Distributionssched/thread_group_flags_workload_config.h: sched/thread_group_flags_workload_config.plist
46*4f1223e8SApple OSS Distributions	xxd -i $< > $@
47*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/thread_group_flags
48*4f1223e8SApple OSS Distributions
49*4f1223e8SApple OSS Distributionssched/yield_aggressor: OTHER_CFLAGS += -Wno-atomic-implicit-seq-cst
50*4f1223e8SApple OSS Distributionssched/yield_aggressor: OTHER_LDFLAGS += -framework perfdata $(SCHED_UTILS_FLAGS)
51*4f1223e8SApple OSS Distributionssched/yield_aggressor: $(SCHED_UTILS)
52*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/yield_aggressor
53*4f1223e8SApple OSS Distributions
54*4f1223e8SApple OSS Distributionssched/zero_to_n_tests: OTHER_LDFLAGS += -framework perfdata $(SCHED_UTILS_FLAGS)
55*4f1223e8SApple OSS DistributionsSCHED_TARGETS += sched/zero_to_n_tests
56*4f1223e8SApple OSS Distributions
57*4f1223e8SApple OSS Distributions# Convenience command for building all of the test targets under sched/
58*4f1223e8SApple OSS Distributions.PHONY: sched/all
59*4f1223e8SApple OSS Distributionssched/all: $(SCHED_TARGETS)
60