Enum oxidebpf::ProgramType
source · [−]pub enum ProgramType {
Unspec,
Kprobe,
Kretprobe,
Uprobe,
Uretprobe,
Tracepoint,
RawTracepoint,
}
Expand description
An enum of the different BPF program types.
Variants
Unspec
Unspecified program type.
Kprobe
A kprobe that can be attached at the function (or syscall) start or offset.
Kretprobe
A kprobe that can be attached at the return of a function (or syscall).
Uprobe
A uprobe that can be attached to a function in a program or pid at the start or offset.
Uretprobe
A uprobe that can be attached to the return of a function in a program or pid.
Tracepoint
Stable (in theory) kernel static instrumentation points.
RawTracepoint
A tracepoint with raw arguments accessible, without TP_fast_assign()
applied.
Trait Implementations
sourceimpl Clone for ProgramType
impl Clone for ProgramType
sourcefn clone(&self) -> ProgramType
fn clone(&self) -> ProgramType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProgramType
impl Debug for ProgramType
sourceimpl Default for ProgramType
impl Default for ProgramType
sourceimpl Display for ProgramType
impl Display for ProgramType
sourceimpl From<&ProgramType> for u32
impl From<&ProgramType> for u32
sourcefn from(value: &ProgramType) -> u32
fn from(value: &ProgramType) -> u32
Converts to this type from the input type.
sourceimpl From<&str> for ProgramType
impl From<&str> for ProgramType
sourcefn from(value: &str) -> ProgramType
fn from(value: &str) -> ProgramType
Converts to this type from the input type.
sourceimpl PartialEq<ProgramType> for ProgramType
impl PartialEq<ProgramType> for ProgramType
sourcefn eq(&self, other: &ProgramType) -> bool
fn eq(&self, other: &ProgramType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for ProgramType
impl StructuralPartialEq for ProgramType
Auto Trait Implementations
impl RefUnwindSafe for ProgramType
impl Send for ProgramType
impl Sync for ProgramType
impl Unpin for ProgramType
impl UnwindSafe for ProgramType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more