2024-07-12 21:35:14 +01:00
|
|
|
# scx_flatcg and scx_pair are temporarily excluded until cgroup support
|
|
|
|
# lands in the upstream kernel.
|
|
|
|
c_scheds = ['scx_simple', 'scx_qmap', 'scx_central', 'scx_userland', 'scx_nest']
|
2023-11-28 00:47:04 +00:00
|
|
|
|
|
|
|
foreach sched: c_scheds
|
2023-12-15 22:07:51 +00:00
|
|
|
thread_dep = dependency('threads')
|
2023-11-28 00:47:04 +00:00
|
|
|
bpf_o = gen_bpf_o.process(sched + '.bpf.c', extra_args: bpf_includes)
|
|
|
|
bpf_skel = gen_bpf_skel.process(bpf_o)
|
|
|
|
executable(sched, [bpf_skel, sched + '.c'],
|
|
|
|
include_directories: [user_c_includes],
|
2024-04-04 09:38:10 +01:00
|
|
|
dependencies: [kernel_dep, libbpf_dep, thread_dep],
|
2023-12-01 23:37:28 +00:00
|
|
|
install: true)
|
2023-11-28 00:47:04 +00:00
|
|
|
endforeach
|