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
preandpostcallback functions; each receives the symbol (string or lightuserdata) and adumpclosure
Returns:
Raises:
if registration fails - probe:stop ()
- Unregisters and stops the probe.