From 223e2f4ea1ef8f034f1c5121a99277110fa10e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Sat, 16 Apr 2022 10:10:56 +0000 Subject: [PATCH] ebpf: inline write_record_header This seems to help the verifier keep track of where we're writing into LOG_BUF --- ebpf/aya-log-ebpf/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ebpf/aya-log-ebpf/src/lib.rs b/ebpf/aya-log-ebpf/src/lib.rs index 633fa52a..33210970 100644 --- a/ebpf/aya-log-ebpf/src/lib.rs +++ b/ebpf/aya-log-ebpf/src/lib.rs @@ -96,6 +96,7 @@ impl WriteToBuf for str { #[allow(clippy::result_unit_err)] #[doc(hidden)] +#[inline(always)] pub fn write_record_header( buf: &mut [u8], target: &str,