Skip to content

perf test: Improve perf record tests (v1)

Namhyung Kim linux-perf-users lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6perf test: Do not use instructions:u explicitlytools/perf/tests/shell/record.sh+5 -51 reply
2/6perf test: Use a test program in perf record teststools/perf/tests/shell/record.sh+54 -45 replies
3/6perf test: Test record with --threads optiontools/perf/tests/shell/record.sh+15 -22 replies
4/6perf test: Add system-wide mode in perf record teststools/perf/tests/shell/record.sh+34 -01 reply
5/6perf test: Add target workload test in perf record teststools/perf/tests/shell/record.sh+31 -02 replies
6/6perf test: Do not set TEST_SKIP for record subteststools/perf/tests/shell/record.sh+0 -121 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAdrian Hunter
1/6R-b
2/6
3/6
4/6R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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

Signature · 1 line
2.37.2.789.g6183377224-goog