Kaynağa Gözat

Fix Bpf::load_file when BTF doesn't exist

LOU Xun 3 yıl önce
ebeveyn
işleme
f1fc30411d
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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(),
         )
     }