]> www.infradead.org Git - linux.git/commitdiff
perf test: Move attr files into shell directory where they are used
authorIan Rogers <irogers@google.com>
Tue, 15 Oct 2024 00:01:58 +0000 (17:01 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 17 Oct 2024 20:17:36 +0000 (13:17 -0700)
Now the attr tests are shell tests move the associated python and
configuration files. Update the installation build rules for the new
directories. Recycle the lib install rules for python files allowing
the explicit attr.py install line to be dropped.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: zhaimingbing <zhaimingbing@cmss.chinamobile.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ze Gao <zegao2021@gmail.com>
Cc: Weilin Wang <weilin.wang@intel.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Leo Yan <leo.yan@linux.dev>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Link: https://lore.kernel.org/r/20241015000158.871828-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
53 files changed:
tools/perf/Makefile.perf
tools/perf/tests/shell/attr.sh
tools/perf/tests/shell/attr/README [moved from tools/perf/tests/attr/README with 100% similarity]
tools/perf/tests/shell/attr/base-record [moved from tools/perf/tests/attr/base-record with 100% similarity]
tools/perf/tests/shell/attr/base-record-spe [moved from tools/perf/tests/attr/base-record-spe with 100% similarity]
tools/perf/tests/shell/attr/base-stat [moved from tools/perf/tests/attr/base-stat with 100% similarity]
tools/perf/tests/shell/attr/system-wide-dummy [moved from tools/perf/tests/attr/system-wide-dummy with 100% similarity]
tools/perf/tests/shell/attr/test-record-C0 [moved from tools/perf/tests/attr/test-record-C0 with 100% similarity]
tools/perf/tests/shell/attr/test-record-basic [moved from tools/perf/tests/attr/test-record-basic with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-any [moved from tools/perf/tests/attr/test-record-branch-any with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-any [moved from tools/perf/tests/attr/test-record-branch-filter-any with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-any_call [moved from tools/perf/tests/attr/test-record-branch-filter-any_call with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-any_ret [moved from tools/perf/tests/attr/test-record-branch-filter-any_ret with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-hv [moved from tools/perf/tests/attr/test-record-branch-filter-hv with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-ind_call [moved from tools/perf/tests/attr/test-record-branch-filter-ind_call with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-k [moved from tools/perf/tests/attr/test-record-branch-filter-k with 100% similarity]
tools/perf/tests/shell/attr/test-record-branch-filter-u [moved from tools/perf/tests/attr/test-record-branch-filter-u with 100% similarity]
tools/perf/tests/shell/attr/test-record-count [moved from tools/perf/tests/attr/test-record-count with 100% similarity]
tools/perf/tests/shell/attr/test-record-data [moved from tools/perf/tests/attr/test-record-data with 100% similarity]
tools/perf/tests/shell/attr/test-record-dummy-C0 [moved from tools/perf/tests/attr/test-record-dummy-C0 with 100% similarity]
tools/perf/tests/shell/attr/test-record-freq [moved from tools/perf/tests/attr/test-record-freq with 100% similarity]
tools/perf/tests/shell/attr/test-record-graph-default [moved from tools/perf/tests/attr/test-record-graph-default with 100% similarity]
tools/perf/tests/shell/attr/test-record-graph-default-aarch64 [moved from tools/perf/tests/attr/test-record-graph-default-aarch64 with 100% similarity]
tools/perf/tests/shell/attr/test-record-graph-dwarf [moved from tools/perf/tests/attr/test-record-graph-dwarf with 100% similarity]
tools/perf/tests/shell/attr/test-record-graph-fp [moved from tools/perf/tests/attr/test-record-graph-fp with 100% similarity]
tools/perf/tests/shell/attr/test-record-graph-fp-aarch64 [moved from tools/perf/tests/attr/test-record-graph-fp-aarch64 with 100% similarity]
tools/perf/tests/shell/attr/test-record-group-sampling [moved from tools/perf/tests/attr/test-record-group-sampling with 100% similarity]
tools/perf/tests/shell/attr/test-record-group-sampling1 [moved from tools/perf/tests/attr/test-record-group-sampling1 with 100% similarity]
tools/perf/tests/shell/attr/test-record-group-sampling2 [moved from tools/perf/tests/attr/test-record-group-sampling2 with 100% similarity]
tools/perf/tests/shell/attr/test-record-group1 [moved from tools/perf/tests/attr/test-record-group1 with 100% similarity]
tools/perf/tests/shell/attr/test-record-group2 [moved from tools/perf/tests/attr/test-record-group2 with 100% similarity]
tools/perf/tests/shell/attr/test-record-group3 [moved from tools/perf/tests/attr/test-record-group3 with 100% similarity]
tools/perf/tests/shell/attr/test-record-no-buffering [moved from tools/perf/tests/attr/test-record-no-buffering with 100% similarity]
tools/perf/tests/shell/attr/test-record-no-inherit [moved from tools/perf/tests/attr/test-record-no-inherit with 100% similarity]
tools/perf/tests/shell/attr/test-record-no-samples [moved from tools/perf/tests/attr/test-record-no-samples with 100% similarity]
tools/perf/tests/shell/attr/test-record-period [moved from tools/perf/tests/attr/test-record-period with 100% similarity]
tools/perf/tests/shell/attr/test-record-pfm-period [moved from tools/perf/tests/attr/test-record-pfm-period with 100% similarity]
tools/perf/tests/shell/attr/test-record-raw [moved from tools/perf/tests/attr/test-record-raw with 100% similarity]
tools/perf/tests/shell/attr/test-record-spe-period [moved from tools/perf/tests/attr/test-record-spe-period with 100% similarity]
tools/perf/tests/shell/attr/test-record-spe-period-term [moved from tools/perf/tests/attr/test-record-spe-period-term with 100% similarity]
tools/perf/tests/shell/attr/test-record-spe-physical-address [moved from tools/perf/tests/attr/test-record-spe-physical-address with 100% similarity]
tools/perf/tests/shell/attr/test-record-user-regs-no-sve-aarch64 [moved from tools/perf/tests/attr/test-record-user-regs-no-sve-aarch64 with 100% similarity]
tools/perf/tests/shell/attr/test-record-user-regs-old-sve-aarch64 [moved from tools/perf/tests/attr/test-record-user-regs-old-sve-aarch64 with 100% similarity]
tools/perf/tests/shell/attr/test-record-user-regs-sve-aarch64 [moved from tools/perf/tests/attr/test-record-user-regs-sve-aarch64 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-C0 [moved from tools/perf/tests/attr/test-stat-C0 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-basic [moved from tools/perf/tests/attr/test-stat-basic with 100% similarity]
tools/perf/tests/shell/attr/test-stat-default [moved from tools/perf/tests/attr/test-stat-default with 100% similarity]
tools/perf/tests/shell/attr/test-stat-detailed-1 [moved from tools/perf/tests/attr/test-stat-detailed-1 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-detailed-2 [moved from tools/perf/tests/attr/test-stat-detailed-2 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-detailed-3 [moved from tools/perf/tests/attr/test-stat-detailed-3 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-group1 [moved from tools/perf/tests/attr/test-stat-group1 with 100% similarity]
tools/perf/tests/shell/attr/test-stat-no-inherit [moved from tools/perf/tests/attr/test-stat-no-inherit with 100% similarity]
tools/perf/tests/shell/lib/attr.py [moved from tools/perf/tests/attr.py with 100% similarity]

index 9dd2e8d3f3c9b74d47221184db5c8e78a93b3811..105f734b68201f9e95b9030487f0722239fc5ad2 100644 (file)
@@ -1128,12 +1128,11 @@ endif
 install-tests: all install-gtk
        $(call QUIET_INSTALL, tests) \
                $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \
-               $(INSTALL) tests/attr.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \
                $(INSTALL) tests/pe-file.exe* '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests'; \
-               $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \
-               $(INSTALL) tests/attr/* -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/attr'; \
                $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell'; \
                $(INSTALL) tests/shell/*.sh '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell'; \
+               $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/attr'; \
+               $(INSTALL) tests/shell/attr/* -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/attr'; \
                $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \
                $(INSTALL) tests/shell/lib/*.sh -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \
                $(INSTALL) tests/shell/lib/*.py -m 644 '$(DESTDIR_SQ)$(perfexec_instdir_SQ)/tests/shell/lib'; \
index e094f3baffb7c2414fd707a36ea46928cbf16a39..5a4e43b2471de811b49d548e6f8535b9e03d49c7 100755 (executable)
@@ -17,6 +17,6 @@ trap trap_cleanup EXIT TERM INT
 
 shelldir=$(dirname "$0")
 perf_path=$(which perf)
-python "${shelldir}"/../attr.py -d "${shelldir}"/../attr -v -p "$perf_path"
+python "${shelldir}"/lib/attr.py -d "${shelldir}"/attr -v -p "$perf_path"
 cleanup
 exit $err