diff --git a/aya/src/programs/raw_trace_point.rs b/aya/src/programs/raw_trace_point.rs index 214bee71..4b4d1118 100644 --- a/aya/src/programs/raw_trace_point.rs +++ b/aya/src/programs/raw_trace_point.rs @@ -9,9 +9,10 @@ use crate::{ }, }; -/// A program that can be attached at a pre-defined kernel trace point, but also -/// has an access to kernel internal arguments of trace points, which -/// differentiates them from traditional tracepoint eBPF programs. +/// A program that can be attached at a pre-defined kernel trace point. +/// +/// Unlike [`TracePoint`](super::TracePoint), the kernel does not pre-process +/// the arguments before calling the program. /// /// 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 diff --git a/ebpf/aya-ebpf/src/helpers.rs b/ebpf/aya-ebpf/src/helpers.rs index ad7e0ce5..6720bc72 100644 --- a/ebpf/aya-ebpf/src/helpers.rs +++ b/ebpf/aya-ebpf/src/helpers.rs @@ -1,11 +1,13 @@ -//! This module contains kernel helper functions that may be exposed to specific BPF -//! program types. These helpers can be used to perform common tasks, query and operate on -//! data exposed by the kernel, and perform some operations that would normally be denied -//! by the BPF verifier. +//! This module contains kernel helper functions that may be exposed to specific +//! BPF program types. //! -//! Here, we provide some higher-level wrappers around the underlying kernel helpers, but -//! also expose bindings to the underlying helpers as a fall-back in case of a missing -//! implementation. +//! These helpers can be used to perform common tasks, query and operate on data +//! exposed by the kernel, and perform some operations that would normally be +//! denied by the BPF verifier. +//! +//! Here, we provide some higher-level wrappers around the underlying kernel +//! helpers, but also expose bindings to the underlying helpers as a fall-back +//! in case of a missing implementation. use core::mem::{self, MaybeUninit};