Browse Source

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

Fix Bpf::load_file when BTF doesn't exist
Alessandro Decina 3 năm trước cách đây
mục cha
commit
cdc7374
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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(),
         )
     }