From 70602350d7fc7ec78d11c5b7f807936c7a90a079 Mon Sep 17 00:00:00 2001 From: pdliyan Date: Tue, 12 Sep 2023 20:34:45 +0800 Subject: [PATCH] fix aya_log. --- test/integration-test/src/tests/stack_argument.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration-test/src/tests/stack_argument.rs b/test/integration-test/src/tests/stack_argument.rs index fb8109bf7..71ce36809 100644 --- a/test/integration-test/src/tests/stack_argument.rs +++ b/test/integration-test/src/tests/stack_argument.rs @@ -1,6 +1,7 @@ use aya::{ include_bytes_aligned, maps::AsyncPerfEventArray, programs::UProbe, util::online_cpus, Bpf, }; +use aya_log::BpfLogger; use bytes::BytesMut; use log::warn; use tokio::task; @@ -36,6 +37,7 @@ pub extern "C" fn trigger_stack_argument( #[tokio::test] async fn stack_argument() { + event_logger::init(); let mut bpf = Bpf::load(crate::STACK_ARGUMENT).unwrap(); if let Err(e) = BpfLogger::init(&mut bpf) {