Explorar o código

ebpf: inline write_record_header

This seems to help the verifier keep track of where we're writing into
LOG_BUF
Alessandro Decina %!s(int64=2) %!d(string=hai) anos
pai
achega
bdb2750e66
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      aya-log/ebpf/aya-log-ebpf/src/lib.rs

+ 1 - 0
aya-log/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,