[DTrace-devel] [PATCH 1/2] test: add back a simple module loader.

Nick Alcock nick.alcock at oracle.com
Fri Apr 28 15:56:38 UTC 2023


On 24 Mar 2023, Eugene Loh via DTrace-devel stated:

> Reviewed-by: Eugene Loh <eugene.loh at oracle.com>
>
> Just to confirm:  this means that running the test suite will leave modules loaded that were not there before?  Feels iffy to me,
> but I realize that's legacy behavior and difficult to fix. (E.g., someone might be as surprised by modules disappearing as by
> modules appearing.)

Definitely. There are lots of processes by which modules can be
autoloaded without your knowledge: nothing should care, and anything
that does will be thrown off by routine operations in any case.

Unloading modules is in any case riskier than loading them: that's the
whole reason we were unloading the old dtrace modules, because we had
crashes at unload time we wanted to ensure did not recur.  Since we
don't care about such bugs in the modules we're loading purely so the
testsuite can see them, we shouldn't be trying to unload them.



More information about the DTrace-devel mailing list