Bläddra i källkod

Merge pull request #1 from aquarhead/fix-load-file

Fix Bpf::load_file when BTF doesn't exist
Alessandro Decina 3 år sedan
förälder
incheckning
cdc7374
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      aya/src/bpf.rs

+ 1 - 1
aya/src/bpf.rs

@@ -87,7 +87,7 @@ impl Bpf {
                 path: path.to_owned(),
                 error,
             })?,
-            Some(Btf::from_sys_fs()?),
+            Btf::from_sys_fs().ok(),
         )
     }