linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Run tests in parallel
@ 2024-02-12 18:58 Ian Rogers
  2024-02-12 18:58 ` [PATCH v3 1/8] perf thread_map: Skip exited threads when scanning /proc Ian Rogers
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Ian Rogers @ 2024-02-12 18:58 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo,
	Namhyung Kim, Mark Rutland, Alexander Shishkin, Jiri Olsa,
	Ian Rogers, Adrian Hunter, Nathan Chancellor, Nick Desaulniers,
	Bill Wendling, Justin Stitt, James Clark, Athira Jajeev,
	Kan Liang, Yang Jihong, linux-kernel, linux-perf-users, llvm

If command line option '-p' is provided, start/fork all tests in the
main thread and then gather them in order at the end. On a laptop test
time was reduced from 5 minutes 21 seconds to 1 minute 50 seconds. The
option isn't default as the test shows up perf and test flakes.

The '-v' option is modified so that 'perf test -v' will give verbose
output only from failing tests.

v3 - fix a crash if shell test directory isn't found, remove merged patch.
v2 - fix parallel test output/verbose issue
v1 - initial PoC

Ian Rogers (8):
  perf thread_map: Skip exited threads when scanning /proc
  perf list: Add scandirat compatibility function
  perf tests: Avoid fork in perf_has_symbol test
  tools subcmd: Add a no exec function call option
  perf test: Rename builtin-test-list and add missed header guard
  perf tests: Use scandirat for shell script finding
  perf tests: Run time generate shell test suites
  perf tests: Add option to run tests in parallel

 tools/lib/subcmd/run-command.c                |   2 +
 tools/lib/subcmd/run-command.h                |   2 +
 tools/perf/tests/Build                        |   2 +-
 tools/perf/tests/builtin-test-list.c          | 207 ----------
 tools/perf/tests/builtin-test-list.h          |  12 -
 tools/perf/tests/builtin-test.c               | 369 ++++++++++--------
 tools/perf/tests/shell/lib/perf_has_symbol.sh |   2 +-
 tools/perf/tests/tests-scripts.c              | 257 ++++++++++++
 tools/perf/tests/tests-scripts.h              |   9 +
 tools/perf/util/print-events.c                |  12 +-
 tools/perf/util/thread_map.c                  |   9 +-
 tools/perf/util/util.c                        |  19 +
 tools/perf/util/util.h                        |   8 +
 13 files changed, 507 insertions(+), 403 deletions(-)
 delete mode 100644 tools/perf/tests/builtin-test-list.c
 delete mode 100644 tools/perf/tests/builtin-test-list.h
 create mode 100644 tools/perf/tests/tests-scripts.c
 create mode 100644 tools/perf/tests/tests-scripts.h

-- 
2.43.0.687.g38aa6559b0-goog


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-02-14  4:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-12 18:58 [PATCH v3 0/8] Run tests in parallel Ian Rogers
2024-02-12 18:58 ` [PATCH v3 1/8] perf thread_map: Skip exited threads when scanning /proc Ian Rogers
2024-02-12 18:58 ` [PATCH v3 2/8] perf list: Add scandirat compatibility function Ian Rogers
2024-02-12 18:58 ` [PATCH v3 3/8] perf tests: Avoid fork in perf_has_symbol test Ian Rogers
2024-02-12 18:58 ` [PATCH v3 4/8] tools subcmd: Add a no exec function call option Ian Rogers
2024-02-12 18:58 ` [PATCH v3 5/8] perf test: Rename builtin-test-list and add missed header guard Ian Rogers
2024-02-12 18:58 ` [PATCH v3 6/8] perf tests: Use scandirat for shell script finding Ian Rogers
2024-02-12 18:58 ` [PATCH v3 7/8] perf tests: Run time generate shell test suites Ian Rogers
2024-02-12 18:58 ` [PATCH v3 8/8] perf tests: Add option to run tests in parallel Ian Rogers
2024-02-14  1:14   ` Namhyung Kim
2024-02-14  4:33     ` Ian Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).