mbox series

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

Message ID 20200901154657.30198-1-dwagner@suse.de
Headers show
Series Fix signaltest output when quiet | expand

Message

Daniel Wagner Sept. 1, 2020, 3:46 p.m. UTC
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(-)