<!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 6 Nov 2026, Kris Van Hees verbalised: > On Fri, Nov 06, 2026 at 12: 40: 35PM +0000, Nix wrote: >> On 30 Oct 2026, Kris Van Hees stated: >> >> > Store the shared dictionary in shared_ctf->dm_ctfp and remove dt_shared_ctf</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>
#pfptBannerxyplt58 { all: revert !important; display: block !important;
visibility: visible !important; opacity: 1 !important;
background-color: #c2d4d4 !important;
max-width: none !important; max-height: none !important }
.pfptPrimaryButtonxyplt58:hover, .pfptPrimaryButtonxyplt58:focus {
background-color: #a2b1b1 !important; }
.pfptPrimaryButtonxyplt58: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 6 Nov 2026, Kris Van Hees verbalised:
> On Fri, Nov 06, 2026 at 12:40:35PM +0000, Nix wrote:
>> On 30 Oct 2026, Kris Van Hees stated:
>>
>> > Store the shared dictionary in shared_ctf->dm_ctfp and remove dt_shared_ctf
>> > from the DTrace handle.
>>
>> This is effectively reversing a change I made ten years ago :P because
>> having it as a separate module was too problematic given that it didn't
>> correspond to a *real* module any more (in particular, we don't want
>> people to be able to look it up by name with `, etc.)
>>
>> As far as I could tell, all the advantages of being a module were
>> actually disadvantages for the shared dict, and no advantages were left.
>> It's not actually a module, and none of the things you can do to modules
>> should be doable on the shared CTF, and it didn't make the code simpler
>> to conflate the two either.
>>
>> So... what benefits does this bring?
>
> It makes it cleaner to be able to e.g. share the module data between multiple
> handles within the same process (which we will be doing with the PCP support
> Alan contributed). It also avoids needing to store the shared_ctf data in the
> handle itself, because it is truly associated with kernel module data.
It... is? I dropped it because there was literally nothing in the
dt_module that actually related to the shared, because it was *not* a
module. I'm wondering if what we're missing here is a layer of
abstraction between modules (which have address ranges, names, probes
associated with them etc) and the CTF stuff, so that modules connect to
one of those, and so dos the shared CTF etc, while still not having the
shared CTF appear to be a module, since it really isn't one.
For sharing stuff between multiple handles, I guess what we really want
is for shared_ctf to be refcounted -- which, conveniently, it already
is! Of course, libdtrace-ctf provides no way to get access to it, but
you shuold find that calling ctf_ref() on a dict will suffice to bump
its refcount when you stuff it into another handle. That might be all
you need. No need to keep around the whole module thing just to
implement a refcount :)
--
NULL && (void)
</pre></body></html>