Skip to main content

function_tracer_available

Function function_tracer_available 

Source
pub fn function_tracer_available() -> bool
Expand description

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.