Selaa lähdekoodia

Fix Bpf::load_file when BTF doesn't exist

LOU Xun 3 vuotta sitten
vanhempi
commit
f1fc30411d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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(),
         )
     }