[DTrace-devel] [PATCH] test: Skip err.Z_no-w for now

eugene.loh at oracle.com eugene.loh at oracle.com
Tue Jul 8 04:52:57 UTC 2025


From: Eugene Loh <eugene.loh at oracle.com>

It is unclear what behavior is desired.  For example, consider:

    dtrace -Z -n 'BEGIN { exit(0) } foo:bar:baz:bop { raise(SIGUSR1) }'

The first probe exists.  The second one will be ignored.  Solaris will
reject the script with:

    dtrace: description 'BEGIN ' matched 1 probe
    dtrace: could not enable tracing: Destructive actions not allowed

On Linux, we have:

    dtrace: description 'BEGIN ' matched 1 probe
    CPU     ID                    FUNCTION:NAME
      0      1                           :BEGIN

Perhaps both behaviors have merit.  For now, just skip the test to
avoid test failures we are not ready to arbitrate.

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/usdt/err.Z_no-w.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/unittest/usdt/err.Z_no-w.sh b/test/unittest/usdt/err.Z_no-w.sh
index 4f129341d..a49396608 100755
--- a/test/unittest/usdt/err.Z_no-w.sh
+++ b/test/unittest/usdt/err.Z_no-w.sh
@@ -11,6 +11,8 @@
 # Specifically, the script is launched with -Z and no USDT processes are
 # initially present.  Only once a USDT process is detected does dtrace
 # fail due to the destructive action.
+#
+# @@skip:  need to decide desired behavior;  Solaris will not start dtrace
 
 dtrace=$1
 trigger=`pwd`/test/triggers/usdt-tst-defer
-- 
2.43.5




More information about the DTrace-devel mailing list