[DTrace-devel] [PATCH 08/16] cpc: Fix copyrights on tests imported from Solaris

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


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

On Thu, Jan 26, 2023 at 09:23:21PM -0500, eugene.loh--- via DTrace-devel wrote:
> From: Eugene Loh <eugene.loh at oracle.com>
> 
> See these commits:
>     e384b684cc77 Fix up copyrights
>     1b911cea0f52 UPL relicensing, stage 2: automated modifications.
>     4187a7baf76c Add missing copyright headers.
> 
> Signed-off-by: Eugene Loh <eugene.loh at oracle.com>
> ---
>  .../cpc/err.D_PDESC_ZERO.lowfrequency.d       | 27 +++-------------
>  .../cpc/err.D_PDESC_ZERO.malformedoverflow.d  | 27 +++-------------
>  .../cpc/err.D_PDESC_ZERO.nonexistentevent.d   | 27 +++-------------
>  test/unittest/cpc/err.cpcvscpustatpart1.ksh   | 31 +++----------------
>  test/unittest/cpc/err.cpcvscpustatpart2.ksh   | 31 +++----------------
>  test/unittest/cpc/err.cputrackfailtostart.ksh | 29 +++--------------
>  test/unittest/cpc/err.cputrackterminates.ksh  | 29 +++--------------
>  test/unittest/cpc/err.toomanyenablings.d      | 27 +++-------------
>  test/unittest/cpc/tst.allcpus.ksh             | 30 +++---------------
>  test/unittest/cpc/tst.genericevent.d          | 26 +++-------------
>  test/unittest/cpc/tst.platformevent.ksh       | 30 +++---------------
>  11 files changed, 50 insertions(+), 264 deletions(-)
> 
> diff --git a/test/unittest/cpc/err.D_PDESC_ZERO.lowfrequency.d b/test/unittest/cpc/err.D_PDESC_ZERO.lowfrequency.d
> index 1015a251..e825dd15 100644
> --- a/test/unittest/cpc/err.D_PDESC_ZERO.lowfrequency.d
> +++ b/test/unittest/cpc/err.D_PDESC_ZERO.lowfrequency.d
> @@ -1,27 +1,8 @@
>  /*
> - * CDDL HEADER START
> - *
> - * The contents of this file are subject to the terms of the
> - * Common Development and Distribution License (the "License").
> - * You may not use this file except in compliance with the License.
> - *
> - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> - * or http://www.opensolaris.org/os/licensing.
> - * See the License for the specific language governing permissions
> - * and limitations under the License.
> - *
> - * When distributing Covered Code, include this CDDL HEADER in each
> - * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> - * If applicable, add the following below this CDDL HEADER, with the
> - * fields enclosed by brackets "[]" replaced with your own identifying
> - * information: Portions Copyright [yyyy] [name of copyright owner]
> - *
> - * CDDL HEADER END
> - */
> -
> -/*
> - * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> - * Use is subject to license terms.
> + * Oracle Linux DTrace.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
> diff --git a/test/unittest/cpc/err.D_PDESC_ZERO.malformedoverflow.d b/test/unittest/cpc/err.D_PDESC_ZERO.malformedoverflow.d
> index f9b78094..c72d0b16 100644
> --- a/test/unittest/cpc/err.D_PDESC_ZERO.malformedoverflow.d
> +++ b/test/unittest/cpc/err.D_PDESC_ZERO.malformedoverflow.d
> @@ -1,27 +1,8 @@
>  /*
> - * CDDL HEADER START
> - *
> - * The contents of this file are subject to the terms of the
> - * Common Development and Distribution License (the "License").
> - * You may not use this file except in compliance with the License.
> - *
> - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> - * or http://www.opensolaris.org/os/licensing.
> - * See the License for the specific language governing permissions
> - * and limitations under the License.
> - *
> - * When distributing Covered Code, include this CDDL HEADER in each
> - * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> - * If applicable, add the following below this CDDL HEADER, with the
> - * fields enclosed by brackets "[]" replaced with your own identifying
> - * information: Portions Copyright [yyyy] [name of copyright owner]
> - *
> - * CDDL HEADER END
> - */
> -
> -/*
> - * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> - * Use is subject to license terms.
> + * Oracle Linux DTrace.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
> diff --git a/test/unittest/cpc/err.D_PDESC_ZERO.nonexistentevent.d b/test/unittest/cpc/err.D_PDESC_ZERO.nonexistentevent.d
> index 73f9575f..abff7b64 100644
> --- a/test/unittest/cpc/err.D_PDESC_ZERO.nonexistentevent.d
> +++ b/test/unittest/cpc/err.D_PDESC_ZERO.nonexistentevent.d
> @@ -1,27 +1,8 @@
>  /*
> - * CDDL HEADER START
> - *
> - * The contents of this file are subject to the terms of the
> - * Common Development and Distribution License (the "License").
> - * You may not use this file except in compliance with the License.
> - *
> - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> - * or http://www.opensolaris.org/os/licensing.
> - * See the License for the specific language governing permissions
> - * and limitations under the License.
> - *
> - * When distributing Covered Code, include this CDDL HEADER in each
> - * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> - * If applicable, add the following below this CDDL HEADER, with the
> - * fields enclosed by brackets "[]" replaced with your own identifying
> - * information: Portions Copyright [yyyy] [name of copyright owner]
> - *
> - * CDDL HEADER END
> - */
> -
> -/*
> - * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> - * Use is subject to license terms.
> + * Oracle Linux DTrace.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
> diff --git a/test/unittest/cpc/err.cpcvscpustatpart1.ksh b/test/unittest/cpc/err.cpcvscpustatpart1.ksh
> index 767d493a..fdcfb3f9 100755
> --- a/test/unittest/cpc/err.cpcvscpustatpart1.ksh
> +++ b/test/unittest/cpc/err.cpcvscpustatpart1.ksh
> @@ -1,30 +1,9 @@
>  #!/bin/ksh
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> -#
> -
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This tests that cpustat(1) should fail to start if the cpc provider
> diff --git a/test/unittest/cpc/err.cpcvscpustatpart2.ksh b/test/unittest/cpc/err.cpcvscpustatpart2.ksh
> index 584469c3..a82121c6 100755
> --- a/test/unittest/cpc/err.cpcvscpustatpart2.ksh
> +++ b/test/unittest/cpc/err.cpcvscpustatpart2.ksh
> @@ -1,30 +1,9 @@
>  #!/bin/ksh -p
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> -#
> -
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This tests that enablings from the cpc provider will fail if cpustat(1) is
> diff --git a/test/unittest/cpc/err.cputrackfailtostart.ksh b/test/unittest/cpc/err.cputrackfailtostart.ksh
> index f62b83d5..9216f657 100755
> --- a/test/unittest/cpc/err.cputrackfailtostart.ksh
> +++ b/test/unittest/cpc/err.cputrackfailtostart.ksh
> @@ -1,28 +1,9 @@
>  #!/bin/ksh
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This script ensures that cputrack(1M) will fail to start when the cpc
> diff --git a/test/unittest/cpc/err.cputrackterminates.ksh b/test/unittest/cpc/err.cputrackterminates.ksh
> index 58d1e798..f87cf2a9 100755
> --- a/test/unittest/cpc/err.cputrackterminates.ksh
> +++ b/test/unittest/cpc/err.cputrackterminates.ksh
> @@ -1,28 +1,9 @@
>  #!/bin/ksh
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This script ensures that cputrack(1) will terminate when the cpc provider
> diff --git a/test/unittest/cpc/err.toomanyenablings.d b/test/unittest/cpc/err.toomanyenablings.d
> index a50bd71a..d9e487a7 100644
> --- a/test/unittest/cpc/err.toomanyenablings.d
> +++ b/test/unittest/cpc/err.toomanyenablings.d
> @@ -1,27 +1,8 @@
>  /*
> - * CDDL HEADER START
> - *
> - * The contents of this file are subject to the terms of the
> - * Common Development and Distribution License (the "License").
> - * You may not use this file except in compliance with the License.
> - *
> - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> - * or http://www.opensolaris.org/os/licensing.
> - * See the License for the specific language governing permissions
> - * and limitations under the License.
> - *
> - * When distributing Covered Code, include this CDDL HEADER in each
> - * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> - * If applicable, add the following below this CDDL HEADER, with the
> - * fields enclosed by brackets "[]" replaced with your own identifying
> - * information: Portions Copyright [yyyy] [name of copyright owner]
> - *
> - * CDDL HEADER END
> - */
> -
> -/*
> - * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> - * Use is subject to license terms.
> + * Oracle Linux DTrace.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
> diff --git a/test/unittest/cpc/tst.allcpus.ksh b/test/unittest/cpc/tst.allcpus.ksh
> index 7f026c9e..adf2114a 100755
> --- a/test/unittest/cpc/tst.allcpus.ksh
> +++ b/test/unittest/cpc/tst.allcpus.ksh
> @@ -1,29 +1,9 @@
>  #!/bin/ksh
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> -#
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This script verifies that we can fire a probe on each CPU that is in
> diff --git a/test/unittest/cpc/tst.genericevent.d b/test/unittest/cpc/tst.genericevent.d
> index 7ebf844e..aae49402 100644
> --- a/test/unittest/cpc/tst.genericevent.d
> +++ b/test/unittest/cpc/tst.genericevent.d
> @@ -1,26 +1,8 @@
>  /*
> - * CDDL HEADER START
> - *
> - * The contents of this file are subject to the terms of the
> - * Common Development and Distribution License (the "License").
> - * You may not use this file except in compliance with the License.
> - *
> - * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> - * or http://www.opensolaris.org/os/licensing.
> - * See the License for the specific language governing permissions
> - * and limitations under the License.
> - *
> - * When distributing Covered Code, include this CDDL HEADER in each
> - * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> - * If applicable, add the following below this CDDL HEADER, with the
> - * fields enclosed by brackets "[]" replaced with your own identifying
> - * information: Portions Copyright [yyyy] [name of copyright owner]
> - *
> - * CDDL HEADER END
> - */
> -/*
> - * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> - * Use is subject to license terms.
> + * Oracle Linux DTrace.
> + * Copyright (c) 2009, 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.
>   */
>  
>  /*
> diff --git a/test/unittest/cpc/tst.platformevent.ksh b/test/unittest/cpc/tst.platformevent.ksh
> index 96d1ab8c..2e7d7a30 100755
> --- a/test/unittest/cpc/tst.platformevent.ksh
> +++ b/test/unittest/cpc/tst.platformevent.ksh
> @@ -1,29 +1,9 @@
>  #!/bin/ksh
> -#
> -# CDDL HEADER START
> -#
> -# The contents of this file are subject to the terms of the
> -# Common Development and Distribution License (the "License").
> -# You may not use this file except in compliance with the License.
> -#
> -# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
> -# or http://www.opensolaris.org/os/licensing.
> -# See the License for the specific language governing permissions
> -# and limitations under the License.
> -#
> -# When distributing Covered Code, include this CDDL HEADER in each
> -# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
> -# If applicable, add the following below this CDDL HEADER, with the
> -# fields enclosed by brackets "[]" replaced with your own identifying
> -# information: Portions Copyright [yyyy] [name of copyright owner]
> -#
> -# CDDL HEADER END
> -#
> -
> -#
> -# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
> -# Use is subject to license terms.
> -#
> +# 
> +# Oracle Linux DTrace.
> +# Copyright (c) 2009, 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.
>  
>  #
>  # This script ensures that we can enable a probe which specifies a platform
> -- 
> 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