mirror of
https://github.com/JakeHillion/scx.git
synced 2026-12-04 02:30:50 +00:00
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.
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.