diff options
author | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2007-10-26 21:31:48 +0000 |
---|---|---|
committer | Glenn Humphrey <glenn.humphrey@oarcorp.com> | 2007-10-26 21:31:48 +0000 |
commit | 43e3429260fc5d8d5f4f7586abb663139191e575 (patch) | |
tree | 6bbb242076edc610e55a95add9e78735db703e45 /testsuites/libtests | |
parent | 2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com> (diff) | |
download | rtems-43e3429260fc5d8d5f4f7586abb663139191e575.tar.bz2 |
2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* cpuuse/task2.c, rtmonuse/rtmonuse.scn, rtmonuse/task1.c: Add new
cases for untested routines.
Diffstat (limited to 'testsuites/libtests')
-rw-r--r-- | testsuites/libtests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/libtests/cpuuse/task2.c | 7 | ||||
-rw-r--r-- | testsuites/libtests/rtmonuse/rtmonuse.scn | 72 | ||||
-rw-r--r-- | testsuites/libtests/rtmonuse/task1.c | 15 |
4 files changed, 80 insertions, 19 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index 8b8c99dc5f..dee0268d2f 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,3 +1,8 @@ +2007-10-26 Glenn Humphrey <glenn.humphrey@OARcorp.com> + + * cpuuse/task2.c, rtmonuse/rtmonuse.scn, rtmonuse/task1.c: Add new + cases for untested routines. + 2007-07-24 Joel Sherrill <joel.sherrill@oarcorp.com> * cpuuse/init.c: Do not delete the Init task. Leaving it suspended lets diff --git a/testsuites/libtests/cpuuse/task2.c b/testsuites/libtests/cpuuse/task2.c index 6310d8e624..0b218d140d 100644 --- a/testsuites/libtests/cpuuse/task2.c +++ b/testsuites/libtests/cpuuse/task2.c @@ -41,7 +41,14 @@ rtems_task Task_2( while ( !testsFinished ); showTaskSwitches (); + puts( "" ); rtems_cpu_usage_report(); + puts( "" ); + puts( "TA2 - RESETTING USAGE STATISTICS" ); + rtems_cpu_usage_reset(); + puts( "" ); + rtems_cpu_usage_report(); + puts( "" ); puts( "*** END OF CPU USAGE LIBRARY TEST ***" ); rtems_test_exit( 0 ); } diff --git a/testsuites/libtests/rtmonuse/rtmonuse.scn b/testsuites/libtests/rtmonuse/rtmonuse.scn index bb4e8814da..ddea046a78 100644 --- a/testsuites/libtests/rtmonuse/rtmonuse.scn +++ b/testsuites/libtests/rtmonuse/rtmonuse.scn @@ -1,19 +1,19 @@ -*** TEST 20 *** -TA1 - rtems_rate_monotonic_create id = 0x28010001 -TA1 - rtems_rate_monotonic_ident id = 0x28010001 -TA1 - (0x28010001) period 2 -TA2 - rtems_rate_monotonic_create id = 0x28010002 -TA2 - rtems_rate_monotonic_ident id = 0x28010002 -TA2 - (0x28010002) period 2 -TA3 - rtems_rate_monotonic_create id = 0x28010003 -TA3 - rtems_rate_monotonic_ident id = 0x28010003 -TA3 - (0x28010003) period 2 -TA4 - rtems_rate_monotonic_create id = 0x28010004 -TA4 - rtems_rate_monotonic_ident id = 0x28010004 -TA4 - (0x28010004) period 2 -TA5 - rtems_rate_monotonic_create id = 0x28010005 -TA5 - rtems_rate_monotonic_ident id = 0x28010005 -TA5 - (0x28010005) period 100 +*** RATE MONOTONIC PERIOD STATISTICS TEST *** +TA1 - rtems_rate_monotonic_create id = 0x42010001 +TA1 - rtems_rate_monotonic_ident id = 0x42010001 +TA1 - (0x42010001) period 2 +TA2 - rtems_rate_monotonic_create id = 0x42010002 +TA2 - rtems_rate_monotonic_ident id = 0x42010002 +TA2 - (0x42010002) period 2 +TA3 - rtems_rate_monotonic_create id = 0x42010003 +TA3 - rtems_rate_monotonic_ident id = 0x42010003 +TA3 - (0x42010003) period 2 +TA4 - rtems_rate_monotonic_create id = 0x42010004 +TA4 - rtems_rate_monotonic_ident id = 0x42010004 +TA4 - (0x42010004) period 2 +TA5 - rtems_rate_monotonic_create id = 0x42010005 +TA5 - rtems_rate_monotonic_ident id = 0x42010005 +TA5 - (0x42010005) period 100 TA5 - PERIODS CHECK OK (1) TA5 - PERIODS CHECK OK (2) TA5 - PERIODS CHECK OK (3) @@ -24,4 +24,42 @@ TA5 - PERIODS CHECK OK (7) TA5 - PERIODS CHECK OK (8) TA5 - PERIODS CHECK OK (9) TA5 - PERIODS CHECK OK (10) -*** END OF TEST 20 *** + +Period information by period +--- CPU times are seconds:microseconds --- +--- Wall times are seconds:microseconds --- + ID OWNER COUNT MISSED CPU TIME WALL TIME + MIN/MAX/AVG MIN/MAX/AVG +0x42010001 TA1 502 0 0:000039/0:042650/0:004158 0:000039/0:020118/0:002848 +0x42010002 TA2 502 0 0:000041/0:042657/0:004309 0:000041/0:020116/0:002848 +0x42010003 TA3 501 0 0:000041/0:041564/0:003653 0:000041/0:020003/0:002814 +0x42010004 TA4 501 0 0:000043/0:044075/0:004911 0:000043/0:020004/0:002814 +0x42010005 TA5 10 0 0:000065/0:005413/0:002739 0:000065/1:000457/0:041058 + +TA5 - PERIOD STATISTICS RESET + +Period information by period +--- CPU times are seconds:microseconds --- +--- Wall times are seconds:microseconds --- + ID OWNER COUNT MISSED CPU TIME WALL TIME + MIN/MAX/AVG MIN/MAX/AVG +0x42010001 TA1 502 0 0:000039/0:042650/0:004158 0:000039/0:020118/0:002848 +0x42010002 TA2 502 0 0:000041/0:042657/0:004309 0:000041/0:020116/0:002848 +0x42010003 TA3 501 0 0:000041/0:041564/0:003653 0:000041/0:020003/0:002814 +0x42010004 TA4 501 0 0:000043/0:044075/0:004911 0:000043/0:020004/0:002814 +0x42010005 TA5 0 0 + +TA5 - ALL PERIOD STATISTICS RESET + +Period information by period +--- CPU times are seconds:microseconds --- +--- Wall times are seconds:microseconds --- + ID OWNER COUNT MISSED CPU TIME WALL TIME + MIN/MAX/AVG MIN/MAX/AVG +0x42010001 TA1 0 0 +0x42010002 TA2 0 0 +0x42010003 TA3 0 0 +0x42010004 TA4 0 0 +0x42010005 TA5 0 0 + +*** END OF RATE MONOTONIC PERIOD STATISTICS TEST *** diff --git a/testsuites/libtests/rtmonuse/task1.c b/testsuites/libtests/rtmonuse/task1.c index 083a514555..b69bd412e7 100644 --- a/testsuites/libtests/rtmonuse/task1.c +++ b/testsuites/libtests/rtmonuse/task1.c @@ -106,12 +106,23 @@ rtems_task Task_1_through_5( FLUSH_OUTPUT(); if ( pass == 10 ) { - puts( "*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***" ); puts( "" ); - rtems_cpu_usage_report(); + rtems_rate_monotonic_report_statistics(); + + rtems_rate_monotonic_reset_statistics( rmid ); + puts( "" ); + puts( "TA5 - PERIOD STATISTICS RESET" ); + puts( "" ); + rtems_rate_monotonic_report_statistics(); + + rtems_rate_monotonic_reset_all_statistics(); + puts( "" ); + puts( "TA5 - ALL PERIOD STATISTICS RESET" ); puts( "" ); rtems_rate_monotonic_report_statistics(); + puts( "" ); + puts( "*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***" ); rtems_test_exit( 0 ); } |