Skip to content

Fentry & Fexit trampolines

Step 4 of 8Solution
DISPATCH
direct call
SPEED
faster than kp
FEXIT ARGS
args + retval
KERNEL
Linux 5.5+
  • kernel event trigger
  • telemetry / policy ok
  • LSM deny / PMU sample
Tracing & LSM Hooks, step 4 of 8

fentry and fexit replace kprobe breakpoint traps with a direct BTF-powered BPF trampoline call—cutting hook invocation cost dramatically while giving typed access to function arguments.

Even better, fexit sees both the original input arguments and the return value in a single hook, eliminating the extra map lookup kretprobes need to correlate entry and exit.

Type to search…

↑↓ navigate↵ selectEsc close