From c38914e13b816f47ff59ae2fe41d1ef1fd7e5386 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Fri, 19 Apr 2024 10:47:35 -0400 Subject: [PATCH] Add explicit MIT license and copyright Signed-off-by: Michael Jeanson --- .gitignore | 6 +++++- LICENSES/MIT.txt | 9 ++++++++ Makefile | 4 ++++ README.md | 6 ++++++ scripts/gen-hip-wrappers | 4 +++- scripts/gen-hsa-wrappers | 4 +++- scripts/lttng-ust-hip-post-processing.sed | 3 +++ src/lttng-roctx.c | 9 ++++---- src/lttng-roctx.h | 9 ++++---- src/lttng-ust-exatracer.cpp | 9 ++++---- src/lttng-ust-roctx-impl.c | 4 ++++ src/lttng-ust-roctx.h | 9 ++++---- tests/hello.cpp | 25 ++++------------------- 13 files changed, 57 insertions(+), 44 deletions(-) create mode 100644 LICENSES/MIT.txt diff --git a/.gitignore b/.gitignore index 5ad324d..e6b56e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,6 @@ +# SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +# +# SPDX-License-Identifier: MIT + *.tar.gz -build \ No newline at end of file +build diff --git a/LICENSES/MIT.txt b/LICENSES/MIT.txt new file mode 100644 index 0000000..2071b23 --- /dev/null +++ b/LICENSES/MIT.txt @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile index 0ee9d01..ee27fd7 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +# +# SPDX-License-Identifier: MIT + # Configure this. ROCM_VERSION?=6.1.0-1388 ROCM?=/opt/rocm-$(ROCM_VERSION) diff --git a/README.md b/README.md index 987ce73..783d24b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ + + # Exatracer The Exatracer is powered by the LTTng ecosystem and can instrument the HIP and diff --git a/scripts/gen-hip-wrappers b/scripts/gen-hip-wrappers index 3a0d80b..8bf38ca 100755 --- a/scripts/gen-hip-wrappers +++ b/scripts/gen-hip-wrappers @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # -# Copyright (c) 2023 EfficiOS, Inc. +# SPDX-FileCopyrightText: 2023 EfficiOS, Inc. +# +# SPDX-License-Identifier: MIT # # Author: Olivier Dion # diff --git a/scripts/gen-hsa-wrappers b/scripts/gen-hsa-wrappers index 49179da..5216f6b 100755 --- a/scripts/gen-hsa-wrappers +++ b/scripts/gen-hsa-wrappers @@ -1,6 +1,8 @@ #!/usr/bin/env python3 # -# Copyright (c) 2023 EfficiOS, Inc. +# SPDX-FileCopyrightText: 2023 EfficiOS, Inc. +# +# SPDX-License-Identifier: MIT # # Author: Olivier Dion # diff --git a/scripts/lttng-ust-hip-post-processing.sed b/scripts/lttng-ust-hip-post-processing.sed index f41c5a9..32e4c20 100644 --- a/scripts/lttng-ust-hip-post-processing.sed +++ b/scripts/lttng-ust-hip-post-processing.sed @@ -1 +1,4 @@ +# SPDX-FileCopyrightText: 2023 EfficiOS, Inc. +# +# SPDX-License-Identifier: MIT s/hipChooseDeviceR[0-9]*/hipChooseDevice/g diff --git a/src/lttng-roctx.c b/src/lttng-roctx.c index b836c0e..406392e 100644 --- a/src/lttng-roctx.c +++ b/src/lttng-roctx.c @@ -1,8 +1,7 @@ -/* - * Copyright © 2023 AMD - * - * All Rights Reserved - */ +// SPDX-FileCopyrightText: 2023 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT #include #include diff --git a/src/lttng-roctx.h b/src/lttng-roctx.h index 60f5d19..0baeb36 100644 --- a/src/lttng-roctx.h +++ b/src/lttng-roctx.h @@ -1,8 +1,7 @@ -/* - * Copyright © 2023 AMD - * - * All Rights Reserved - */ +// SPDX-FileCopyrightText: 2023 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT #ifndef LTTNG_ROCTX_H #define LTTNG_ROCTX_H diff --git a/src/lttng-ust-exatracer.cpp b/src/lttng-ust-exatracer.cpp index 6fbaa6f..0639845 100644 --- a/src/lttng-ust-exatracer.cpp +++ b/src/lttng-ust-exatracer.cpp @@ -1,8 +1,7 @@ -/* - * Copyright © 2024 AMD - * - * All Rights Reserved - */ +// SPDX-FileCopyrightText: 2024 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT #include diff --git a/src/lttng-ust-roctx-impl.c b/src/lttng-ust-roctx-impl.c index 5fca996..434e077 100644 --- a/src/lttng-ust-roctx-impl.c +++ b/src/lttng-ust-roctx-impl.c @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT + #define LTTNG_UST_TRACEPOINT_CREATE_PROBES #define LTTNG_UST_TRACEPOINT_DEFINE #include "lttng-roctx.h" diff --git a/src/lttng-ust-roctx.h b/src/lttng-ust-roctx.h index 46f3222..0ed8436 100644 --- a/src/lttng-ust-roctx.h +++ b/src/lttng-ust-roctx.h @@ -1,8 +1,7 @@ -/* - * Copyright © 2023 AMD - * - * All Rights Reserved - */ +// SPDX-FileCopyrightText: 2023 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT #undef LTTNG_UST_TRACEPOINT_PROVIDER #define LTTNG_UST_TRACEPOINT_PROVIDER roctx diff --git a/tests/hello.cpp b/tests/hello.cpp index 0e6956e..d8201c9 100644 --- a/tests/hello.cpp +++ b/tests/hello.cpp @@ -1,24 +1,7 @@ -/* - Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. -*/ +// SPDX-FileCopyrightText: 2015-2016 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-FileCopyrightText: 2024 EfficiOS, Inc. +// +// SPDX-License-Identifier: MIT #include #include -- 2.34.1