summaryrefslogtreecommitdiff
path: root/tools/sched_ext/scx_central.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-12-12 16:16:57 -1000
committerTejun Heo <tj@kernel.org>2024-12-12 16:16:57 -1000
commit8da7bf2cee2735dbd2478cf07672ff0d243ce6ed (patch)
tree59d3c6d56cb736d71e4b733b68b1802669e5baef /tools/sched_ext/scx_central.c
parent4572541892ea4e1dade2e9c1313d3f8069d37f0a (diff)
tools/sched_ext: Receive updates from SCX repo
Receive tools/sched_ext updates form https://github.com/sched-ext/scx to sync userspace bits: - scx_bpf_dump_header() added which can be used to print out basic scheduler info on dump. - BPF possible/online CPU iterators added. - CO-RE enums added. The enums are autogenerated from vmlinux.h. Include the generated artifacts in tools/sched_ext to keep the Makefile simpler. - Other misc changes. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/sched_ext/scx_central.c')
-rw-r--r--tools/sched_ext/scx_central.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sched_ext/scx_central.c b/tools/sched_ext/scx_central.c
index e938156ed0a0..1e9f74525d8f 100644
--- a/tools/sched_ext/scx_central.c
+++ b/tools/sched_ext/scx_central.c
@@ -58,6 +58,7 @@ restart:
skel->rodata->central_cpu = 0;
skel->rodata->nr_cpu_ids = libbpf_num_possible_cpus();
+ skel->rodata->slice_ns = __COMPAT_ENUM_OR_ZERO("scx_public_consts", "SCX_SLICE_DFL");
while ((opt = getopt(argc, argv, "s:c:pvh")) != -1) {
switch (opt) {