From 7f8d7057df11f41d0869f7f713d121785934adca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alessandro=C2=A0Decina?= Date: Fri, 15 Oct 2021 10:26:32 +0000 Subject: [PATCH] ebpf: initialize AYA_LOGS with max_entries=0 This way aya will create one perf buffer for each cpu --- aya-log/aya-log-ebpf/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aya-log/aya-log-ebpf/src/lib.rs b/aya-log/aya-log-ebpf/src/lib.rs index 56ae6746..5d2dd3b3 100644 --- a/aya-log/aya-log-ebpf/src/lib.rs +++ b/aya-log/aya-log-ebpf/src/lib.rs @@ -26,7 +26,7 @@ pub static mut AYA_LOG_BUF: PerCpuArray = 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> {