[DTrace-devel] [PATCH 2/4] test: Convert tick-* probes to ioctl:entry for tst.negquant.d
eugene.loh at oracle.com
eugene.loh at oracle.com
Thu Sep 7 22:39:22 UTC 2023
From: Eugene Loh <eugene.loh at oracle.com>
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
test/unittest/aggs/tst.negtrunc.d | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/test/unittest/aggs/tst.negtrunc.d b/test/unittest/aggs/tst.negtrunc.d
index 97db1967..9606acc5 100644
--- a/test/unittest/aggs/tst.negtrunc.d
+++ b/test/unittest/aggs/tst.negtrunc.d
@@ -1,23 +1,25 @@
/*
* 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] = sum(i);
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