[DTrace-devel] [PATCH 2/5] test: Reduce a few tests' vulnerability to large agg sizes

Kris Van Hees kris.van.hees at oracle.com
Wed Feb 21 20:39:24 UTC 2024


On Wed, Feb 21, 2024 at 01:48:48PM -0500, eugene.loh--- via DTrace-devel wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>

> ---
>  test/demo/fbt/delay.d            | 4 +++-
>  test/unittest/printa/tst.stack.d | 3 ++-
>  2 files changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/test/demo/fbt/delay.d b/test/demo/fbt/delay.d
> index 1d03ed20..016ad204 100644
> --- a/test/demo/fbt/delay.d
> +++ b/test/demo/fbt/delay.d
> @@ -1,11 +1,13 @@
>  /*
>   * Oracle Linux DTrace.
> - * Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2005, 2024, 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: none */
>  
> +#pragma D option maxframes=5
> +
>  fbt::do_nanosleep:entry
>  {
>  	self->in = timestamp
> diff --git a/test/unittest/printa/tst.stack.d b/test/unittest/printa/tst.stack.d
> index b3d2b966..4ac6414f 100644
> --- a/test/unittest/printa/tst.stack.d
> +++ b/test/unittest/printa/tst.stack.d
> @@ -1,11 +1,12 @@
>  /*
>   * Oracle Linux DTrace.
> - * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2006, 2024, 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.
>   */
>  
>  #pragma D option quiet
> +#pragma D option maxframes=5
>  
>  BEGIN
>  {
> -- 
> 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