scx/rust
Andrea Righi 887812197c scx_utils: report an explicit error when another scheduler is running
If another scheduler is already running, the Rust schedulers based on
scx_utils are reporting an error like the following, that can be a bit
difficult to understand:

 Error: Failed to attach struct ops

 Caused by:
     bpf call "libbpf_rs::map::Map::attach_struct_ops::{{closure}}" returned NULL

Change the scx_ops_attach macro to check if another sched_ext scheduler
is running and in that case report a more explicit error.

With this applied:

 $ sudo scx_rustland
 Error: another sched_ext scheduler is already running

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-05-10 11:20:19 +02:00
..
scx_rustland_core scx_rustland_core: use a BPF_MAP_TYPE_USER_RINGBUF to dispatch tasks 2024-05-08 22:16:53 +02:00
scx_utils scx_utils: report an explicit error when another scheduler is running 2024-05-10 11:20:19 +02:00
meson.build rust: introduce scx_rustland_core crate 2024-02-28 17:49:44 +01:00