Package: bpfcc
Version: 0.17.0-9
Severity: wishlist

Hi!

(Cc-ing the kernel team, since it might be relevant for coordination
or packaging efforts, please feel free to reassign to src:linux if
that should be more appropriate)

With the ongoing efforts around BTF and CO-RE (see
http://www.brendangregg.com/blog/2020-11-04/bpf-co-re-btf-libbpf.html),
it would be nice to have a decent and working toolchain for it with
our upcoming bullseye release.

Given that CONFIG_DEBUG_INFO_BTF support is in the works (see
#973870), it would be nice, if we could provide bcc's libbpf-tools
through a separate package.

Looking at e.g. libbpf-tools's compiled biolatency binary, it only
depends on libc6, libelf1 + zlib1g and it's less than 250kb
(stripped) total size:

| % ldd ./biolatency
|         linux-vdso.so.1 (0x00007ffcb01ef000)
|         libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x00007f348b386000)
|         libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f348b369000)
|         libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f348b1a4000)
|         /lib64/ld-linux-x86-64.so.2 (0x00007f348b3e6000)
| % ls -lah ./biolatency
| -rwxr-xr-x 1 mika mika 239K Dec 30 13:47 ./biolatency

Same for all the other tools which are currently shipped via
libbpf-tools (see https://github.com/iovisor/bcc/tree/master/libbpf-tools),
all being below 250KB and depending only on libc6, libelf1 + zlib1g.

Whereas bpfcc-tools pulls in over 200MB of of additional disk space,
bpftrace still also adds ~190MB of disk space - mainly due to their
dependency on libllvm11.

So IMO it would be great, if it's possible to ship libbpf-tools on
Debian/bullseye systems without giving it much thoughts due to
dependencies and disk space requirements.

regards
-mika-

Attachment: signature.asc
Description: Digital signature

Reply via email to