mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
perf arch x86: Add shellcheck to build
Add shellcheck for: tools/perf/arch/x86/tests/gen-insn-x86-dat.sh tools/perf/arch/x86/entry/syscalls/syscalltbl.sh Address a minor quoting issue. Reviewed-by: James Clark <james.clark@arm.com> Signed-off-by: Ian Rogers <irogers@google.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Kan Liang <kan.liang@linux.intel.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@amd.com> Link: https://lore.kernel.org/r/20240409023216.2342032-3-irogers@google.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
646e22eb87
commit
ec440763bb
3 changed files with 29 additions and 1 deletions
|
@ -1,2 +1,16 @@
|
|||
perf-y += util/
|
||||
perf-y += tests/
|
||||
|
||||
ifdef SHELLCHECK
|
||||
SHELL_TESTS := entry/syscalls/syscalltbl.sh
|
||||
TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
|
||||
else
|
||||
SHELL_TESTS :=
|
||||
TEST_LOGS :=
|
||||
endif
|
||||
|
||||
$(OUTPUT)%.shellcheck_log: %
|
||||
$(call rule_mkdir)
|
||||
$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
|
||||
|
||||
perf-y += $(TEST_LOGS)
|
||||
|
|
|
@ -10,3 +10,17 @@ perf-$(CONFIG_AUXTRACE) += insn-x86.o
|
|||
endif
|
||||
perf-$(CONFIG_X86_64) += bp-modify.o
|
||||
perf-y += amd-ibs-via-core-pmu.o
|
||||
|
||||
ifdef SHELLCHECK
|
||||
SHELL_TESTS := gen-insn-x86-dat.sh
|
||||
TEST_LOGS := $(SHELL_TESTS:%=%.shellcheck_log)
|
||||
else
|
||||
SHELL_TESTS :=
|
||||
TEST_LOGS :=
|
||||
endif
|
||||
|
||||
$(OUTPUT)%.shellcheck_log: %
|
||||
$(call rule_mkdir)
|
||||
$(Q)$(call echo-cmd,test)shellcheck -a -S warning "$<" > $@ || (cat $@ && rm $@ && false)
|
||||
|
||||
perf-y += $(TEST_LOGS)
|
||||
|
|
|
@ -11,7 +11,7 @@ if [ "$(uname -m)" != "x86_64" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
cd $(dirname $0)
|
||||
cd "$(dirname $0)"
|
||||
|
||||
trap 'echo "Might need a more recent version of binutils"' EXIT
|
||||
|
||||
|
|
Loading…
Reference in a new issue