[DTrace-devel] [PATCH] test: Clean up fbtprovider/tst.return0.d

eugene.loh at oracle.com eugene.loh at oracle.com
Fri Apr 22 01:23:56 UTC 2022


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

Remove the vestigial -Z since the remaining probe is actually needed
for the test not to time out.  Change references to "arg0" (which is
not defined for fbt:::return probes) to "arg1".

Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
---
 test/unittest/fbtprovider/tst.return0.d | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/test/unittest/fbtprovider/tst.return0.d b/test/unittest/fbtprovider/tst.return0.d
index 3d58e84f..e37a1632 100644
--- a/test/unittest/fbtprovider/tst.return0.d
+++ b/test/unittest/fbtprovider/tst.return0.d
@@ -1,24 +1,22 @@
 /*
  * Oracle Linux DTrace.
- * Copyright (c) 2006, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2006, 2022, 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: simple fbt provider arg0 and probfunc print test.
+ * ASSERTION: simple fbt provider arg1 and probfunc print test.
  *
  * SECTION: FBT Provider/Probe arguments
  */
 
-/* @@runtest-opts: -Z */
-
 #pragma D option quiet
 #pragma D option statusrate=10ms
 
 fbt::do_sys_poll:return
 /arg1 == 0/
 {
-	printf("%s %x returned 0", probefunc, arg0);
+	printf("%s %x returned 0", probefunc, arg1);
 	exit(0);
 }
-- 
2.18.4




More information about the DTrace-devel mailing list