]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf test: Introduce --list-workloads to list the available workloads
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 20 Oct 2024 02:18:41 +0000 (23:18 -0300)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 22 Oct 2024 04:10:33 +0000 (21:10 -0700)
commit13c138308d15cb194db53d0f24a4dd9de37193f3
treeec5585e0d878587597515b3742dcb7abd9390dd6
parent18b63d63cd0148fef02c6c3f33a596ad7ee97a9a
perf test: Introduce --list-workloads to list the available workloads

Using it:

  $ perf test -w noplop
  No workload found: noplop
  $
  $ perf test -w
   Error: switch `w' requires a value
   Usage: perf test [<options>] [{list <test-name-fragment>|[<test-name-fragments>|<test-numbers>]}]

      -w, --workload <work>
                            workload to run for testing, use '--list-workloads' to list the available ones.
  $
  $ perf test --list-workloads
  noploop
  thloop
  leafloop
  sqrtloop
  brstack
  datasym
  landlock
  $

Would be good at some point to have a description in 'struct test_workload'.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Clark Williams <williams@redhat.com>
Link: https://lore.kernel.org/r/20241020021842.1752770-3-acme@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/builtin-test.c