Files
JakeHillion ee37964af1 scx_utils: use tempdir in test_bpf_builder_new
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
2025-04-14 14:55:22 +01:00
..
2023-11-28 15:20:01 -10:00
2023-12-12 13:02:13 -08:00
2024-06-18 00:35:43 +08:00

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.