xref: /linux/tools/perf/Documentation/perf-test.txt (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1perf-test(1)
2============
3
4NAME
5----
6perf-test - Runs sanity tests.
7
8SYNOPSIS
9--------
10[verse]
11'perf test [<options>] [{list <test-name-fragment>|[<test-name-fragments>|<test-numbers>]}]'
12
13DESCRIPTION
14-----------
15This command does assorted sanity tests, initially through linked routines but
16also will look for a directory with more tests in the form of scripts.
17
18To get a list of available tests use 'perf test list', specifying a test name
19fragment will show all tests that have it.
20
21To run just specific tests, inform test name fragments or the numbers obtained
22from 'perf test list'.
23
24OPTIONS
25-------
26-s::
27--skip::
28	Tests to skip (comma separated numeric list).
29
30-v::
31--verbose::
32	Be more verbose.
33
34-S::
35--sequential::
36	Run tests one after the other, this is the default mode.
37
38-p::
39--parallel::
40	Run tests in parallel, speeds up the whole process but is not safe with
41	the current infrastructure, where some tests that compete for some resources,
42	for instance, 'perf probe' tests that add/remove probes or clean all probes, etc.
43
44-F::
45--dont-fork::
46	Do not fork child for each test, run all tests within single process, this
47	sets sequential mode.
48
49--dso::
50	Specify a DSO for the "Symbols" test.
51
52-w::
53--workload=::
54	Run a built-in workload, to list them use '--list-workloads', current ones include:
55	noploop, thloop, leafloop, sqrtloop, brstack, datasym and landlock.
56
57	Used with the shell script regression tests.
58
59	Some accept an extra parameter:
60
61		seconds: leafloop, noploop, sqrtloop, thloop
62		nrloops: brstack
63
64	The datasym and landlock workloads don't accept any.
65
66--list-workloads::
67	List the available workloads to use with -w/--workload.
68