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

Kris Van Hees kvanhees at kvh-deb-bpf.us.oracle.com
Tue Jan 30 16:24:16 UTC 2024


On Thu, Dec 14, 2023 at 05:21:18PM -0500, eugene.loh at oracle.com wrote:
> 
> Mimic other "test: Convert tick-* probes to ioctl:entry" patches.
> 
> 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.negtruncquant.d | 12 +++++++-----
>  1 file changed, 7 insertions(+), 5 deletions(-)
> 
> diff --git a/test/unittest/aggs/tst.negtruncquant.d b/test/unittest/aggs/tst.negtruncquant.d
> index d0460b61..ecef81dc 100644
> --- a/test/unittest/aggs/tst.negtruncquant.d
> +++ b/test/unittest/aggs/tst.negtruncquant.d
> @@ -1,16 +1,18 @@
>  /*
>   * 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] = lquantize(i, 0, 150);
>  	@[i] = lquantize(i + 1, 0, 150);
> @@ -19,8 +21,8 @@ tick-10ms
>  	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