Explorar o código

ebpf: initialize AYA_LOGS with max_entries=0

This way aya will create one perf buffer for each cpu
Alessandro Decina %!s(int64=3) %!d(string=hai) anos
pai
achega
00e6d39b13
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aya-log-ebpf/src/lib.rs

+ 1 - 1
aya-log-ebpf/src/lib.rs

@@ -26,7 +26,7 @@ pub static mut AYA_LOG_BUF: PerCpuArray<LogBuf> = PerCpuArray::with_max_entries(
 
 #[doc(hidden)]
 #[map]
-pub static mut AYA_LOGS: PerfEventByteArray = PerfEventByteArray::with_max_entries(1024, 0);
+pub static mut AYA_LOGS: PerfEventByteArray = PerfEventByteArray::new(0);
 
 #[doc(hidden)]
 pub struct LogBufWriter<'a> {