From: Nix <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: Fri, 06 Nov 2026 12:53:06 +0000 [thread overview]
Message-ID: <87qzgyt93h.fsf@esperi.org.uk> (raw)
In-Reply-To: <155d3efad06100688e3878b86d99cdd7@oracle.com>
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.)
> and callback prototypes work regardless of the requested root. Grow the
> shared parent dictionary lazily for split BTF, and roll back newly added
> CTF types and cache entries when conversion fails. Prefer available
> aggregate definitions over forward references.
>
> Advance the BTF function parameter iterator and preserve packed member
> offsets so converted prototypes and conversion retries retain their BTF
> information.
>
> Reject split conversion when archive-backed shared CTF has no matching
> BTF-to-CTF parent mapping, leaving the module to the existing CTF fallback.
> Keep this guard with lazy conversion so provider header generation also
> works when the kernel CTF archive is present.
>
> 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.)
--
NULL && (void)
next prev parent reply other threads:[~2026-11-06 12:53 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 [this message]
2026-11-07 15:45 ` Kris Van Hees
2026-11-24 15:38 ` 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=87qzgyt93h.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox