Struct libbpf_rs::Program [−][src]
pub struct Program { /* fields omitted */ }
Expand description
Represents a loaded Program
.
This struct is not safe to clone because the underlying libbpf resource cannot currently be protected from data races.
If you attempt to attach a Program
with the wrong attach method, the attach_*
method will fail with the appropriate error.
Implementations
Attach this program to a cgroup.
Attach this program to a perf event.
Attach this program to a userspace probe.
Attach this program to a kernel probe.
Attach this program to a kernel tracepoint.
Attach this program to a raw kernel tracepoint.
Attach to an LSM hook
Attach to a fentry/fexit kernel probe
Attach a verdict/parser to a sockmap/sockhash
Auto Trait Implementations
impl RefUnwindSafe for Program
impl UnwindSafe for Program