pub struct EBpfMonitor { /* private fields */ }Expand description
eBPF-based syscall monitor
Implementations§
Source§impl EBpfMonitor
impl EBpfMonitor
Sourcepub fn collect_stats(&mut self) -> Result<SyscallStats>
pub fn collect_stats(&mut self) -> Result<SyscallStats>
Collect syscall statistics
Sourcepub fn add_event(&mut self, event: SyscallEvent)
pub fn add_event(&mut self, event: SyscallEvent)
Add raw syscall event (for testing/manual injection)
Sourcepub fn slow_syscall_count(&self) -> u64
pub fn slow_syscall_count(&self) -> u64
Get total slow syscalls
Sourcepub fn slowest_syscalls(&self, n: usize) -> Vec<SyscallEvent>
pub fn slowest_syscalls(&self, n: usize) -> Vec<SyscallEvent>
Get top N slowest syscalls
Auto Trait Implementations§
impl Freeze for EBpfMonitor
impl RefUnwindSafe for EBpfMonitor
impl Send for EBpfMonitor
impl Sync for EBpfMonitor
impl Unpin for EBpfMonitor
impl UnwindSafe for EBpfMonitor
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