public inbox for dtrace@lists.linux.dev
 help / color / mirror / Atom feed
From: eugene.loh@oracle.com
To: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: [PATCH] test: Skip err.Z_no-w for now
Date: Tue,  8 Jul 2025 00:52:57 -0400	[thread overview]
Message-ID: <20250708045257.13808-1-eugene.loh@oracle.com> (raw)

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


             reply	other threads:[~2025-07-08  4:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-08  4:52 eugene.loh [this message]
2025-07-08 12:15 ` [PATCH] test: Skip err.Z_no-w for now 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250708045257.13808-1-eugene.loh@oracle.com \
    --to=eugene.loh@oracle.com \
    --cc=dtrace-devel@oss.oracle.com \
    --cc=dtrace@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox