get rid of version checks
version checks don't work at all on kernels with backported bpf bits
they also fail when /usr/include/linux/bpf.h doesn't match loaded
kernel.
Fix these issues by embedding bpf.h into libbcc.so and force load it
in clang, so we can remove all version checks and rely on verifier
complaining on unknown function call.
Later patch can make verifier errors less cryptic by converting
'unknown call 12' to strings.
while at it update bpf.h to the latest.
Signed-off-by: Alexei Starovoitov <ast@fb.com>
Showing
Please register or sign in to comment