From: Nick Alcock <nick.alcock@oracle.com>
To: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Cc: Arnaldo Carvalho de Melo <arnaldo.melo@gmail.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Alan Maguire <alan.maguire@oracle.com>,
Jiri Olsa <jolsa@kernel.org>,
Clark Williams <williams@redhat.com>,
Kate Carcia <kcarcia@redhat.com>,
dwarves <dwarves@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Andrii Nakryiko <andrii.nakryiko@gmail.com>,
Yonghong Song <yonghong.song@linux.dev>,
"Jose E. Marchesi" <jose.marchesi@oracle.com>,
Nick Alcock <nick.alcock@oracle.com>,
Namhyung Kim <namhyung@kernel.org>, bpf <bpf@vger.kernel.org>
Subject: Re: [RFC 0/4] BTF archive with unmodified pahole+toolchain
Date: Fri, 08 Aug 2025 16:15:40 +0100 [thread overview]
Message-ID: <874iuhj143.fsf@esperi.org.uk> (raw)
In-Reply-To: <CAADnVQLr=-E1isAGDH1+U9h4Dta7hgzi==9SnWpKpCWtHQxa5g@mail.gmail.com> (Alexei Starovoitov's message of "Thu, 7 Aug 2025 19:52:51 -0700")
On 8 Aug 2025, Alexei Starovoitov stated:
> On Thu, Aug 7, 2025 at 7:36 PM Arnaldo Carvalho de Melo
> <arnaldo.melo@gmail.com> wrote:
>> But the changes in my series are so small that I think they merit consideration even so.
>
> Agree with that as well, but I'm just not easy about "BTF archives" :)
> The name is too ambitious. Concatenated BTF sections is fine,
> but let's not make a big deal out of it.
Just a note about the name -- it's ultimately derived from a thing I
wrote a decade ago to make it easier to package up CTF in kernels
without people losing half of it. It was rather more complex (its
descendant can still be seen at the tip of
https://ourceware.org/git/binutils-gdb.git users/nalcock/road-to-ctfv4
but I expect to remove support for writing that format and move to
something simpler: read support will be kept).
So the name "archive" is already embedded in libctf type names, source
file names, and its public API, and there is code using the term out
there in the wild. It seems like a reasonable term to me -- I mean,
obviously it does, I coined it, but a bunch of concatenated things with
minimal further structure is called an archive when tar does it.
Fundamentally, just as pahole's deduplicator imposes meaning on the BTF
sections in vmlinux and modules, so too libctf's deduplicator imposes
meaning on a concatenated stream of archives ("the first is shared
stuff, the rest is not"), so we do need a way to talk about this entity
in some fashion, for those occasions when it is in use (internally in
the kernel build process, as the content of ELF sections in userspace).
We have to call it *something*, and if you do end up calling it
something other than an archive the existing uses that do call it an
archive aren't going to instantly go away, so now we have to deal with
*two* terms.
next prev parent reply other threads:[~2025-08-08 15:16 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-07 18:25 [RFC 0/4] BTF archive with unmodified pahole+toolchain Arnaldo Carvalho de Melo
2025-08-07 18:25 ` [PATCH 1/4] libbpf: Simplify error handling removing needless repeated err checks Arnaldo Carvalho de Melo
2025-08-07 18:25 ` [PATCH 2/4] libbpf: Check if there is extra data at the end of a BTF Arnaldo Carvalho de Melo
2025-08-07 18:25 ` [PATCH 3/4] libbpf: Add support for detecting and dedup'ing a BTF archive Arnaldo Carvalho de Melo
2025-08-07 18:25 ` [PATCH 4/4] libbpf: Check if an ELF .BTF section is an archive and combine/dedup Arnaldo Carvalho de Melo
2025-08-07 18:46 ` [RFC 0/4] BTF archive with unmodified pahole+toolchain Arnaldo Carvalho de Melo
2025-08-07 20:23 ` Arnaldo Carvalho de Melo
2025-08-08 2:09 ` Alexei Starovoitov
[not found] ` <CA+JHD92DODDESCfwiiCs_ZQ5bGesK5NC+xe5EvONF5g+-Bg+9Q@mail.gmail.com>
2025-08-08 2:52 ` Alexei Starovoitov
2025-08-08 3:25 ` Arnaldo Carvalho de Melo
2025-08-08 3:33 ` Sam James
2025-08-08 3:54 ` Arnaldo Carvalho de Melo
2025-08-08 14:45 ` Nick Alcock
2025-08-08 15:15 ` Nick Alcock [this message]
2025-08-08 18:28 ` Eduard Zingerman
2025-08-08 19:10 ` Arnaldo Carvalho de Melo
2025-08-08 20:15 ` Eduard Zingerman
2025-08-08 20:59 ` Arnaldo Carvalho de Melo
2025-08-21 21:35 ` Nick Alcock
2025-08-27 0:14 ` Alexei Starovoitov
2025-09-15 10:11 ` Nick Alcock
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=874iuhj143.fsf@esperi.org.uk \
--to=nick.alcock@oracle.com \
--cc=acme@kernel.org \
--cc=acme@redhat.com \
--cc=alan.maguire@oracle.com \
--cc=alexei.starovoitov@gmail.com \
--cc=andrii.nakryiko@gmail.com \
--cc=arnaldo.melo@gmail.com \
--cc=bpf@vger.kernel.org \
--cc=dwarves@vger.kernel.org \
--cc=jolsa@kernel.org \
--cc=jose.marchesi@oracle.com \
--cc=kcarcia@redhat.com \
--cc=namhyung@kernel.org \
--cc=williams@redhat.com \
--cc=yonghong.song@linux.dev \
/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