summaryrefslogtreecommitdiff
path: root/tools/sched_ext/scx_flatcg.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_flatcg.c
parent4572541892ea4e1dade2e9c1313d3f8069d37f0a (diff)
downloadlinux-8da7bf2cee2735dbd2478cf07672ff0d243ce6ed.tar.gz
linux-8da7bf2cee2735dbd2478cf07672ff0d243ce6ed.tar.bz2
linux-8da7bf2cee2735dbd2478cf07672ff0d243ce6ed.zip
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_flatcg.c')
-rw-r--r--tools/sched_ext/scx_flatcg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sched_ext/scx_flatcg.c b/tools/sched_ext/scx_flatcg.c
index 5d24ca9c29d9..6dd423eeb4ff 100644
--- a/tools/sched_ext/scx_flatcg.c
+++ b/tools/sched_ext/scx_flatcg.c
@@ -137,6 +137,7 @@ restart:
skel = SCX_OPS_OPEN(flatcg_ops, scx_flatcg);
skel->rodata->nr_cpus = libbpf_num_possible_cpus();
+ skel->rodata->cgrp_slice_ns = __COMPAT_ENUM_OR_ZERO("scx_public_consts", "SCX_SLICE_DFL");
while ((opt = getopt(argc, argv, "s:i:dfvh")) != -1) {
double v;