pub enum ProbeSpec {
Symbol {
library: Option<String>,
pattern: SymbolPattern,
offset: u64,
is_ret: bool,
},
SourceLocation {
file: String,
line: u32,
is_ret: bool,
},
}Expand description
A parsed probe specification.
Variants§
Symbol
Match by symbol name pattern (exact, glob, regex, or demangled).
Fields
§
library: Option<String>Optional library constraint (“libc”, “/usr/lib/foo.so”, etc.). None means auto-discover across all loaded libraries.
§
pattern: SymbolPatternThe pattern to match symbol names against.
SourceLocation
Match by source file and line number (requires DWARF debug info).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProbeSpec
impl RefUnwindSafe for ProbeSpec
impl Send for ProbeSpec
impl Sync for ProbeSpec
impl Unpin for ProbeSpec
impl UnwindSafe for ProbeSpec
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