Browse Source

aya-log, aya-log-common: temporarily revert to old map API so we can release

Alessandro Decina 2 years ago
parent
commit
0d040d2290
3 changed files with 3 additions and 3 deletions
  1. 1 1
      aya-log-common/Cargo.toml
  2. 1 1
      aya-log/Cargo.toml
  3. 1 1
      aya-log/src/lib.rs

+ 1 - 1
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]

+ 1 - 1
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"

+ 1 - 1
aya-log/src/lib.rs

@@ -90,7 +90,7 @@ impl BpfLogger {
         logger: T,
     ) -> Result<BpfLogger, Error> {
         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)?;