pub fn trace_context_switch<K: Kernel>(
kernel: K,
current_thread_id: usize,
new_thread_id: usize,
current_thread_state: State,
)Expand description
Traces a context switch event.
This function records a context switch event to the kernel’s trace buffer.