[DTrace-devel] [PATCH 1/4] test: Convert tick-* probes to ioctl:entry for tst.quantmany.d

eugene.loh at oracle.com eugene.loh at oracle.com
Thu Sep 7 22:39:21 UTC 2023


From: Eugene Loh <eugene.loh at oracle.com>

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/aggs/tst.quantmany.d | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/test/unittest/aggs/tst.quantmany.d b/test/unittest/aggs/tst.quantmany.d
index de7d5635..030ff8b8 100644
--- a/test/unittest/aggs/tst.quantmany.d
+++ b/test/unittest/aggs/tst.quantmany.d
@@ -1,34 +1,37 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2022, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2023, 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.
  */
+/* @@trigger: bogus-ioctl */
+/* @@nosort */
 
 #pragma D option quiet
 
 int64_t val, shift;
 
-tick-1ms
-/val == 0/
+syscall::ioctl:entry
+/pid == $target && val == 0/
 {
 	val = -(1 << shift);
 	shift++;
 }
 
-tick-1ms
-/shift == 32/
+syscall::ioctl:entry
+/pid == $target && shift == 32/
 {
 	exit(0);
 }
 
-tick-1ms
-/val == -1/
+syscall::ioctl:entry
+/pid == $target && val == -1/
 {
 	val = (1 << shift);
 }
 
-tick-1ms
+syscall::ioctl:entry
+/pid == $target/
 {
 	@[shift] = quantize(val, val);
 	val >>= 1;
-- 
2.18.4




More information about the DTrace-devel mailing list