[DTrace-devel] [PATCH] test: Make the USDT "only enabled" test more stringent
Nick Alcock
nick.alcock at oracle.com
Fri Jun 13 14:19:02 UTC 2025
On 3 Jun 2025, eugene loh said:
> From: Eugene Loh <eugene.loh at oracle.com>
>
> What if a program has an is-enabled probe without the corresponding
> parent probe? It should at least compile, and we test that.
>
> Add more checks to the test:
> - the is-enabled branch is not taken when run without dtrace
> - the parent USDT probe is listed with "dtrace -l"
> - the is-enabled branch is not taken even when run with dtrace
> if the parent probe is not enabled
> - the is-enabled branch is taken when run with dtrace
> and the parent probe is enabled; however, the parent probe
> does not fire since it is not in the test trigger
Nice!
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
Reviewed-by: Nick Alcock <nick.alcock at oracle.com>
More information about the DTrace-devel
mailing list