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

eugene.loh at oracle.com eugene.loh at oracle.com
Thu Dec 14 22:21:18 UTC 2023


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

Mimic other "test: Convert tick-* probes to ioctl:entry" patches.

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/aggs/tst.negtruncquant.d | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/test/unittest/aggs/tst.negtruncquant.d b/test/unittest/aggs/tst.negtruncquant.d
index d0460b61..ecef81dc 100644
--- a/test/unittest/aggs/tst.negtruncquant.d
+++ b/test/unittest/aggs/tst.negtruncquant.d
@@ -1,16 +1,18 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2020, 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
 
 int i;
 
-tick-10ms
-/i < 100/
+syscall::ioctl:entry
+/pid == $target && i < 100/
 {
 	@[i] = lquantize(i, 0, 150);
 	@[i] = lquantize(i + 1, 0, 150);
@@ -19,8 +21,8 @@ tick-10ms
 	i++;
 }
 
-tick-10ms
-/i == 100/
+syscall::ioctl:entry
+/pid == $target && i == 100/
 {
 	exit(0);
 }
-- 
2.18.4




More information about the DTrace-devel mailing list