diff options
author | James Clark <james.clark@linaro.org> | 2024-08-09 10:54:22 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2024-08-28 18:18:33 -0300 |
commit | 6f87543c74ddc9649cfd9a6e6908821cdb4d397a (patch) | |
tree | 70ecbf7fc059ef239438f739459170fd9ea77e0f /tools/perf | |
parent | d5726f1c8d421f000a9265601c28279e82d43db0 (diff) | |
download | linux-stable-6f87543c74ddc9649cfd9a6e6908821cdb4d397a.tar.gz linux-stable-6f87543c74ddc9649cfd9a6e6908821cdb4d397a.tar.bz2 linux-stable-6f87543c74ddc9649cfd9a6e6908821cdb4d397a.zip |
perf test trace_btf_enum: Fix shellcheck warning
Shellcheck versions < v0.7.2 can't follow this path so add the helper to
fix the following warning:
In tests/shell/trace_btf_enum.sh line 13:
. "$(dirname $0)"/lib/probe.sh
^--------------------------^ SC1090: Can't follow non-constant source.
Use a directive to specify location.
Fixes: d66763fed30f0bd8 ("perf test trace_btf_enum: Add regression test for the BTF augmentation of enums in 'perf trace'")
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240809095426.3065163-1-james.clark@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rwxr-xr-x | tools/perf/tests/shell/trace_btf_enum.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/tests/shell/trace_btf_enum.sh b/tools/perf/tests/shell/trace_btf_enum.sh index 7d407b52bea5..5a3b8a5a9b5c 100755 --- a/tools/perf/tests/shell/trace_btf_enum.sh +++ b/tools/perf/tests/shell/trace_btf_enum.sh @@ -10,6 +10,7 @@ non_syscall="timer:hrtimer_init,timer:hrtimer_start" TESTPROG="perf test -w landlock" +# shellcheck source=lib/probe.sh . "$(dirname $0)"/lib/probe.sh skip_if_no_perf_trace || exit 2 |