rt-tests: Add SPDX tags V3
PATCH 1/2 rt-tests: Add SPDX tags V3
Add SPDX tags instead of having out-of-date and incomplete licences at the top of files
Audited again to make sure that GPL-2.0-only is used where appropriate and not GPL-2.0-or-later (and the other way around)
--- src/backfire/backfire.c | 17 +-------------- src/cyclictest/cyclictest.c | 5 +---- src/cyclictest/rt_numa.h | 1 + src/hwlatdetect/hwlatdetect.py | 8 ++----- src/include/bionic.h | 1 + src/include/error.h | 1 + src/include/pip_stress.h | 1 + src/include/rt-get_cpu.h | 1 + src/include/rt-sched.h | 24 +++++---------------- src/include/rt-utils.h | 1 + src/lib/error.c | 1 + src/lib/rt-get_cpu.c | 1 + src/lib/rt-sched.c | 25 ++++++---------------- src/lib/rt-utils.c | 1 + src/pi_tests/classic_pi.c | 22 ++++--------------- src/pi_tests/pi_stress.c | 22 ++++--------------- src/pi_tests/pip_stress.c | 14 +----------- src/pi_tests/sigtest.c | 22 ++++--------------- src/pi_tests/tst-mutexpi10.c | 27 ++++++------------------ src/pmqtest/pmqtest.c | 16 +------------- src/ptsematest/ptsematest.c | 17 +-------------- src/queuelat/determine_maximum_mpps.sh | 3 +++ src/queuelat/get_cpuinfo_mhz.sh | 3 +++ src/queuelat/queuelat.c | 8 +++++++ src/queuelat/targeted-ipi/targeted-ipi.c | 7 ++++++ src/rt-migrate-test/rt-migrate-test.c | 19 +---------------- src/sched_deadline/cyclicdeadline.c | 8 +++++++ src/sched_deadline/deadline_test.c | 24 ++++++--------------- src/signaltest/signaltest.c | 2 ++ src/sigwaittest/sigwaittest.c | 2 ++ src/ssdd/ssdd.c | 12 +++++------ src/svsematest/svsematest.c | 16 ++------------ 32 files changed, 94 insertions(+), 238 deletions(-)
src/backfire/backfire.c +1 -16
@@ -1,22 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * backfire - send signal back to caller -* * Copyright (C) 2007 Carsten Emde <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, -* USA. */ #include <linux/module.h>
src/cyclictest/cyclictest.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * High resolution timer test software *
@@ -6,10 +7,6 @@* (C) 2008-2012 Clark Williams <[email protected]> * (C) 2005-2007 Thomas Gleixner <[email protected]> * -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License Version -* 2 as published by the Free Software Foundation. -* */ #include <stdio.h> #include <stdlib.h>
src/cyclictest/rt_numa.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * A numa library for cyclictest. * The functions here are designed to work whether cyclictest has been
src/hwlatdetect/hwlatdetect.py +2 -6
@@ -1,14 +1,10 @@ #!/usr/bin/python3 +# SPDX-License-Identifier: GPL-2.0-only + # (C) 2018,2019 Clark Williams <[email protected]> # (C) 2015,2016 Clark Williams <[email protected]> # (C) 2009 Clark Williams <[email protected]> -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License Version 2 -# as published by the Free Software Foundation. - - import sys import os
src/include/bionic.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef BIONIC_H #define BIONIC_H
src/include/error.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __ERROR_H#define __ERROR_H
src/include/pip_stress.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __PIP_STRESS_H#define __PIP_STRESS_H
src/include/rt-get_cpu.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __RT_GET_CPU_H#define __RT_GET_CPU_H#include <stdio.h>
src/include/rt-sched.h +5 -19
@@ -1,23 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -rt-sched.h - sched_setattr() and sched_getattr() API - -(C) Dario Faggioli <[email protected]>, 2009, 2010 -Copyright (C) 2014 BMW Car IT GmbH, Daniel Wagner <[email protected] - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 -USA */ +* rt-sched.h - sched_setattr() and sched_getattr() API +* (C) Dario Faggioli <[email protected]>, 2009, 2010 +* Copyright (C) 2014 BMW Car IT GmbH, Daniel Wagner <[email protected] +*/ /* This file is based on Dario Faggioli's libdl. Eventually it will be replaced by a proper implemenation of this API. */
src/include/rt-utils.h +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef __RT_UTILS_H#define __RT_UTILS_H
src/lib/error.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 John Kacur <[email protected]> *
src/lib/rt-get_cpu.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 John Kacur <[email protected]> */
src/lib/rt-sched.c +6 -19
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -rt-sched.h - sched_setattr() and sched_getattr() API - -(C) Dario Faggioli <[email protected]>, 2009, 2010 -Copyright (C) 2014 BMW Car IT GmbH, Daniel Wagner <[email protected] - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 -USA */ +* rt-sched.h - sched_setattr() and sched_getattr() API +* +* (C) Dario Faggioli <[email protected]>, 2009, 2010 +* Copyright (C) 2014 BMW Car IT GmbH, Daniel Wagner <[email protected] +*/ /* This file is based on Dario Faggioli's libdl. Eventually it will be replaced by a proper implemenation of this API. */
src/lib/rt-utils.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2009 Carsten Emde <[email protected]> * Copyright (C) 2010 Clark Williams <[email protected]>
src/pi_tests/classic_pi.c +4 -18
@@ -1,22 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -classic_pi - Classic Priority Inversion deadlock test case -- Copyright (C) 2006, 2007 Clark Williams <[email protected]> -- This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 -USA */ +* classic_pi - Classic Priority Inversion deadlock test case +* Copyright (C) 2006, 2007 Clark Williams <[email protected]> +*/ /* This program tests Priority Inheritance mutexes and their ability to avoid Priority Inversion deadlocks
src/pi_tests/pi_stress.c +4 -18
@@ -1,22 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -pi_stress - Priority Inheritance stress test - -Copyright (C) 2006, 2007 Clark Williams <[email protected]> - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 -USA */ +* pi_stress - Priority Inheritance stress test +* Copyright (C) 2006, 2007 Clark Williams <[email protected]> +*/ /* This program stress tests pthreads priority inheritance mutexes
src/pi_tests/pip_stress.c +1 -13
@@ -1,20 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* Pip stress - Priority Inheritance with processes Copyright (C) 2009, John Kacur <[email protected]> - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see <http://www.gnu.org/licenses/>. */ /*
src/pi_tests/sigtest.c +4 -18
@@ -1,22 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* -sigtest - simple little program to verify signal behavior -- Copyright (C) 2006, 2007 Clark Williams <[email protected]> -- This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 -USA */ +* sigtest - simple little program to verify signal behavior +* Copyright (C) 2006, 2007 Clark Williams <[email protected]> +*/ #include <stdio.h> #include <signal.h>
src/pi_tests/tst-mutexpi10.c +6 -21
@@ -1,25 +1,10 @@ +// SPDX-License-Identifier: LGPL-2.1-or-later /* -Classic Priority Inversion deadlock test case -- Copyright (C) 2006 Free Software Foundation, Inc. -This file is part of the GNU C Library. -Contributed by Clark Williams<[email protected]>, 2006 -- The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Lesser General Public License as -published by the Free Software Foundation; either version 2.1 of the -License, or (at your option) any later version. -- The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -Lesser General Public License for more details. -- You should have received a copy of the GNU Lesser General Public -License along with the GNU C Library; see the file COPYING.LIB. If not, -write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, -Boston, MA 02111-1307, USA. */ - +* Classic Priority Inversion deadlock test case +* Copyright (C) 2006 Free Software Foundation, Inc. +* This file is part of the GNU C Library. +* Contributed by Clark Williams<[email protected]>, 2006 +*/ /* This program tests Priority Inheritance mutexes and their ability to avoid Priority Inversion deadlocks
src/pmqtest/pmqtest.c +1 -15
@@ -1,22 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * pmqtest.c * * Copyright (C) 2009 Carsten Emde <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, -* USA. */ #include <stdio.h>
src/ptsematest/ptsematest.c +1 -16
@@ -1,22 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * ptsematest.c -* * Copyright (C) 2009 Carsten Emde <[email protected]> -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, -* USA. */ #include <stdio.h>
src/queuelat/determine_maximum_mpps.sh +3 -0
@@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2018 Marcelo Tosatti <[email protected]> + # A script to determine the maximum mpps. Logic: # Increase mpps in 0.5 units #
src/queuelat/get_cpuinfo_mhz.sh +3 -0
@@ -1,5 +1,8 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2018 Marcelo Tosatti <[email protected]> + mhz=`cat /proc/cpuinfo | grep "cpu MHz" | uniq | cut -f 3 -d " "` echo $mhz
src/queuelat/queuelat.c +8 -0
@@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +/* +* Copyright (C) 2018 Marcelo Tosatti <[email protected]> +* Copyright (C) 2019 John Kacur <[email protected]> +* Copyright (C) 2019 Clark Williams <[email protected]> +*/ +#include <string.h> #include <stdlib.h> #include <sys/types.h>
src/queuelat/targeted-ipi/targeted-ipi.c +7 -0
@@ -1,3 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Copyright (C) 2018 Marcelo Tosatti <[email protected]> +* Copyright (C) 2019 John Kacur <[email protected]> +* Copyright (C) 2019 Clark Williams <[email protected]> +*/ +#define pr_fmt (fmt) KBUILD_MODNAME ": " fmt#include <linux/module.h>
src/rt-migrate-test/rt-migrate-test.c +1 -18
@@ -1,24 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0-only /* * rt-migrate-test.c -* * Copyright (C) 2007-2009 Steven Rostedt <[email protected]> -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; version 2 of the License (not later!) -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ #include <stdio.h> #ifndef __USE_XOPEN2K
src/sched_deadline/cyclicdeadline.c +8 -0
@@ -1,3 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0-only + +/* +* Copyright (C) 2016 Red Hat Inc, Steven Rostedt <[email protected]> +* Copyright (C) 2019 John Kacur <[email protected]> +* Copyright (C) 2019 Clark Williams <[email protected]> +*/ +#include <pthread.h> #include <stdarg.h> #include <stdlib.h>
src/sched_deadline/deadline_test.c +7 -17
@@ -1,22 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* * Copyright (C) 2016 Red Hat Inc, Steven Rostedt <[email protected]> -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; version 2 of the License (not later!) -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see <http://www.gnu.org/licenses> -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* +* Copyright (C) 2019 John Kacur <[email protected]> +* Copyright (C) 2019 Clark Williams <[email protected]> +*/ + +/* * deadline_test.c * * This program is used to test the deadline scheduler (SCHED_DEADLINE tasks).
src/signaltest/signaltest.c +2 -0
@@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* * RT signal roundtrip test software *
src/sigwaittest/sigwaittest.c +2 -0
@@ -1,3 +1,5 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* * sigwaittest.c *
src/ssdd/ssdd.c +6 -6
@@ -1,3 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +/* +* Copyright (C) 2019 Joe Korty <[email protected]> +*/ +/* * Have a tracer do a bunch of PTRACE_SINGLESTEPs against * a tracee as fast as possible. Create several of these
@@ -16,12 +22,6 @@* The tracer waits on each PTRACE_SINGLESTEP with a waitpid(2) * and checks that waitpid's return values for correctness. * -* This program was originally written by -* Joe Korty <[email protected]> -* This program is free software; you can redistribute it and / or modify -* it under the terms of the GNU General Public License Version 2 -* of the licence, or (at your option) any later version -* see COPYING for more information */ #include <stdio.h> #include <stdlib.h>
src/svsematest/svsematest.c +2 -14
@@ -1,22 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* * svsematest.c * * Copyright (C) 2009 Carsten Emde <[email protected]> * -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation either version 2 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, -* USA. */ #include <stdio.h>
Signature · 1 line
2.20.1
PATCH 2/2 rt-tests: Add SPDX tag to hackbench.c
Add SPDX tag GPL-2.0-or-later
The original author is Rusty Russell
In his mail with the following message-id, he says:
Message-ID: <[email protected]>
Quoted 3 lines
( I've Cc:-ed Rusty, the original author of
hackbench.c. Rusty, the file
has no explicit GPLv2 compatible license - is it fine to be put into GPLv2 code? )
Yep, like all my code it's standard v2 "or later".
Sounds like a good plan, thanks!
Rusty.
--- src/hackbench/hackbench.c | 1 + 1 file changed, 1 insertion(+)
src/hackbench/hackbench.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * This is the latest version of hackbench.c, that tests scheduler and * unix-socket (or pipe) performance.
Signature · 1 line
2.20.1
Re: [PATCH 2/2] rt-tests: Add SPDX tag to hackbench.c
Quoted 10 lines · John Kacur
Add SPDX tag GPL-2.0-or-later
The original author is Rusty RussellIn his mail with the following message-id, he says:
Message-ID: <[email protected]>Quoted 3 lines
( I've Cc:-ed Rusty, the original author of
hackbench.c. Rusty, the file
has no explicit GPLv2 compatible license - is it fine to be put into GPLv2 code? )
Quoted 6 lines
Yep, like all my code it's standard v2 "or later".
Sounds like a good plan, thanks!
Rusty.Signed-off-by John Kacur <[email protected]>
Thank you.
Sebastian