Struct bcc::Kretprobe[][src]

pub struct Kretprobe { /* fields omitted */ }

A Kretprobe is used to configure and then attach a probe to a kernel function which runs on return from that function. Must be attached to be useful.

Implementations

impl Kretprobe[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 function(self, name: &str) -> Self[src]

Specify the name of the kernel function to be probed. This is a required function.

pub fn attach(self, bpf: &mut BPF) -> Result<(), BccError>[src]

Consumes the probe and attaches it. May return an error if there is a incomplete or invalid configuration or other error while loading or attaching the probe.

Trait Implementations

impl Default for Kretprobe[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.