Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: Add support for reading kernel headers from /proc
BCC right now relies on the filesystem to have kernel headers however this is quite a hindrance to embedded and Android systems, and even distros that may not have the kernel headers for the running kernel. This patch makes use of the new /proc/kheaders.tar.xz archive that is proposed upstream: https://lore.kernel.org/patchwork/patch/1059427/ The approach involves creating a temporary directory containing the headers and compiling from there. It is used as a last resort if headers could not be found by other means. Testing shows this adds around 400ms to start up time of BCC, however the cost is 0 if the headers already exists in /lib or was previously extracted into /tmp directory. Signed-off-by: Joel Fernandes (Google) <[email protected]>
- Loading branch information