Module probe

kprobes interface.

Class probe

probe:enable (flag) Enables or disables the probe.
probe:new (symbol, handlers) Creates and registers a new kprobe.
probe:stop () Unregisters and stops the probe.


Class probe

Represents a registered kprobe.
probe:enable (flag)
Enables or disables the probe.

Parameters:

  • flag boolean true to enable, false to disable

Raises:

if the probe has been stopped
probe:new (symbol, handlers)
Creates and registers a new kprobe.

Parameters:

  • symbol string or lightuserdata kernel symbol name or address
  • handlers table table with optional pre and post callback functions; each receives the symbol (string or lightuserdata) and a dump closure

Returns:

    probe

Raises:

if registration fails
probe:stop ()
Unregisters and stops the probe.
generated by LDoc 1.5.0 Last updated 2026-05-09 15:39:54