Re-exportsΒ§
pub use bpf_intf::*;
ModulesΒ§
StructsΒ§
- BpfLinks
- BpfMaps
- BpfProgs
- BpfSkel
- BpfSkel
Builder - CpuTimes π
- Open
BpfMaps - Open
BpfProgs - Open
BpfSkel - Opts π
- Scheduler π
- Struct
Ops
EnumsΒ§
- Powermode π
ConstantsΒ§
- DYNAMIC_
THRESHOLD_ πINIT_ VALUE - Initial value for the dynamic threshold (in BPF units).
- DYNAMIC_
THRESHOLD_ πRATE_ HIGH - Target event rate (per second) above which we consider migrations/sticky dispatches too high.
- DYNAMIC_
THRESHOLD_ πRATE_ LOW - Target event rate (per second) below which we consider migrations/sticky dispatches too low.
- DYNAMIC_
THRESHOLD_ πSCALE_ MAX - Maximum scale factor when far from target (fast convergence when initial threshold is way off).
- DYNAMIC_
THRESHOLD_ πSCALE_ MIN - Minimum scale factor when just outside the target band (slow convergence near optimal).
- DYNAMIC_
THRESHOLD_ πSLOPE_ HIGH - Slope for βtoo highβ case: scale grows with (rate/HIGH - 1) so we step much harder when rate is many times over target.
- DYNAMIC_
THRESHOLD_ πSLOPE_ LOW - Slope for βtoo lowβ case: scale grows with deficit so we step harder when rate is near zero.
- PERF_
MAP_ πSTRIDE - Must match lib/pmu.bpf.c SCX_PMU_STRIDE for perf_events map key layout.
- SCHEDULER_
NAME π
FunctionsΒ§
- adjust_
dynamic_ πthreshold - dynamic_
threshold_ πscale - get_
primary_ πcpus - main π
- parse_
cpu_ list - parse_
hex π - Parse hexadecimal value from command line (requires β0xβ prefix, e.g., β0x2β)
- setup_
perf_ πevents - Setup performance counter events for a specific CPU and counter index. counter_idx 0 = migration event (-e), 1 = sticky event (-y).