Skip to content

Commit

Permalink
test: Convert tick-* probes to ioctl:entry for tst.begin.d
Browse files Browse the repository at this point in the history
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@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed May 24, 2023
1 parent fd7f8e4 commit f084702
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/unittest/begin/tst.begin.d
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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");
Expand Down

0 comments on commit f084702

Please sign in to comment.