[DTrace-devel] [PATCH] test: Convert tick-* probes to ioctl:entry for tst.begin.d

Kris Van Hees kris.van.hees at oracle.com
Fri Apr 28 04:54:15 UTC 2023


On Wed, Mar 08, 2023 at 10:44:27AM -0500, eugene.loh--- via DTrace-devel wrote:
> 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>

Reviewed-by: Kris Van Hees <kris.van.hees 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
> 
> 
> _______________________________________________
> DTrace-devel mailing list
> DTrace-devel at oss.oracle.com
> https://oss.oracle.com/mailman/listinfo/dtrace-devel



More information about the DTrace-devel mailing list