Skip to content

Fix signaltest output when quiet

Daniel Wagner linux-rt-users 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rt-utils: Move timestamp calc helper to common headersrc/cyclictest/cyclictest.c src/include/rt-utils.h src/pi_tests/pi_stress.c +1 more+40 -631 reply
2/4rt-utils: Move time defininitions to common headersrc/backfire/sendme.c src/include/rt-utils.h src/pi_tests/pi_stress.c +6 more+7 -261 reply
3/4rt-utils: Move ARRAY_SIZE to common headersrc/cyclictest/cyclictest.c src/include/rt-utils.h src/signaltest/signaltest.c+2 -41 reply
4/4signaltest: Only print from the first thread stats when quietsrc/signaltest/signaltest.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [rt-tests 0/4] Fix signaltest output when quiet

When the quiet option is used don't print all threads stats. The first thread will pause every 16 cycles for 10000us. This will show up in the max values for all other threads when the final results are printed:

 # signaltest -q  -D 2s
 T: 0 ( 4517) P: 0 C:   3121 Min:      5 Act:    8 Avg:    8 Max:      19
 T: 1 ( 4518) P: 0 C:   3121 Min:      5 Act:10065 Avg:  639 Max:   10073

We could also remove the sleep but then the system gets fully loaded by the test. Furthermore, we would keep the path pretty hot and that's not ideal if one wants to test the eratic signal behavior. So only consider the first thread for the stats.

Daniel Wagner (4):
rt-utils: Move timestamp calc helper to common header
rt-utils: Move time defininitions to common header
rt-utils: Move ARRAY_SIZE to common header
signaltest: Only print from the first thread stats when quiet

 src/backfire/sendme.c         |  3 ---
 src/cyclictest/cyclictest.c   | 42 ------------------------------
 src/include/rt-utils.h        | 48 +++++++++++++++++++++++++++++++++++
 src/pi_tests/pi_stress.c      | 17 -------------
 src/pmqtest/pmqtest.c         |  4 ---
 src/ptsematest/ptsematest.c   |  2 --
 src/queuelat/queuelat.c       |  2 +-
 src/signaltest/signaltest.c   | 22 +---------------
 src/sigwaittest/sigwaittest.c |  2 --
 src/svsematest/svsematest.c   |  2 --
 10 files changed, 50 insertions(+), 94 deletions(-)
Signature · 1 line
2.28.0