mirror of
https://github.com/sched-ext/scx.git
synced 2024-12-01 07:00:23 +00:00
00e25530bc
Implement a FIFO scheduler as an example usage of scx_rustland_core. Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
12 lines
386 B
Rust
12 lines
386 B
Rust
// This software may be used and distributed according to the terms of the
|
|
// GNU General Public License version 2.
|
|
|
|
fn main() {
|
|
scx_utils::BpfBuilder::new()
|
|
.unwrap()
|
|
.enable_intf("../../../rust/scx_rustland_core/src/bpf/intf.h", "bpf_intf.rs")
|
|
.enable_skel("../../../rust/scx_rustland_core/src/bpf/main.bpf.c", "bpf")
|
|
.build()
|
|
.unwrap();
|
|
}
|