foss-for-synopsys-dwc-arc-processors/linux

[ARCv2, eBPF] libbpf: BTF loading error: -22

abrodkin opened this issue · 0 comments

With current implementation of eBPF for ARCv2 processors on execution of some tests the following message appears:

# ./execsnoop
libbpf: BTF loading error: -22
libbpf: -- BEGIN BTF LOAD LOG ---
magic: 0xeb9f
version: 1
flags: 0x0
hdr_len: 24
type_off: 0
type_len: 8780
str_off: 8780
str_len: 7581
btf_total_size: 16385
[1] STRUCT (anon) size=32 vlen=4
        type type_id=2 bits_offset=0
        max_entries type_id=6 bits_offset=64
        key type_id=8 bits_offset=128
        value type_id=11 bits_offset=192
[2] PTR (anon) type_id=4
…
-- END BTF LOAD LOG --
libbpf: Error loading .BTF into kernel: -22. BTF is optional, ignoring.
PCOMM            PID    PPID   RET ARGS

The target eBPF application gets executed as expected, but that message is a bit annoying.
Would be good to get to the bottom of it and have a clean execution.