pub struct ProbeBasic<L: RawMutex + 'static> { /* private fields */ }Expand description
The basic information of a probe.
Implementations§
Source§impl<L: RawMutex + 'static> ProbeBasic<L>
impl<L: RawMutex + 'static> 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.
Trait Implementations§
Source§impl<L: RawMutex + 'static> Debug for ProbeBasic<L>
impl<L: RawMutex + 'static> Debug for ProbeBasic<L>
Source§impl<L: RawMutex + 'static, F: KprobeAuxiliaryOps> From<ProbeBuilder<F>> for ProbeBasic<L>
impl<L: RawMutex + 'static, F: KprobeAuxiliaryOps> From<ProbeBuilder<F>> for ProbeBasic<L>
Source§fn from(value: ProbeBuilder<F>) -> Self
fn from(value: ProbeBuilder<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<L> !Freeze for ProbeBasic<L>
impl<L> !RefUnwindSafe for ProbeBasic<L>
impl<L> !UnwindSafe for ProbeBasic<L>
impl<L> Send for ProbeBasic<L>where
L: Send,
impl<L> Sync for ProbeBasic<L>where
L: Sync,
impl<L> Unpin for ProbeBasic<L>where
L: Unpin,
impl<L> UnsafeUnpin for ProbeBasic<L>where
L: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more