• Alexei Starovoitov's avatar
    get rid of version checks · f09b5b8a
    Alexei Starovoitov authored
    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: default avatarAlexei Starovoitov <ast@fb.com>
    f09b5b8a
helpers.h 14.4 KB