• Brenden Blanco's avatar
    Use clang as a lib to parse the helper file live · 25245bfa
    Brenden Blanco authored
    * Add clang as a library to the .so...this adds about 16M of stuff
    * Compute the build flags for clang from the current kernel's header
      build tree. It generates a makefile on the fly and caches the minimal
      flags as an output.
    * Followup to this would be to migrate bitops.c to be #include'd as well
      as the proto.d/kprobe.d stuff.
    * For now, requires clang to be installed in /opt/local/llvm...see cmake
      files to override this.
    Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
    25245bfa
bpf_program.cc 13.4 KB