4
0
Эх сурвалжийг харах

ebpf: inline write_record_header

This seems to help the verifier keep track of where we're writing into
LOG_BUF
Alessandro Decina 3 жил өмнө
parent
commit
223e2f4ea1

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