Skip to main content

KernelKprobe

Type Alias KernelKprobe 

Source
pub type KernelKprobe = Kprobe<KernelRawMutex, KernelKprobeOps>;
Expand description

Concrete kprobe::Kprobe parameterized on the kernel’s RawMutex and auxiliary ops, named to match what the perf module expects.

Aliased Type§

pub struct KernelKprobe { /* private fields */ }

Methods from Deref<Target = ProbeBasic<L>>§

Source

pub fn call_pre_handler(&self, pt_regs: &mut PtRegs)

Call the pre handler function.

Source

pub fn call_post_handler(&self, pt_regs: &mut PtRegs)

Call the post handler function.

Source

pub fn call_fault_handler(&self, pt_regs: &mut PtRegs)

Call the fault handler function.

Source

pub fn call_event_callback(&self, pt_regs: &mut PtRegs)

Call the event callback function.

Source

pub fn register_event_callback( &self, callback_id: u32, callback: Arc<dyn CallBackFunc>, )

Register the event callback function.

Source

pub fn unregister_event_callback(&self, callback_id: u32)

Unregister the event callback function.

Source

pub fn disable(&self)

Disable the probe point.

Source

pub fn enable(&self)

Enable the probe point.

Source

pub fn is_enabled(&self) -> bool

Check if the probe point is enabled.

Source

pub fn symbol(&self) -> Option<&str>

Get the function name of the probe point.