Skip to main content

Module bpf

Module bpf 

Source

Re-exportsยง

use std::mem::MaybeUninit; ๐Ÿ”’
use crate::bpf_intf; ๐Ÿ”’
use std::ffi::CStr; ๐Ÿ”’
use std::ffi::c_int; ๐Ÿ”’
use std::ffi::c_ulong; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Once; ๐Ÿ”’
use std::sync::atomic::AtomicBool; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use anyhow::Context; ๐Ÿ”’
use anyhow::Result; ๐Ÿ”’
use anyhow::bail; ๐Ÿ”’
use plain::Plain; ๐Ÿ”’
use procfs::process::all_processes; ๐Ÿ”’
use libbpf_rs::OpenObject; ๐Ÿ”’
use libbpf_rs::ProgramInput; ๐Ÿ”’
use libbpf_rs::libbpf_sys::bpf_object_open_opts; ๐Ÿ”’
use libc::c_char; ๐Ÿ”’
use libc::pthread_self; ๐Ÿ”’
use libc::pthread_setschedparam; ๐Ÿ”’
use libc::sched_param; ๐Ÿ”’
use scx_utils::Topology; ๐Ÿ”’
use scx_utils::UserExitInfo; ๐Ÿ”’
use scx_utils::compat; ๐Ÿ”’
use scx_utils::scx_ops_attach; ๐Ÿ”’
use scx_utils::scx_ops_load; ๐Ÿ”’
use scx_utils::scx_ops_open; ๐Ÿ”’
use scx_utils::uei_exited; ๐Ÿ”’
use scx_utils::uei_report; ๐Ÿ”’
use scx_rustland_core::ALLOCATOR; ๐Ÿ”’
use crate::bpf_intf::*; ๐Ÿ”’
use crate::bpf_skel::*; ๐Ÿ”’

Structsยง

AlignedBuffer ๐Ÿ”’
BpfScheduler
DispatchedTask
EnqueuedMessage ๐Ÿ”’
QueuedTask
High-level Rust abstraction to interact with a generic sched-ext BPF component.

Constantsยง

BUFSIZE ๐Ÿ”’
RL_CPU_ANY
SCHED_EXT ๐Ÿ”’
TASK_COMM_LEN ๐Ÿ”’

Staticsยง

BUF ๐Ÿ”’
SET_HANDLER ๐Ÿ”’

Functionsยง

set_ctrlc_handler ๐Ÿ”’