Skip to content

Commit 04f8371

Browse files
lenticularis39rostedt
authored andcommitted
rtla/tests: Limit duration to maximum of 10s
Many of the original rtla tests included durations of 1 minute and 30 seconds. Experience has shown this is unnecessary, since 10 seconds as waiting time for samples to appear. Change duration of all rtla tests to at most 10 seconds. This speeds up testing significantly. Before: $ make check All tests successful. Files=3, Tests=54, 536 wallclock secs ( 0.03 usr 0.00 sys + 20.31 cusr 22.02 csys = 42.36 CPU) Result: PASS After: $ make check ... All tests successful. Files=3, Tests=54, 196 wallclock secs ( 0.03 usr 0.01 sys + 20.28 cusr 20.68 csys = 41.00 CPU) Result: PASS Cc: John Kacur <[email protected]> Cc: Luis Goncalves <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Chang Yin <[email protected]> Cc: Costa Shulyupin <[email protected]> Cc: Crystal Wood <[email protected]> Cc: Gabriele Monaco <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Tomas Glozar <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 4e26f84 commit 04f8371

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tools/tracing/rtla/tests/hwnoise.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ check "verify help page" \
1010
check "detect noise higher than one microsecond" \
1111
"hwnoise -c 0 -T 1 -d 5s -q"
1212
check "set the automatic trace mode" \
13-
"hwnoise -a 5 -d 30s" 2
13+
"hwnoise -a 5 -d 10s" 2
1414
check "set scheduling param to the osnoise tracer threads" \
15-
"hwnoise -P F:1 -c 0 -r 900000 -d 1M -q"
15+
"hwnoise -P F:1 -c 0 -r 900000 -d 10s -q"
1616
check "stop the trace if a single sample is higher than 1 us" \
17-
"hwnoise -s 1 -T 1 -t -d 30s" 2
17+
"hwnoise -s 1 -T 1 -t -d 10s" 2
1818
check "enable a trace event trigger" \
19-
"hwnoise -t -e osnoise:irq_noise trigger=\"hist:key=desc,duration:sort=desc,duration:vals=hitcount\" -d 1m"
19+
"hwnoise -t -e osnoise:irq_noise trigger=\"hist:key=desc,duration:sort=desc,duration:vals=hitcount\" -d 10s"
2020

2121
test_end

tools/tracing/rtla/tests/osnoise.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ set_timeout 2m
88
check "verify help page" \
99
"osnoise --help"
1010
check "verify the --priority/-P param" \
11-
"osnoise top -P F:1 -c 0 -r 900000 -d 1M -q"
11+
"osnoise top -P F:1 -c 0 -r 900000 -d 10s -q"
1212
check "verify the --stop/-s param" \
1313
"osnoise top -s 30 -T 1 -t" 2
1414
check "verify the --trace param" \
1515
"osnoise hist -s 30 -T 1 -t" 2
1616
check "verify the --entries/-E param" \
17-
"osnoise hist -P F:1 -c 0 -r 900000 -d 1M -b 10 -E 25"
17+
"osnoise hist -P F:1 -c 0 -r 900000 -d 10s -b 10 -E 25"
1818

1919
# Test setting default period by putting an absurdly high period
2020
# and stopping on threshold.

tools/tracing/rtla/tests/timerlat.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ check "verify help page" \
2525
check "verify -s/--stack" \
2626
"timerlat top -s 3 -T 10 -t" 2
2727
check "verify -P/--priority" \
28-
"timerlat top -P F:1 -c 0 -d 1M -q"
28+
"timerlat top -P F:1 -c 0 -d 10s -q"
2929
check "test in nanoseconds" \
30-
"timerlat top -i 2 -c 0 -n -d 30s" 2
30+
"timerlat top -i 2 -c 0 -n -d 10s" 2
3131
check "set the automatic trace mode" \
3232
"timerlat top -a 5 --dump-tasks" 2
3333
check "print the auto-analysis if hits the stop tracing condition" \
3434
"timerlat top --aa-only 5" 2
3535
check "disable auto-analysis" \
3636
"timerlat top -s 3 -T 10 -t --no-aa" 2
3737
check "verify -c/--cpus" \
38-
"timerlat hist -c 0 -d 30s"
38+
"timerlat hist -c 0 -d 10s"
3939
check "hist test in nanoseconds" \
40-
"timerlat hist -i 2 -c 0 -n -d 30s" 2
40+
"timerlat hist -i 2 -c 0 -n -d 10s" 2
4141

4242
# Actions tests
4343
check "trace output through -t" \

0 commit comments

Comments
 (0)