Quellcode durchsuchen

Fix Bpf::load_file when BTF doesn't exist

LOU Xun vor 3 Jahren
Ursprung
Commit
f1fc30411d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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(),
         )
     }