Expand description
A Rust library for dynamic kernel probing (kprobes and kretprobes). ! This library provides a safe and ergonomic interface for registering and managing kprobes and kretprobes in a kernel environment. ! It supports multiple architectures, including x86_64, riscv64, and loongarch64. ! # Features
- Register and unregister kprobes and kretprobes.
- Support for pre-handler and post-handler functions.
- Safe management of probe points and handlers.
- Architecture-specific implementations for handling breakpoints and single-stepping.
Modules§
- retprobe
- The retprobe implementation for the current architecture.
Structs§
- Probe
- The x86_64 implementation of Probe.
- Probe
Basic - The basic information of a probe.
- Probe
Builder - The builder for creating a kprobe.
- Probe
Manager - A manager for kprobes.
- PtRegs
- The CPU register state for x86_64 architecture.
- X86Probe
Point - The probe point for x86_64 architecture.
Enums§
- UniProbe
- An enum representing either a kprobe or a kretprobe.
Traits§
- Call
Back Func - The callback function type for events.
- Kprobe
Auxiliary Ops - The auxiliary operations required for kprobes.
- Probe
Data - The user data associated with a probe point.
Functions§
- kprobe_
handler_ from_ break - Run kprobe which has been registered on the address
- kprobe_
handler_ from_ debug - Run kprobe which has been registered on the address
- register_
kprobe - Register a kprobe.
- register_
kretprobe - Register a kretprobe.
- register_
uprobe - Register a uprobe.
- unregister_
kprobe - Unregister a kprobe.
- unregister_
kretprobe - Unregister a kretprobe.
- unregister_
uprobe - Unregister a uprobe.
- uprobe_
handler_ from_ break - Run uprobe which has been registered on the address
- uprobe_
handler_ from_ debug - Run uprobe which has been registered on the address
Type Aliases§
- Kprobe
- The kprobe structure for the current architecture.
- Kretprobe
- The kretprobe structure for the current architecture.
- Kretprobe
Builder - The kretprobe builder for the current architecture.
- Probe
Handler Func - The type of the probe handler function.
- Probe
Point - The probe point structure for the current architecture.
- Probe
Point List - A list of kprobe points.
- Uprobe
- The uprobe structure for the current architecture.
- Uretprobe
- The uretprobe structure for the current architecture.