Struct aya::programs::TracePoint [−][src]
pub struct TracePoint { /* fields omitted */ }
Expand description
A program that can be attached at a pre-defined kernel trace point.
The kernel provides a set of pre-defined trace points that eBPF programs can
be attached to. See /sys/kernel/debug/tracing/events
for a list of which
events can be traced.
Examples
use std::convert::TryInto; use aya::programs::TracePoint; let prog: &mut TracePoint = bpf.program_mut("trace_context_switch")?.try_into()?; prog.load()?; prog.attach("sched", "sched_switch")?;
Implementations
Loads the program inside the kernel.
See also Program::load
.
Trait Implementations
type Error = ProgramError
type Error = ProgramError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = ProgramError
type Error = ProgramError
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TracePoint
impl !Send for TracePoint
impl !Sync for TracePoint
impl Unpin for TracePoint
impl !UnwindSafe for TracePoint