[DTrace-devel] [PATCH] test: Convert tick-* probes to ioctl:entry for tst.begin.d
eugene.loh at oracle.com
eugene.loh at oracle.com
Wed Mar 8 15:44:27 UTC 2023
From: Eugene Loh <eugene.loh at oracle.com>
Even though this test needs tick-1m to fire only once, this does not
happen on some platforms. Since tick-1m is not germane to the test's
purpose, replace it.
Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
test/unittest/begin/tst.begin.d | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/test/unittest/begin/tst.begin.d b/test/unittest/begin/tst.begin.d
index 4e657e72..bc9df569 100644
--- a/test/unittest/begin/tst.begin.d
+++ b/test/unittest/begin/tst.begin.d
@@ -1,18 +1,16 @@
/*
* 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.
*/
/*
- * ASSERTION:
- * Order of provider flow, Begin, tick profile, and END.
+ * ASSERTION: Order of provider flow, Begin, tick profile, and END.
*
* SECTION: dtrace Provider
- *
*/
-
+/* @@trigger: bogus-ioctl */
#pragma D option quiet
@@ -26,7 +24,8 @@ BEGIN
printf("Begin fired first\n");
}
-tick-1ms
+syscall::ioctl:entry
+/pid == $target/
{
printf("tick fired second\n");
printf("Call exit\n");
--
2.18.4
More information about the DTrace-devel
mailing list