Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1ad2656 ("Add support_kfunc function to BPF object") added new functions to libbcc-py but didn't set the restype and argstypes for those. It's causing the `bpf_has_kernel_btf` function to return True in systems without support for BTF, making tools like opensnoop, klockstat and any other using kfuncs unusable in those systems. The following Python script reproduces the problem: ``` from bcc import BPF print(BPF.support_kfunc()) ``` Signed-off-by: Mauricio Vásquez <[email protected]>
- Loading branch information