ebpf: initialize AYA_LOGS with max_entries=0

This way aya will create one perf buffer for each cpu
pull/350/head
Alessandro Decina 3 years ago committed by Dave Tucker
parent 2800454763
commit 7f8d7057df

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

Loading…
Cancel
Save