<!DOCTYPE html>
<!-- BaNnErBlUrFlE-BoDy-start -->
<!-- Preheader Text : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;opacity:0;overflow:hidden;">
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</div>
<!-- Preheader Text : END -->
<!-- Email Banner : BEGIN -->
<div style="display:none !important;display:none;visibility:hidden;mso-hide:all;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;opacity:0;overflow:hidden;"></div>
<!-- Email Banner : END -->
<!-- BaNnErBlUrFlE-BoDy-end -->
<html>
<head><!-- BaNnErBlUrFlE-HeAdEr-start -->
<style>
#pfptBanner2u1f4rs { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important;
background-color: #c2d4d4 !important;
max-width: none !important; max-height: none !important }
.pfptPrimaryButton2u1f4rs:hover, .pfptPrimaryButton2u1f4rs:focus {
background-color: #a2b1b1 !important; }
.pfptPrimaryButton2u1f4rs:active {
background-color: #828e8e !important; }
html:root, html:root>body { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important; }
</style>
<!-- BaNnErBlUrFlE-HeAdEr-end -->
</head><body><pre style="font-family: sans-serif; font-size: 100%; white-space: pre-wrap; word-wrap: break-word">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)
</pre></body></html>