Files
Violet Purcell 47622a1081 scx_utils: cast ioctl opcodes to libc::Ioctl
The opcode type that ioctl() accepts can differ between platforms,
namely between glibc where it accepts an unsigned 32-bit int, and musl
where it accepts a signed 32-bit int. Either way, the underlying value
of the opcode is a 32-bit integer. Currently, bindgen is storing the
enum values defined in perf_bindings.h as u32, which is fine for glibc,
but not musl (which wants an i32). This commit casts the opcodes to
libc::Ioctl before passing them to fix this.
2025-05-11 16:08:49 -04:00
..
2023-11-28 15:20:01 -10:00
2025-04-24 11:13:58 +02:00
2023-12-12 13:02:13 -08:00
2025-04-24 11:13:58 +02: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.