Struct bcc::Kprobe [−][src]
A Kprobe
is used to configure and then attach a probe to a kernel function
which runs on entry into that function. Must be attached to be useful.
Implementations
impl Kprobe
[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
Auto Trait Implementations
impl RefUnwindSafe for Kprobe
impl Send for Kprobe
impl Sync for Kprobe
impl Unpin for Kprobe
impl UnwindSafe for Kprobe
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>,