libbpf / libbpf-bootstrap

Scaffolding for BPF application development with libbpf and BPF CO-RE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BPF program load failed: Argument list too long

xd121614 opened this issue · comments

When I run my program in my env that kernel-version not support CONFIG_DEBUG_INFO_BTF, error occurs:
...
libbpf: Kernel doesn't support BTF, skipping uploading it.
libbpf: map 'pb': created successfully, fd=3
libbpf: map 'heap': created successfully, fd=4
libbpf: map 'sock_path_heap': created successfully, fd=5
libbpf: map 'sock_path_filter': created successfully, fd=6
libbpf: map 'ktap_uni.rodata': skipped auto-creating...
libbpf: sec 'kprobe/unix_stream_sendmsg': found 211 CO-RE relocations
...
libbpf: prog 'kprobe_unix_stream_sendmsg': BPF program load failed: Argument list too long
libbpf: prog 'kprobe_unix_stream_sendmsg': failed to load: -7
libbpf: failed to load object 'ktap_unix_capture_bpf'
libbpf: failed to load BPF skeleton 'ktap_unix_capture_bpf': -7
Failed to load BPF skeleton[Argument list too long]

PROG TYPE : KPROBE
System version:Linux ubuntu18 4.15.0-212-generic #223-Ubuntu SMP Tue May 23 13:09:22 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
.btf file info: 4.15.0-212-generic generate with btfhub

Because of bpf program too big or too complex.