]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Add a runs-per-test flag
authorIan Rogers <irogers@google.com>
Fri, 10 Jan 2025 04:57:35 +0000 (20:57 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 16 Jan 2025 19:01:03 +0000 (11:01 -0800)
commit1c0d9816e9cb9548c74e04971300ec9cecf2c0d7
tree621104a07d8b9473eb6292a40943caea142b81f0
parent4dd8bc4bf58e973eea3fdf5e2013011d83fba6c4
perf test: Add a runs-per-test flag

To detect flakes it is useful to run tests more than once. Add a
runs-per-test flag that will run each test multiple times. Example
output:

```
$ perf test -r 3 lbr -v
122: perf record LBR tests                                           : Ok
122: perf record LBR tests                                           : Ok
122: perf record LBR tests                                           : Ok
```

Update the documentation for the runs-per-test option.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250110045736.598281-5-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/Documentation/perf-test.txt
tools/perf/tests/builtin-test.c