Skip to main content

trace_sched_switch

Function trace_sched_switch 

Source
pub fn trace_sched_switch(__arg0: SchedSwitchRecord) -> Option<fn()>
Expand description

Captures a context-switch trace record without allocation or rq reentry.

The outgoing rq lock may remain held. An optional returned notification runs exactly once in incoming switch completion, after scheduler locks and CPU-local borrows are released, with local IRQs still disabled.