From: "Bryce Kahle" <git@brycekahle.com>
To: "Andrii Nakryiko" <andrii.nakryiko@gmail.com>,
"Bryce Kahle" <bryce.kahle@datadoghq.com>
Cc: "Quentin Monnet" <quentin@isovalent.com>,
bpf@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net
Subject: Re: [PATCH bpf-next v4] bpftool: add support for split BTF to gen min_core_btf
Date: Fri, 02 Feb 2024 16:58:29 -0800 [thread overview]
Message-ID: <dfcd6c3b-dbaa-4e72-acc5-89aed8a836f9@app.fastmail.com> (raw)
In-Reply-To: <CAEf4Bza=mroJ6+zhK-fCKLutuH_1z9ESeJs+BHbNbCrATrwRdA@mail.gmail.com>
On Fri, Feb 2, 2024, at 2:10 PM, Andrii Nakryiko wrote:
>
> Maybe the right solution is to concat vmlinux and all the relevant
> module BTFs first, dedup it again, then minimize against that "super
> BTF". But yes, you'd have to specify both vmlinux and all the module
> BTFs at the same time (which bpftool allows you to do easily with its
> CLI interface, so not really a problem)
>
How would you handle the Type ID conflicts between the modules, since they all start at vmlinux+1? Is there a danger of conflicting type names, where there are two types with the same name but different layouts?
I was trying to mirror the sysfs file layout, so a loader didn't have different behavior between user-supplied BTF and kernel-provided BTF.
next prev parent reply other threads:[~2024-02-03 0:58 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-30 23:05 [PATCH bpf-next v4] bpftool: add support for split BTF to gen min_core_btf Bryce Kahle
2024-01-31 18:13 ` Alan Maguire
2024-02-02 22:16 ` Andrii Nakryiko
2024-02-06 10:59 ` Alan Maguire
2024-02-08 0:26 ` Andrii Nakryiko
2024-02-08 22:45 ` Alan Maguire
2024-02-09 19:50 ` Andrii Nakryiko
2024-02-01 0:54 ` Quentin Monnet
2024-02-01 21:05 ` Bryce Kahle
2024-02-02 22:10 ` Andrii Nakryiko
2024-02-03 0:58 ` Bryce Kahle [this message]
2024-02-05 18:21 ` Andrii Nakryiko
2024-02-07 18:51 ` Bryce Kahle
2024-02-07 22:38 ` Yonghong Song
2024-02-08 0:30 ` Andrii Nakryiko
2024-02-08 1:56 ` Yonghong Song
2024-02-08 23:01 ` Alan Maguire
2024-02-09 19:58 ` Andrii Nakryiko
2024-02-26 21:48 ` Bryce Kahle
2024-02-29 0:59 ` Andrii Nakryiko
2024-02-29 15:24 ` Quentin Monnet
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=dfcd6c3b-dbaa-4e72-acc5-89aed8a836f9@app.fastmail.com \
--to=git@brycekahle.com \
--cc=andrii.nakryiko@gmail.com \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=bryce.kahle@datadoghq.com \
--cc=daniel@iogearbox.net \
--cc=quentin@isovalent.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox