[DTrace-devel] [PATCH 12/16] cpc: Update the Solaris generic-event test

Kris Van Hees kris.van.hees at oracle.com
Fri Feb 24 00:53:25 UTC 2023


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

On Thu, Jan 26, 2023 at 09:23:25PM -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>
> ---
>  test/unittest/cpc/tst.genericevent.d | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/test/unittest/cpc/tst.genericevent.d b/test/unittest/cpc/tst.genericevent.d
> index aae49402..caf6c9be 100644
> --- a/test/unittest/cpc/tst.genericevent.d
> +++ b/test/unittest/cpc/tst.genericevent.d
> @@ -1,30 +1,28 @@
>  /*
>   * Oracle Linux DTrace.
> - * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
>   * Test that we can successfully enable a probe using a generic event.
> - * Currently, all platforms implement 'PAPI_tot_ins' so we'll use that.
> + * Currently, all platforms implement 'cpu_clock' so we'll use that.
>   * Note that this test will fail if the system under test does not
>   * implement that event.
>   *
>   * This test will fail if:
> - *	1) The system under test does not define the 'PAPI_tot_ins' event.
> + *	1) The system under test does not define the 'cpu_clock' event.
>   */
>  
>  #pragma D option quiet
> -#pragma D option bufsize=128k
>  
> -cpc:::PAPI_tot_ins-all-10000
> +cpc:::cpu_clock-all-10000
>  {
>  	@[probename] = count();
>  }
>  
> -tick-1s
> -/n++ > 10/
> +tick-3s
>  {
>  	exit(0);
>  }
> -- 
> 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