Skip to contentSkip to conversation

test: Modify fbtsafety tests that use vtimestamp unnecessarily

PATCH In review [email protected] 2 participants 2 messages Oct 7, 2025 – Oct 8, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: Modify fbtsafety tests that use vtimestamp unnecessarily

From: Eugene Loh <[email protected]>

Currently, we do not implement vtimestamp.

---
 test/stress/fbtsafety/tst.index.d             | 6 +++---
 test/stress/fbtsafety/tst.strjoin.d           | 4 ++--
 test/stress/fbtsafety/tst.strstr.d            | 4 ++--
 test/stress/fbtsafety/tst.strtok.d            | 4 ++--
 test/stress/fbtsafety/tst.substr.d            | 6 +++---
 test/unittest/variables/bvar/tst.vtimestamp.d | 2 +-
 6 files changed, 13 insertions(+), 13 deletions(-)
test/stress/fbtsafety/tst.index.d +3 -3
index e30b94c0a..930d074ab 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,13 +17,13 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(index((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(index((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::
 /on/
 {
-	trace(rindex((char *)rand(), (char *)(rand() ^ vtimestamp,
+	trace(rindex((char *)rand(), (char *)(rand() ^ timestamp,
 	    timestamp)));
 }
 
test/stress/fbtsafety/tst.strjoin.d +2 -2
index a22cc7943..1a9fbe733 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strjoin((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strjoin((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.strstr.d +2 -2
index 13f4a9245..15c1e15e8 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strstr((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strstr((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.strtok.d +2 -2
index bc0a707eb..edc2ec558 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strtok((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strtok((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.substr.d +3 -3
index 8cd021176..ac02584ee 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,13 +17,13 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(substr((char *)rand(), rand() ^ vtimestamp));
+	trace(substr((char *)rand(), rand() ^ timestamp));
 }
 
 fbt:::
 /on/
 {
-	trace(substr((char *)rand(), -rand() ^ vtimestamp));
+	trace(substr((char *)rand(), -rand() ^ timestamp));
 }
 
 tick-1sec
test/unittest/variables/bvar/tst.vtimestamp.d +1 -1
index b72eb8a7f..7d92bf4cc 100644
@@ -4,7 +4,7 @@
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
-/* @@xfail: dtv2 need vtimestamp support */
+/* @@xfail: dtv2: need vtimestamp support */
 
 /*
  * ASSERTION: The 'vtimestamp' variable can be accessed and is not -1.
Signature · 1 line
2.47.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · eugene.loh--- via DTrace-devel

From: Eugene Loh <[email protected]>

Currently, we do not implement vtimestamp.

Quoted 149 lines
---
 test/stress/fbtsafety/tst.index.d             | 6 +++---
 test/stress/fbtsafety/tst.strjoin.d           | 4 ++--
 test/stress/fbtsafety/tst.strstr.d            | 4 ++--
 test/stress/fbtsafety/tst.strtok.d            | 4 ++--
 test/stress/fbtsafety/tst.substr.d            | 6 +++---
 test/unittest/variables/bvar/tst.vtimestamp.d | 2 +-
 6 files changed, 13 insertions(+), 13 deletions(-)
test/stress/fbtsafety/tst.index.d +3 -3
index e30b94c0a..930d074ab 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,13 +17,13 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(index((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(index((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::
 /on/
 {
-	trace(rindex((char *)rand(), (char *)(rand() ^ vtimestamp,
+	trace(rindex((char *)rand(), (char *)(rand() ^ timestamp,
 	    timestamp)));
 }
 
test/stress/fbtsafety/tst.strjoin.d +2 -2
index a22cc7943..1a9fbe733 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strjoin((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strjoin((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.strstr.d +2 -2
index 13f4a9245..15c1e15e8 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strstr((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strstr((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.strtok.d +2 -2
index bc0a707eb..edc2ec558 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,7 +17,7 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(strtok((char *)rand(), (char *)(rand() ^ vtimestamp)));
+	trace(strtok((char *)rand(), (char *)(rand() ^ timestamp)));
 }
 
 fbt:::entry
test/stress/fbtsafety/tst.substr.d +3 -3
index 8cd021176..ac02584ee 100644
@@ -1,6 +1,6 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2025, Oracle and/or its affiliates. All rights reserved.
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
@@ -17,13 +17,13 @@ fbt:::
 fbt:::
 /on/
 {
-	trace(substr((char *)rand(), rand() ^ vtimestamp));
+	trace(substr((char *)rand(), rand() ^ timestamp));
 }
 
 fbt:::
 /on/
 {
-	trace(substr((char *)rand(), -rand() ^ vtimestamp));
+	trace(substr((char *)rand(), -rand() ^ timestamp));
 }
 
 tick-1sec
test/unittest/variables/bvar/tst.vtimestamp.d +1 -1
index b72eb8a7f..7d92bf4cc 100644
@@ -4,7 +4,7 @@
  * Licensed under the Universal Permissive License v 1.0 as shown at
  * http://oss.oracle.com/licenses/upl.
  */
-/* @@xfail: dtv2 need vtimestamp support */
+/* @@xfail: dtv2: need vtimestamp support */
 
 /*
  * ASSERTION: The 'vtimestamp' variable can be accessed and is not -1.
Signature · 7 lines
2.47.3


_______________________________________________
DTrace-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/dtrace-devel