From: Elerion <elerion1000@gmail.com>
To: xdp-newbies@vger.kernel.org
Subject: Error loading xdp program that worked with bpf_load
Date: Wed, 10 Jun 2020 14:01:09 -0700 [thread overview]
Message-ID: <CAMDScmnpbPgs+mB_aMY16aXLMMWBgfu0sqna06MH8RPoGpw7_Q@mail.gmail.com> (raw)
I used this to load my xdp program
https://github.com/torvalds/linux/blob/master/samples/bpf/bpf_load.c
but it doesn't seem to work on new style maps so I am using libbpf
bpf_object__open now.
But now it shows this
libbpf: Error loading BTF: Invalid argument(22)
libbpf: magic: 0xeb9f
version: 1
flags: 0x0
hdr_len: 24
type_off: 0
type_len: 2088
str_off: 2088
str_len: 11234
btf_total_size: 13346
[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=12 bits_offset=192
[2] PTR (anon) type_id=4
[3] INT int size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
more type information....
libbpf: Error loading .BTF into kernel: -22.
How do I fix this?
5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020
x86_64 x86_64 x86_64 GNU/Linux
Ubuntu clang version
10.0.1-++20200529024103+a634a80615b-1~exp1~20200529124721.169
Target: x86_64-pc-linux-gnu
next reply other threads:[~2020-06-10 21:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-10 21:01 Elerion [this message]
2020-06-10 21:06 ` Error loading xdp program that worked with bpf_load Toke Høiland-Jørgensen
2020-06-10 21:08 ` Elerion
2020-06-10 21:37 ` Toke Høiland-Jørgensen
2020-06-10 21:44 ` Elerion
2020-06-10 21:50 ` Elerion
2020-06-11 10:59 ` Jesper Dangaard Brouer
2020-06-11 16:34 ` Andrii Nakryiko
2020-06-11 16:39 ` [iovisor-dev] " Alexei Starovoitov
2020-06-11 20:40 ` Elerion
2020-06-11 20:46 ` Andrii Nakryiko
2020-06-11 21:11 ` Elerion
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMDScmnpbPgs+mB_aMY16aXLMMWBgfu0sqna06MH8RPoGpw7_Q@mail.gmail.com \
--to=elerion1000@gmail.com \
--cc=xdp-newbies@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).