Linux DTrace development list
 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 02/20] libdtrace: retain module metadata across incremental discovery
Date: Thu, 05 Nov 2026 16:53:53 +0000	[thread overview]
Message-ID: <878q37usm6.fsf@esperi.org.uk> (raw)
In-Reply-To: <10c34e1100164e736b99534a57e74cfa@oracle.com>

On 30 Oct 2026, Kris Van Hees spake thusly:

> Stop unloading cached modules in dtrace_update(), including vmlinux. Keep
> discovered symbol tables, ranges, types, and BTF IDs for the handle lifetime
> while collecting newly loaded modules. Module disappearance or reloading no
> longer replaces cached metadata.

Hm. Interesting. I considered doing this back in the day but more or
less immediately hit problems with wanting to remove dtrace.ko and
loading a modified one.

I guess we don't care about replacement of modules with bugfixed ones
any more? (What happens if someone does it?)

> Separate failed ELF-load cleanup from module destruction, retaining the
> existing handle ownership of shared CTF and BTF. Document the new lifetime
> contract and cover incremental discovery with both kernel symbol formats.

(I don't really know what this series is for, or why you're doing this.
Is the point of this incremental discovery? Or is it just that the
compiler resolves these things to addresses, so having them change just
causes trouble because the resolution is already done? If so, this seems
reasonable -- one hopes that the verifier would trap cases where the
addresses used now resolve to something else.)

> Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>

Reviewed-by: Nick Alcock <nix@esperi.org.uk> # given the above

(I suspect there are more simplifications one could make, given this,
but the below seems like it should work.)

-- 
NULL && (void)

  reply	other threads:[~2026-11-05 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-30 19:36 [PATCH 02/20] libdtrace: retain module metadata across incremental discovery Kris Van Hees
2026-11-05 16:53 ` Nick Alcock [this message]
2026-11-05 17:32   ` Kris Van Hees

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=878q37usm6.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