System information
90 System Analysis and Tuning Guide
register_jprobe()
Inserts a break-point in the specified address. The address has to be the address of
the first instruction of the probed function. When the break-point is hit, the spec-
ified handler is run. The handler should have the same argument list and return
type as the probed.
register_kretprobe()
Inserts a return probe for the specified function. When the probed function re-
turns, a specified handler is run. This function returns 0 on success, or a negative
error number on failure.
unregister_kprobe(), unregister_jprobe(),
unregister_kretprobe()
Removes the specified probe. You can use it any time after the probe has been
registered.
register_kprobes(), register_jprobes(),
register_kretprobes()
Inserts each of the probes in the specified array.
unregister_kprobes(), unregister_jprobes(),
unregister_kretprobes()
Removes each of the probes in the specified array.
disable_kprobe(), disable_jprobe(), disable_kretprobe()
Disables the specified probe temporarily.
enable_kprobe(), enable_jprobe(), enable_kretprobe()
Enables temporarily disabled probes.
6.4 Debugfs Interface
With recent Linux kernels, the Kernel probes instrumentation uses the kernel debugfs
interface. It helps you list all registered probes and globally switch all the probes on or
off.