[DTrace-devel] [PATCH v2] sdt: consolidate the SDT infrastructure in its own provider framework

Nick Alcock nick.alcock at oracle.com
Thu May 18 20:26:32 UTC 2023


On 18 May 2023, Kris Van Hees via DTrace-devel verbalised:

> The various SDT providers are implemented using the same underlying
> mechanisms.  A common SDT infrastructure avoids code duplication.

Nice! This is what I was hoping could be done, only it looks like a lot
more could be done in the direction than I expected.

However, I'd expect this commit to also rejig at least some of the
existing SDT providers in terms of the new infrastructure (that way it
would be more obvious that the code being removed and the code being
added did the same thing, if they appeared together in the same diff).

(actually, if you do that you might even find that git will describe the
new file as a copy of one of the old ones with all the non-generic code
removed, depending on which approach yields a shorter diff. :) )



More information about the DTrace-devel mailing list