aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
diff options
context:
space:
mode:
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>2023-09-07 22:45:38 +0530
committerNamhyung Kim <namhyung@kernel.org>2023-09-26 21:47:12 -0700
commit35de80c709d730987c9a13911f836fbd92c5d1c5 (patch)
treed463f763e97f5cd54c6ddcce90ed431e8e60f36b /tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
parentperf kwork: Fix spelling mistake "Captuer" -> "Capture" (diff)
downloadwireguard-linux-35de80c709d730987c9a13911f836fbd92c5d1c5.tar.xz
wireguard-linux-35de80c709d730987c9a13911f836fbd92c5d1c5.zip
tests/shell: Fix shellcheck SC1090 to handle the location of sourced files
Running shellcheck on some of the shell scripts throws below error: In tests/shell/coresight/unroll_loop_thread_10.sh line 8: . "$(dirname $0)"/../lib/coresight.sh ^-- SC1090: Can't follow non-constant source. Use a directive to specify location. This happens on shellcheck version "0.6.0". Fix shellcheck warning for SC1090 using "shellcheck source="i option to mention the location of sourced files. Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Tested-by: Ian Rogers <irogers@google.com> Reviewed-by: Kajol Jain <kjain@linux.ibm.com> Cc: maddy@linux.ibm.com Cc: disgoel@linux.vnet.ibm.com Cc: linuxppc-dev@lists.ozlabs.org Link: https://lore.kernel.org/r/20230907171540.36736-2-atrajeev@linux.vnet.ibm.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh')
-rwxr-xr-xtools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh b/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
index 08a44e52ce9b..c17e442ac741 100755
--- a/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
+++ b/tools/perf/tests/shell/coresight/memcpy_thread_16k_10.sh
@@ -5,7 +5,10 @@
# Carsten Haitzler <carsten.haitzler@arm.com>, 2021
TEST="memcpy_thread"
+
+# shellcheck source=../lib/coresight.sh
. "$(dirname $0)"/../lib/coresight.sh
+
ARGS="16 10 1"
DATV="16k_10"
DATA="$DATD/perf-$TEST-$DATV.data"