Просмотр исходного кода

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

Fix Bpf::load_file when BTF doesn't exist
Alessandro Decina 3 лет назад
Родитель
Сommit
cdc7374
1 измененных файлов с 1 добавлено и 1 удалено
  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(),
         )
     }