mirror of
https://github.com/sched-ext/scx.git
synced 2026-12-03 23:30:51 +00:00
test_bpf_builder_new ends up creating some files in the directory specified by the environment variable OUT_DIR. This fails if, for example, you use a read only VM that can see that directory but not write to it. Use `tempfile::tempdir` to set this variable to a writeable temporary directory and clean it up automatically at the end of the test. Example files created: ``` $OUT_DIR/scx_utils-bpf_h $OUT_DIR/scx_utils-bpf_h/vmlinux.h $OUT_DIR/scx_utils-bpf_h/.gitignore $OUT_DIR/scx_utils-bpf_h/lib $OUT_DIR/scx_utils-bpf_h/lib/cpumask.h $OUT_DIR/scx_utils-bpf_h/lib/percpu.h $OUT_DIR/scx_utils-bpf_h/lib/sdt_task.h $OUT_DIR/scx_utils-bpf_h/bpf-compat $OUT_DIR/scx_utils-bpf_h/bpf-compat/gnu $OUT_DIR/scx_utils-bpf_h/bpf-compat/gnu/stubs.h ``` Test plan: - `cargo test` - CI
Utility collection for sched_ext schedulers
sched_ext is a Linux kernel feature which enables implementing kernel thread schedulers in BPF and dynamically loading them.
This crate is a collection of utilities for sched_ext scheduler implementations which use Rust for userspace component. This enables implementing hot paths in BPF while offloading colder and more complex operations to userspace Rust code which can be significantly more convenient and powerful.
Please see documentation for more details.