cmake: Make libbcc_bpf.so the BCC runtime
authorDaniel Xu <dxu@dxuuu.xyz>
Wed, 30 Jun 2021 22:43:06 +0000 (15:43 -0700)
committeryonghong-song <ys114321@gmail.com>
Thu, 1 Jul 2021 16:00:09 +0000 (09:00 -0700)
commit719191867a25ce07dc96f7faf9b8ccedadc7ec44
tree928013bd1e575430198321b96c182cda46ebb53f
parent9686dcba515e786971518e79c080a278efc890fb
cmake: Make libbcc_bpf.so the BCC runtime

This commit adds more functionality into libbcc_bpf.so such that
libbcc_bpf.so contains all of BCC's runtime components. "Runtime" in
this context means everything except the stuff that depends on
clang/LLVM.

libbcc_bpf.so was originally created in fa073456 ("make libbpf
standalone-ready") with (I'm guessing) the intent of creating
bcc-libbpf. That has been superceded by libbpf (separate repo) so I
don't think it should be used much anymore.

This updated libbcc_bpf.so will be used by ahead-of-time compiled
bpftrace scripts[0] to drop the dependency on LLVM/clang for the runtime
component.

[0]: https://dxuuu.xyz/aot-bpftrace.html
src/cc/CMakeLists.txt