Fix Bpf::load_file when BTF doesn't exist

pull/1/head
LOU Xun 3 years ago
parent 94b5e2e4e6
commit f1fc30411d
No known key found for this signature in database
GPG Key ID: 05DAC4F7AFA6B90F

@ -87,7 +87,7 @@ impl Bpf {
path: path.to_owned(),
error,
})?,
Some(Btf::from_sys_fs()?),
Btf::from_sys_fs().ok(),
)
}

Loading…
Cancel
Save