Browse Source

ebpf: initialize AYA_LOGS with max_entries=0

This way aya will create one perf buffer for each cpu
Alessandro Decina 3 years ago
parent
commit
7f8d7057df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      aya-log/aya-log-ebpf/src/lib.rs

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