From: Martin KaFai Lau <martin.lau@linux.dev>
To: Zhouyi Zhou <zhouzhouyi@gmail.com>,
bpf@vger.kernel.org, linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: a small question about bpftool struct_ops
Date: Fri, 19 May 2023 12:01:09 -0700 [thread overview]
Message-ID: <073cf884-e191-e323-1445-b79c86759557@linux.dev> (raw)
In-Reply-To: <CAABZP2wiPdij+q_Nms08e8KbT9+CgXuoU+MO3dyoujG_1PPHAQ@mail.gmail.com>
On 5/19/23 5:07 AM, Zhouyi Zhou wrote:
> Dear developers:
> I compiled bpftool and bpf tests in mainline (2d1bcbc6cd70),
> but when I invoke:
> bpftool struct_ops register bpf_cubic.bpf.o
>
> the command line fail with:
> libbpf: struct_ops init_kern: struct tcp_congestion_ops data is not
> found in struct bpf_struct_ops_tcp_congestion_ops
At the machine trying to register the bpf_cubic, please dump the vmlinux btf and
search for bpf_struct_ops_tcp_congestion_ops and paste it here:
For example:
#> bpftool btf dump file /sys/kernel/btf/vmlinux
...
[74578] STRUCT 'bpf_struct_ops_tcp_congestion_ops' size=256 vlen=3
'refcnt' type_id=145 bits_offset=0
'state' type_id=74569 bits_offset=32
'data' type_id=6241 bits_offset=512
next prev parent reply other threads:[~2023-05-19 19:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 12:07 a small question about bpftool struct_ops Zhouyi Zhou
2023-05-19 19:01 ` Martin KaFai Lau [this message]
2023-05-19 23:37 ` Zhouyi Zhou
2023-05-21 8:27 ` Zhouyi Zhou
2023-05-26 23:10 ` Zhouyi Zhou
2023-05-31 3:14 ` Zhouyi Zhou
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=073cf884-e191-e323-1445-b79c86759557@linux.dev \
--to=martin.lau@linux.dev \
--cc=bpf@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zhouzhouyi@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.