From: Kris Van Hees <kris.van.hees@oracle.com>
To: dtrace@lists.linux.dev, dtrace-devel@oss.oracle.com
Subject: [PATCH 4/4] test: change the type used in this test
Date: Mon, 09 Nov 2026 20:09:18 +0000 [thread overview]
Message-ID: <8fd5fa33475c3e32350c81bd33746b26@oracle.com> (raw)
The type that was used in this test changed to no longer provide the
member we were counting on. Changed it to use a type that has been
in the kernel since 4.10 and has only seen a single change since.
Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
---
test/unittest/types/tst.nested-unnamed-structs.d | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/unittest/types/tst.nested-unnamed-structs.d b/test/unittest/types/tst.nested-unnamed-structs.d
index 08146785..0e3df66a 100644
--- a/test/unittest/types/tst.nested-unnamed-structs.d
+++ b/test/unittest/types/tst.nested-unnamed-structs.d
@@ -16,17 +16,17 @@
#pragma D option quiet
dtrace:::BEGIN {
- printf("offset is %i\n", offsetof(struct rds`rds_message, atomic));
+ printf("offset is %i\n", offsetof(struct `flow_dissector_key_icmp, code));
}
dtrace:::BEGIN
-/ offsetof(struct rds`rds_message, atomic) == 0 /
+/ offsetof(struct `flow_dissector_key_icmp, code) == 0 /
{
exit(1);
}
dtrace:::BEGIN
-/ offsetof(struct rds`rds_message, atomic) != 0 /
+/ offsetof(struct `flow_dissector_key_icmp, code) != 0 /
{
exit(0);
}
--
2.52.0
reply other threads:[~2026-11-09 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=8fd5fa33475c3e32350c81bd33746b26@oracle.com \
--to=kris.van.hees@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.