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.

Attaches to a given trace point.

For a list of the available event categories and names, see /sys/kernel/debug/tracing/events.

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.