[DTrace-devel] [PATCH 2/4] test: Convert tick-* probes to ioctl:entry for tst.negquant.d

Kris Van Hees kris.van.hees at oracle.com
Thu Dec 21 03:43:40 UTC 2023


On Thu, Sep 07, 2023 at 06:39:22PM -0400, eugene.loh at oracle.com wrote:
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees 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