public inbox for dtrace@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] test: Skip err.Z_no-w for now
@ 2025-07-08  4:52 eugene.loh
  2025-07-08 12:15 ` Nick Alcock
  0 siblings, 1 reply; 7+ messages in thread
From: eugene.loh @ 2025-07-08  4:52 UTC (permalink / raw)
  To: dtrace, dtrace-devel

From: Eugene Loh <eugene.loh@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@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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-07-11  4:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08  4:52 [PATCH] test: Skip err.Z_no-w for now eugene.loh
2025-07-08 12:15 ` Nick Alcock
2025-07-09 22:39   ` Eugene Loh
2025-07-09 23:45     ` Kris Van Hees
2025-07-10 20:03       ` Eugene Loh
2025-07-10 20:12         ` Kris Van Hees
2025-07-11  4:37           ` Eugene Loh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox