Преглед изворни кода

ebpf: initialize AYA_LOGS with max_entries=0

This way aya will create one perf buffer for each cpu
Alessandro Decina пре 3 година
родитељ
комит
00e6d39b13
1 измењених фајлова са 1 додато и 1 уклоњено
  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> {