Skip to main content

begin_syscall_trace_for_testing

Function begin_syscall_trace_for_testing 

Source
pub fn begin_syscall_trace_for_testing(name: &'static str) -> SyscallTraceScope
Expand description

Opens a syscall duration on the current thread even if CATEGORY_STARNIX is disabled, so tests can check that code ends it. Drop the returned scope to clear it.