All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nick Alcock <nix@esperi.org.uk>
To: Kris Van Hees <kris.van.hees@oracle.com>
Cc: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: Re: [PATCH 06/20] btf: convert kernel types to CTF on demand
Date: Tue, 24 Nov 2026 15:38:43 +0000	[thread overview]
Message-ID: <87mrqygry4.fsf@esperi.org.uk> (raw)
In-Reply-To: <au9HhRL-aJnNJCiw@kvh-deb-bpf>

On 7 Nov 2026, Kris Van Hees outgrape:

> On Fri, Nov 06, 2026 at 12:53:06PM +0000, Nix wrote:
>> On 30 Oct 2026, Kris Van Hees said:
>> 
>> > Index BTF type names while decoding, and initialize CTF dictionaries without
>> > converting every BTF type.  Materialize requested named types and their
>> > reachable dependencies through a common CTF lookup helper, including direct
>> > compiler and provider lookups of shared kernel types.
>> 
>> Nice speedup!
>> 
>> > Reserve aggregate shells before converting references so recursive typedefs
>> 
>> Maybe 'wrappers'? 'Skeletons'? Shells seems a bit... strange to me,
>> terminology-wise. (Also, 'shell' is rather overloaded in Unix already.)
>
> I will go with "werappers".

Without the typo ;P

>> > Add synthetic coverage for lazy conversion, recursive graphs, pointer
>> > lookups, bitfields, forwards, split and parent-only BTF, failure recovery,
>> > and ordinary CTF dictionaries.
>> 
>> There doesn't seem to be any attempt to preserve IDs here -- I guess we
>> don't care? (In particular, aggregate types end up in a completely
>> different place in the type ID space than they did before, before
>> everything else... which makes me worry slightly, though it *should*
>> work.)
>
> As far as I can see, preserving IDs is not really needed, because the
> BTF is of course the authoritative source in this case, and we construct
> the CTF from it.  The construction process is, as far as I can see, safe
> and ensures that IDs are as they ought to be.
> 
> I honestly cannot see any way this can go wrong, even thugh things are
> going to be in a different order.  We never actually care about the
> order, right?

We don't care about the order, but if things refer to the reordered
things by ID, those IDs will now be different (since the IDs and the
ordering are the same thing). But we only refer to things by name,
right? In which case this will be fine. (We were already, in effect,
renumbering everything due to the ctf_add_type() into the D dictionary
whenever a vmlinux type was referenced anyway.)

So:

Reviewed-by: Nick Alcock <nix@esperi.org.uk>

-- 
NULL && (void)

      reply	other threads:[~2026-11-24 15:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 19:36 [PATCH 06/20] btf: convert kernel types to CTF on demand Kris Van Hees
2026-11-06 12:53 ` Nix
2026-11-07 15:45   ` Kris Van Hees
2026-11-24 15:38     ` Nick Alcock [this message]

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=87mrqygry4.fsf@esperi.org.uk \
    --to=nix@esperi.org.uk \
    --cc=dtrace-devel@oss.oracle.com \
    --cc=dtrace@lists.linux.dev \
    --cc=kris.van.hees@oracle.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.