From 470b7d7ccd40c3476e3b21fa77328344308ac602 Mon Sep 17 00:00:00 2001 From: Gopesh Bhardwaj Date: Fri, 19 Sep 2025 10:31:12 +0530 Subject: [PATCH] SWDEV-553065 palamida scan fix (#1010) --- projects/rocprofiler/bin/build_kernel.sh | 5 ++++ projects/rocprofiler/bin/rocprofv2 | 3 +++ projects/rocprofiler/plugin/att/att.py | 4 ++++ projects/rocprofiler/plugin/att/att_to_csv.py | 3 +++ projects/rocprofiler/plugin/att/drawing.py | 4 ++++ projects/rocprofiler/plugin/att/service.py | 4 ++++ projects/rocprofiler/plugin/att/stitch.py | 4 ++++ projects/rocprofiler/plugin/att/trace_view.py | 4 ++++ projects/rocprofiler/samples/common/common.h | 3 +++ .../pcie_counters_example.cpp | 3 +++ .../xgmi_counters_sampler_example.cpp | 3 +++ .../profiler/device_profiling_sample.cpp | 3 +++ .../kernel_profiling_no_replay_sample.cpp | 3 +++ projects/rocprofiler/samples/run_samples.sh | 4 ++++ .../rocprofiler/samples/tracer/sample.cpp | 3 +++ .../samples/tracer/sample_async.cpp | 3 +++ .../rocprofiler/src/api/rocprofilerv2.cpp | 3 +++ projects/rocprofiler/src/core/activity.h | 3 +++ projects/rocprofiler/src/core/context.h | 23 ++----------------- projects/rocprofiler/src/core/context_pool.h | 23 ++----------------- projects/rocprofiler/src/core/core_timer.h | 3 +++ .../rocprofiler/src/core/profiling_lock.cpp | 3 +++ .../rocprofiler/src/core/profiling_lock.h | 2 ++ projects/rocprofiler/src/core/proxy_queue.cpp | 23 ++----------------- projects/rocprofiler/src/core/proxy_queue.h | 23 ++----------------- projects/rocprofiler/src/tools/ctrl.cpp | 3 +++ .../tests-v2/featuretests/gtests_main.cpp | 3 +++ 27 files changed, 84 insertions(+), 84 deletions(-) diff --git a/projects/rocprofiler/bin/build_kernel.sh b/projects/rocprofiler/bin/build_kernel.sh index 318178156f..2452443428 100755 --- a/projects/rocprofiler/bin/build_kernel.sh +++ b/projects/rocprofiler/bin/build_kernel.sh @@ -1,4 +1,9 @@ #!/bin/sh -x + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + + SO_EXT="hsaco" TEST_NAME=$1 diff --git a/projects/rocprofiler/bin/rocprofv2 b/projects/rocprofiler/bin/rocprofv2 index 95c72bc092..8682530473 100755 --- a/projects/rocprofiler/bin/rocprofv2 +++ b/projects/rocprofiler/bin/rocprofv2 @@ -1,5 +1,8 @@ #!/bin/bash -e +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + set -eo pipefail # Define color code diff --git a/projects/rocprofiler/plugin/att/att.py b/projects/rocprofiler/plugin/att/att.py index 99c813ae61..c77550ec95 100755 --- a/projects/rocprofiler/plugin/att/att.py +++ b/projects/rocprofiler/plugin/att/att.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import sys if sys.version_info[0] < 3: diff --git a/projects/rocprofiler/plugin/att/att_to_csv.py b/projects/rocprofiler/plugin/att/att_to_csv.py index 4f03611002..6021175172 100755 --- a/projects/rocprofiler/plugin/att/att_to_csv.py +++ b/projects/rocprofiler/plugin/att/att_to_csv.py @@ -1,5 +1,8 @@ #!/usr/bin/env python3 +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import numpy as np import csv import os diff --git a/projects/rocprofiler/plugin/att/drawing.py b/projects/rocprofiler/plugin/att/drawing.py index 2d47280881..b8781dfbc0 100644 --- a/projects/rocprofiler/plugin/att/drawing.py +++ b/projects/rocprofiler/plugin/att/drawing.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import sys if sys.version_info[0] < 3: diff --git a/projects/rocprofiler/plugin/att/service.py b/projects/rocprofiler/plugin/att/service.py index 7716d33543..fec50ac6a6 100644 --- a/projects/rocprofiler/plugin/att/service.py +++ b/projects/rocprofiler/plugin/att/service.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import sys if sys.version_info[0] < 3: diff --git a/projects/rocprofiler/plugin/att/stitch.py b/projects/rocprofiler/plugin/att/stitch.py index 75bfec213a..4fe2833044 100644 --- a/projects/rocprofiler/plugin/att/stitch.py +++ b/projects/rocprofiler/plugin/att/stitch.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import sys if sys.version_info[0] < 3: diff --git a/projects/rocprofiler/plugin/att/trace_view.py b/projects/rocprofiler/plugin/att/trace_view.py index 8611d028e1..4a1fff7513 100755 --- a/projects/rocprofiler/plugin/att/trace_view.py +++ b/projects/rocprofiler/plugin/att/trace_view.py @@ -1,4 +1,8 @@ #!/usr/bin/env python3 + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + import sys if sys.version_info[0] < 3: diff --git a/projects/rocprofiler/samples/common/common.h b/projects/rocprofiler/samples/common/common.h index 3eefe4ca4f..ba61d13aea 100644 --- a/projects/rocprofiler/samples/common/common.h +++ b/projects/rocprofiler/samples/common/common.h @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include diff --git a/projects/rocprofiler/samples/counters_sampler/pcie_counters_example.cpp b/projects/rocprofiler/samples/counters_sampler/pcie_counters_example.cpp index 93b91da942..21abf18f9a 100644 --- a/projects/rocprofiler/samples/counters_sampler/pcie_counters_example.cpp +++ b/projects/rocprofiler/samples/counters_sampler/pcie_counters_example.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" int main(int argc, char** argv) { diff --git a/projects/rocprofiler/samples/counters_sampler/xgmi_counters_sampler_example.cpp b/projects/rocprofiler/samples/counters_sampler/xgmi_counters_sampler_example.cpp index 4a324690ab..4da6c987df 100644 --- a/projects/rocprofiler/samples/counters_sampler/xgmi_counters_sampler_example.cpp +++ b/projects/rocprofiler/samples/counters_sampler/xgmi_counters_sampler_example.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" int main(int argc, char** argv) { diff --git a/projects/rocprofiler/samples/profiler/device_profiling_sample.cpp b/projects/rocprofiler/samples/profiler/device_profiling_sample.cpp index 98d1495e3f..4f171bc8b3 100644 --- a/projects/rocprofiler/samples/profiler/device_profiling_sample.cpp +++ b/projects/rocprofiler/samples/profiler/device_profiling_sample.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" #include #include diff --git a/projects/rocprofiler/samples/profiler/kernel_profiling_no_replay_sample.cpp b/projects/rocprofiler/samples/profiler/kernel_profiling_no_replay_sample.cpp index 4306c29526..2c7d868907 100644 --- a/projects/rocprofiler/samples/profiler/kernel_profiling_no_replay_sample.cpp +++ b/projects/rocprofiler/samples/profiler/kernel_profiling_no_replay_sample.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" int main(int argc, char** argv) { diff --git a/projects/rocprofiler/samples/run_samples.sh b/projects/rocprofiler/samples/run_samples.sh index 6ff26d793a..0a70542955 100755 --- a/projects/rocprofiler/samples/run_samples.sh +++ b/projects/rocprofiler/samples/run_samples.sh @@ -1,4 +1,8 @@ #!/bin/bash + +# Copyright © Advanced Micro Devices, Inc., or its affiliates. +# SPDX-License-Identifier: MIT + CURRENT_DIR=$(dirname -- $(realpath ${BASH_SOURCE[0]})); ROCM_PATH="${ROCM_PATH:=/opt/rocm}" diff --git a/projects/rocprofiler/samples/tracer/sample.cpp b/projects/rocprofiler/samples/tracer/sample.cpp index 94ff018576..3770850429 100644 --- a/projects/rocprofiler/samples/tracer/sample.cpp +++ b/projects/rocprofiler/samples/tracer/sample.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" int main(int argc, char** argv) { diff --git a/projects/rocprofiler/samples/tracer/sample_async.cpp b/projects/rocprofiler/samples/tracer/sample_async.cpp index d151bef242..1a6d816875 100644 --- a/projects/rocprofiler/samples/tracer/sample_async.cpp +++ b/projects/rocprofiler/samples/tracer/sample_async.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include "../common/common.h" int main(int argc, char** argv) { diff --git a/projects/rocprofiler/src/api/rocprofilerv2.cpp b/projects/rocprofiler/src/api/rocprofilerv2.cpp index 9792c2af41..b43b7ea1a1 100644 --- a/projects/rocprofiler/src/api/rocprofilerv2.cpp +++ b/projects/rocprofiler/src/api/rocprofilerv2.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/projects/rocprofiler/src/core/activity.h b/projects/rocprofiler/src/core/activity.h index d64b41c027..5ce4d8280f 100644 --- a/projects/rocprofiler/src/core/activity.h +++ b/projects/rocprofiler/src/core/activity.h @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #ifndef _SRC_CORE_ACTIVITY_H #define _SRC_CORE_ACTIVITY_H diff --git a/projects/rocprofiler/src/core/context.h b/projects/rocprofiler/src/core/context.h index fa1cb3ff71..65fd1df80a 100644 --- a/projects/rocprofiler/src/core/context.h +++ b/projects/rocprofiler/src/core/context.h @@ -1,24 +1,5 @@ -/****************************************************************************** -Copyright (c) 2018 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. -*******************************************************************************/ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #ifndef SRC_CORE_CONTEXT_H_ #define SRC_CORE_CONTEXT_H_ diff --git a/projects/rocprofiler/src/core/context_pool.h b/projects/rocprofiler/src/core/context_pool.h index d4c4462d7b..93a31ef468 100644 --- a/projects/rocprofiler/src/core/context_pool.h +++ b/projects/rocprofiler/src/core/context_pool.h @@ -1,24 +1,5 @@ -/****************************************************************************** -Copyright (c) 2018 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. -*******************************************************************************/ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #ifndef SRC_CORE_CONTEXT_POOL_H_ #define SRC_CORE_CONTEXT_POOL_H_ diff --git a/projects/rocprofiler/src/core/core_timer.h b/projects/rocprofiler/src/core/core_timer.h index 25728c4bb3..7ababfb132 100644 --- a/projects/rocprofiler/src/core/core_timer.h +++ b/projects/rocprofiler/src/core/core_timer.h @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #ifndef _CORE_TIMER_H_ #define _CORE_TIMER_H_ diff --git a/projects/rocprofiler/src/core/profiling_lock.cpp b/projects/rocprofiler/src/core/profiling_lock.cpp index efa15b26e5..ae2c4685dc 100644 --- a/projects/rocprofiler/src/core/profiling_lock.cpp +++ b/projects/rocprofiler/src/core/profiling_lock.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/projects/rocprofiler/src/core/profiling_lock.h b/projects/rocprofiler/src/core/profiling_lock.h index f05d3fa4d5..bf959b97a6 100644 --- a/projects/rocprofiler/src/core/profiling_lock.h +++ b/projects/rocprofiler/src/core/profiling_lock.h @@ -1,3 +1,5 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #ifndef _SRC_CORE_PROFILING_LOCK_H #define _SRC_CORE_PROFILING_LOCK_H diff --git a/projects/rocprofiler/src/core/proxy_queue.cpp b/projects/rocprofiler/src/core/proxy_queue.cpp index b0436c9b71..71f691bea0 100644 --- a/projects/rocprofiler/src/core/proxy_queue.cpp +++ b/projects/rocprofiler/src/core/proxy_queue.cpp @@ -1,24 +1,5 @@ -/****************************************************************************** -Copyright (c) 2018 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. -*******************************************************************************/ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #include "core/proxy_queue.h" diff --git a/projects/rocprofiler/src/core/proxy_queue.h b/projects/rocprofiler/src/core/proxy_queue.h index 3374b81674..c2e9620590 100644 --- a/projects/rocprofiler/src/core/proxy_queue.h +++ b/projects/rocprofiler/src/core/proxy_queue.h @@ -1,24 +1,5 @@ -/****************************************************************************** -Copyright (c) 2018 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. -*******************************************************************************/ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT #ifndef _SRC_CORE_PROXY_QUEUE_H #define _SRC_CORE_PROXY_QUEUE_H diff --git a/projects/rocprofiler/src/tools/ctrl.cpp b/projects/rocprofiler/src/tools/ctrl.cpp index 1ee863662f..9c595d55fd 100644 --- a/projects/rocprofiler/src/tools/ctrl.cpp +++ b/projects/rocprofiler/src/tools/ctrl.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include "rocprofiler.h" diff --git a/projects/rocprofiler/tests-v2/featuretests/gtests_main.cpp b/projects/rocprofiler/tests-v2/featuretests/gtests_main.cpp index 1d20fe2bc8..69a168abd9 100644 --- a/projects/rocprofiler/tests-v2/featuretests/gtests_main.cpp +++ b/projects/rocprofiler/tests-v2/featuretests/gtests_main.cpp @@ -1,3 +1,6 @@ +// Copyright © Advanced Micro Devices, Inc., or its affiliates. +// SPDX-License-Identifier: MIT + #include #include