mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-21 08:49:06 +08:00
* tools/libbpf: support bigger BTF data sizes While it's understandable why kernel limits number of BTF types to 65535 and size of string section to 64KB, in libbpf as user-space library it's too restrictive. E.g., pahole converting DWARF to BTF type information for Linux kernel generates more than 3 million BTF types and more than 3MB of strings, before deduplication. So to allow btf__dedup() to do its work, we need to be able to load bigger BTF sections using btf__new(). Singed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> * sync: latest libbpf changes from kernel Syncing latest libbpf commits from kernel repository. Baseline commit: 789f6bab849e04ea029c09b81dc8401dc0268cf9 Checkpoint commit: 5aab392c55c96f9bb26d9294f965f156a87ee81c Andrii Nakryiko (1): tools/libbpf: support bigger BTF data sizes src/btf.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) -- 2.17.1
2 lines
41 B
Plaintext
2 lines
41 B
Plaintext
5aab392c55c96f9bb26d9294f965f156a87ee81c
|