Skip to main content

Module compat

Module compat 

Source
Expand description

The kernel’s sched_ext flags, 0 where it lacks one, for a scheduler’s user space to choose the ops flags it loads with, see Params::add_flags().

Structs§

ARENA_FETCH_BITOPS
The JIT lowers fetching AND, OR and XOR on arena pointers.
LIB_FEATURES
Every probed kernel feature: its name, its bit in the scx_lib_features rodata word or zero when only userspace consults it, and whether the running kernel has it.
PROG_STREAM_OPEN_SUPPORTED
prog_stream_open() works, so BPF streams can be polled.
ROOT_PREFIX
SCX_OPS_ALLOW_QUEUED_WAKEUP
SCX_OPS_ALWAYS_ENQ_IMMED
SCX_OPS_BUILTIN_IDLE_PER_NODE
SCX_OPS_ENQ_BLOCKED
SCX_OPS_ENQ_EXITING
SCX_OPS_ENQ_LAST
SCX_OPS_ENQ_MIGRATION_DISABLED
SCX_OPS_KEEP_BUILTIN_IDLE
SCX_OPS_SWITCH_PARTIAL
SCX_OPS_TID_TO_TASK
SCX_PICK_IDLE_CORE
SCX_PICK_IDLE_IN_NODE

Constants§

BPF_F_ARENA_SCALAR
BPF_PROG_LOAD flag under which a load or store through a plain scalar is an arena access, from 4c651a91bdfc in bpf-next. Not yet in the uapi header libbpf-sys 1.7 ships.
SCX_LIB_FEAT_ARENA_FETCH_BITOPS

Functions§

check_min_requirements
cond_kprobe_attach
cond_kprobe_enable
cond_kprobe_load
cond_kprobes_enable
cond_tracepoint_enable
cond_tracepoints_enable
debugfs_mount
Returns the debugfs mount point.
function_tracer_available
Whether the kernel supports function tracing (CONFIG_FUNCTION_TRACER), needed for fentry/fexit BPF programs to load or attach. /proc/sys/kernel/ftrace_enabled only exists when it’s compiled in, so its presence is a cheap proxy.
get_fs_mount
Returns the mount point for a filesystem type.
has_rodata_var
Whether an open object has the rodata variable name.
in_kallsyms
is_sched_ext_enabled
ksym_exists
malformed_scx_kfuncs
Scan the running kernel’s vmlinux BTF for scx kfuncs whose public-facing prototype still carries the implicit aux (struct bpf_prog_aux *) argument.
prog_stream_open
Open a read-only descriptor on one of prog’s streams, stream_id being BPF_STREAM_STDOUT or BPF_STREAM_STDERR. Reads block unless nonblock. poll(2) reports POLLIN for data and POLLHUP once the program is freed, with buffered data still readable. A kernel without the command fails with EINVAL.
read_enum
read_enum_any
Read an enum value from the first BTF enum type that contains it.
set_lib_features
Hand the probed features to the BPF side of an open object and log them, at info when the kernel lacks any of them and at debug otherwise.
set_rodata_var
Write value over the rodata variable name of an open object. Returns false when the object has no such variable.
struct_has_field
tracefs_mount
Returns the tracefs mount point.
tracepoint_exists
tracer_available