perf test: Add a shell wrapper for "Setup struct perf_event_attr"
authorIan Rogers <irogers@google.com>
Tue, 15 Oct 2024 00:01:56 +0000 (17:01 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 17 Oct 2024 20:17:36 +0000 (13:17 -0700)
commit8519e4f44c2af72214dc029f0334be068466e71f
treeeb3a73fe1a23e3517ad2deb923336c51792c5524
parent314909f13cc12d47c468602c37dace512d225eeb
perf test: Add a shell wrapper for "Setup struct perf_event_attr"

The "Setup struct perf_event_attr" test in attr.c does a bunch of
directory finding to set up running a python test that in general is
more brittle than similar logic we have in shell tests. Add a shell
test that invokes and runs the tests in the python attr.py script.

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-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/attr.sh [new file with mode: 0755]