iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

Reducing `libbcc.so` Size After Cross-Compiling BCC with Yocto for Embedded Devices #5059

Open zhyantao opened 2 months ago

zhyantao commented 2 months ago

I have cross-compiled bcc-0.13.0 using Yocto, and after completion, I found that the file size of libbcc.so is 694MB, which is excessively large for an embedded device. Are there any compiler options that can reduce the size of libbcc.so?