Struct bcc::Uprobe [−][src]
A Uprobe
is used to configure and then attach a uprobe to a userspace
function on entry into that function. Must be attached to a BPF
struct to
be useful.
Implementations
impl Uprobe
[src]
pub fn new() -> Self
[src]
Create a new probe with the defaults. Further initialization is required before attaching.
pub fn handler(self, name: &str) -> Self
[src]
Specify the name of the probe handler within the BPF code. This is a required item.
pub fn binary<T: AsRef<Path>>(self, path: T) -> Self
[src]
Specify the path to the binary to probe. This is a required item.
pub fn symbol(self, symbol: &str) -> Self
[src]
Specify the symbol to probe. This is optional.
Typically required when not specifying the symbol address directly via address
.
pub fn address(self, addr: u64) -> Self
[src]
Specify the symbol address to probe. This is optional.
pub fn pid(self, pid: Option<pid_t>) -> Self
[src]
Specify a pid to probe. This is optional.
pub fn ref_ctr_offset(self, offset: u32) -> Self
[src]
Specify reference counter offset
pub fn attach(self, bpf: &mut BPF) -> Result<(), BccError>
[src]
Consumes the probe and attaches it to the BPF
struct. May return an
error if there is a incomplete configuration or error while loading or
attaching the probe.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Uprobe
impl Send for Uprobe
impl Sync for Uprobe
impl Unpin for Uprobe
impl UnwindSafe for Uprobe
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,