diff --git a/aya-log-common/Cargo.toml b/aya-log-common/Cargo.toml index e2ea8de9..77584c6a 100644 --- a/aya-log-common/Cargo.toml +++ b/aya-log-common/Cargo.toml @@ -14,7 +14,7 @@ default = [] userspace = [ "aya" ] [dependencies] -aya = { path = "../aya", version = "0.11.0", optional=true } +aya = { version = "0.11.0", optional=true } num_enum = { version = "0.5", default-features = false } [lib] diff --git a/aya-log/Cargo.toml b/aya-log/Cargo.toml index 97424297..f0f8351c 100644 --- a/aya-log/Cargo.toml +++ b/aya-log/Cargo.toml @@ -11,7 +11,7 @@ documentation = "https://docs.rs/aya-log" edition = "2021" [dependencies] -aya = { path = "../aya", version = "0.11.0", features=["async_tokio"] } +aya = { version = "0.11.0", features=["async_tokio"] } aya-log-common = { path = "../aya-log-common", version = "0.1.12-dev.0", features=["userspace"] } thiserror = "1" log = "0.4" diff --git a/aya-log/src/lib.rs b/aya-log/src/lib.rs index 53f693bb..1f191c51 100644 --- a/aya-log/src/lib.rs +++ b/aya-log/src/lib.rs @@ -90,7 +90,7 @@ impl BpfLogger { logger: T, ) -> Result { let logger = Arc::new(logger); - let mut logs: AsyncPerfEventArray<_> = bpf.take_map("AYA_LOGS").unwrap().try_into()?; + let mut logs: AsyncPerfEventArray<_> = bpf.map_mut("AYA_LOGS").unwrap().try_into()?; for cpu_id in online_cpus().map_err(Error::InvalidOnlineCpu)? { let mut buf = logs.open(cpu_id, None)?;