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>>§
Sourcepub fn call_pre_handler(&self, pt_regs: &mut PtRegs)
pub fn call_pre_handler(&self, pt_regs: &mut PtRegs)
Call the pre handler function.
Sourcepub fn call_post_handler(&self, pt_regs: &mut PtRegs)
pub fn call_post_handler(&self, pt_regs: &mut PtRegs)
Call the post handler function.
Sourcepub fn call_fault_handler(&self, pt_regs: &mut PtRegs)
pub fn call_fault_handler(&self, pt_regs: &mut PtRegs)
Call the fault handler function.
Sourcepub fn call_event_callback(&self, pt_regs: &mut PtRegs)
pub fn call_event_callback(&self, pt_regs: &mut PtRegs)
Call the event callback function.
Sourcepub fn register_event_callback(
&self,
callback_id: u32,
callback: Arc<dyn CallBackFunc>,
)
pub fn register_event_callback( &self, callback_id: u32, callback: Arc<dyn CallBackFunc>, )
Register the event callback function.
Sourcepub fn unregister_event_callback(&self, callback_id: u32)
pub fn unregister_event_callback(&self, callback_id: u32)
Unregister the event callback function.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if the probe point is enabled.