Update bpf.rs

reviewable/pr1119/r3
Michal Rostecki 4 months ago committed by Michal Rostecki
parent 4063006bb7
commit d616946069

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

Loading…
Cancel
Save