[DTrace-devel] [PATCH 4/4] test: change the type used in this test

Kris Van Hees kris.van.hees at oracle.com
Mon Nov 9 20:09:18 UTC 2026


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 at 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




More information about the DTrace-devel mailing list