rt-tests::signaltest: update trace/display capability to match cyclictest
PATCH 1/1 rt-tests::signaltest: update trace/display capability to match cyclictest
Greetings,
signaltest's trace capability is busted with latest -rt. It seemed reasonable to clone and plug in differences, since they were apparently twins at one time.
commit 473f90f133343bc80557a85244dd0d58e6b7117a
Author: Mike Galbraith <[email protected]> Date: Fri Jul 30 14:12:36 2010 +0200
signaltest: update trace/display capability to match cyclictest
Clone/edit src/cyclictest/cyclictest.c -> src/signaltest/signaltest.c, and insert signaltest.c functionality. Move src/cyclictest/rt_numa.h to src/include, as it's common now. Clone/edit the cyclictest manpage as well.
Deduct time the first thread sleeps, so it doesn't affect max latency of followers.
---
Makefile | 3 +- rt-tests.spec-in | 6 + src/cyclictest/rt_numa.h | 125 ----- src/include/rt_numa.h | 125 +++++ src/signaltest/signaltest.8 | 174 +++++++ src/signaltest/signaltest.c | 1167 ++++++++++++++++++++++++++++++++++++++----- 6 files changed, 1352 insertions(+), 248 deletions(-)
Makefile +2 -1
@@ -58,7 +58,7 @@ cyclictest: cyclictest.o rt-utils.o $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS) signaltest: signaltest.o rt-utils.o - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS) pi_stress: pi_stress.o $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
@@ -122,6 +122,7 @@ install: all install -m 644 src/backfire/backfire.c "$(DESTDIR)$(srcdir)/backfire/backfire.c" gzip src/backfire/backfire.4 -c >"$(DESTDIR)$(mandir)/man4/backfire.4.gz" gzip src/cyclictest/cyclictest.8 -c >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" + gzip src/signaltest/signaltest.8 -c >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz" gzip src/pi_tests/pi_stress.8 -c >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" gzip src/hwlatdetect/hwlatdetect.8 -c >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" gzip src/ptsematest/ptsematest.8 -c >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz"
rt-tests.spec-in +6 -0
@@ -50,6 +50,7 @@ rm -rf $RPM_BUILD_ROOT /usr/src/backfire/backfire.c %doc /usr/share/man/man8/cyclictest.8.gz +/usr/share/man/man8/signaltest.8.gz /usr/share/man/man8/pi_stress.8.gz /usr/share/man/man8/hwlatdetect.8.gz /usr/share/man/man4/backfire.4.gz
@@ -61,6 +62,11 @@ rm -rf $RPM_BUILD_ROOT /usr/share/man/man8/hackbench.8.gz %changelog +* Fri Jul 30 2010 Mike Galbraith <[email protected]> - 0.72-1 +- update signaltest: convert cyclictest.c to signaltest.c, so + the two look/act the same, and have the same trace capability. + Copy/edit manpage for same. + * Fri Jun 25 2010 Clark Williams <[email protected]> - 0.72-1 - changed 'diff' variable in timerthread() routine to be unsigned 64-bit to avoid overflow issues in debugging
src/cyclictest/rt_numa.h deleted +0 -125
125 lines not on this page · raw message
src/include/rt_numa.h new file +125 -0
125 lines not on this page · raw message
src/signaltest/signaltest.8 new file +174 -0
174 lines not on this page · raw message
src/signaltest/signaltest.c +1045 -122
1,436 lines not on this page · raw message