pub struct BpfRawTracePointArg {
pub name: String,
pub prog_fd: u32,
}Expand description
Arguments for attaching a BPF raw tracepoint program.
Fields§
§name: StringName of the raw tracepoint.
prog_fd: u32File descriptor of the BPF program.
Implementations§
Source§impl BpfRawTracePointArg
impl BpfRawTracePointArg
Sourcepub fn try_from_bpf_attr<F: KernelAuxiliaryOps>(
attr: &bpf_attr,
) -> LinuxResult<Self>
pub fn try_from_bpf_attr<F: KernelAuxiliaryOps>( attr: &bpf_attr, ) -> LinuxResult<Self>
Try to create a BpfRawTracePointArg from a bpf_attr structure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BpfRawTracePointArg
impl RefUnwindSafe for BpfRawTracePointArg
impl Send for BpfRawTracePointArg
impl Sync for BpfRawTracePointArg
impl Unpin for BpfRawTracePointArg
impl UnsafeUnpin for BpfRawTracePointArg
impl UnwindSafe for BpfRawTracePointArg
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more