[PATCHSET 0/6] perf test: Improve perf record tests (v1)

From: Namhyung Kim
Date: Wed Sep 07 2022 - 02:46:56 EST


Hello,

This patchset improves the perf record tests to check more cases so
that it can find problems early. The motivation is a failure in
per-thread mmap with multi-threaded targets which Adrian is working on
the fix.

I added a custom test program and more combinations like system-wide
and command line workload (in per-process mode) testing with
multi-threaded recording mode.

Currently it fails on per-thread and register capture tests. The
system-wide test was skipped since I ran it as a normal user. We can
use this to verify Adirian's fix and future works.

$ ./perf test -v 86
86: perf record tests :
--- start ---
test child forked, pid 1190747
Build a test program
Basic --per-thread mode test
Per-thread record [Failed record]
Register capture test
Register capture test [Failed missing output]
Basic --system-wide mode test
System-wide record [Skipped not supported]
Basic target workload test
Basic target workload test [Success]
test child finished with -1
---- end ----
perf record tests: FAILED!


You can find it in 'perf/record-test-v1' branch in

git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git

Thanks,
Namhyung


Namhyung Kim (6):
perf test: Do not use instructions:u explicitly
perf test: Use a test program in perf record tests
perf test: Test record with --threads option
perf test: Add system-wide mode in perf record tests
perf test: Add target workload test in perf record tests
perf test: Do not set TEST_SKIP for record subtests

tools/perf/tests/shell/record.sh | 150 +++++++++++++++++++++++++++----
1 file changed, 133 insertions(+), 17 deletions(-)


base-commit: 6c3bd8d3e01d9014312caa52e4ef1c29d5249648
--
2.37.2.789.g6183377224-goog