Skip to content

Commit

Permalink
Update bpf.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky authored Dec 27, 2024
1 parent e6dd48a commit 472a5e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aya/src/bpf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,9 @@ impl<'a> EbpfLoader<'a> {

/// Loads eBPF bytecode from a buffer.
///
/// The buffer will need to be aligned to 4 bytes.
/// If you are bundling this statically into your binary, it is recommended that you do so
/// using [`include_bytes_aligned`](crate::include_bytes_aligned).
/// The buffer needs to be 4-bytes aligned. If you are bundling the bytecode statically
/// into your binary, it is recommended that you do so using
/// [`include_bytes_aligned`](crate::include_bytes_aligned).
///
/// # Examples
///
Expand Down Expand Up @@ -902,9 +902,9 @@ impl Ebpf {
/// [maps](crate::maps) defined in it. If the kernel supports [BTF](Btf)
/// debug info, it is automatically loaded from `/sys/kernel/btf/vmlinux`.
///
/// The buffer will need to be aligned to 4 bytes.
/// If you are bundling this statically into your binary, it is recommended that you do so
/// using [`include_bytes_aligned`](crate::include_bytes_aligned).
/// The buffer needs to be 4-bytes aligned. If you are bundling the bytecode statically
/// into your binary, it is recommended that you do so using
/// [`include_bytes_aligned`](crate::include_bytes_aligned).
///
/// For more loading options, see [EbpfLoader].
///
Expand Down

0 comments on commit 472a5e4

Please sign in to comment.