Changeset c4215ba in rtems


Ignore:
Timestamp:
Oct 26, 2007, 9:32:09 PM (13 years ago)
Author:
Glenn Humphrey <glenn.humphrey@…>
Branches:
4.8
Children:
1b03eed
Parents:
0f4f543
Message:

2007-10-26 Glenn Humphrey <glenn.humphrey@…>

  • cpuuse/task2.c, rtmonuse/rtmonuse.scn, rtmonuse/task1.c: Add new cases for untested routines.
Location:
testsuites/libtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r0f4f543 rc4215ba  
     12007-10-26      Glenn Humphrey <glenn.humphrey@OARcorp.com>
     2
     3        * cpuuse/task2.c, rtmonuse/rtmonuse.scn, rtmonuse/task1.c: Add new
     4        cases for untested routines.
     5
    162007-07-24      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/cpuuse/task2.c

    r0f4f543 rc4215ba  
    4242
    4343  showTaskSwitches ();
     44  puts( "" );
    4445  rtems_cpu_usage_report();
     46  puts( "" );
     47  puts( "TA2 - RESETTING USAGE STATISTICS" );
     48  rtems_cpu_usage_reset();
     49  puts( "" );
     50  rtems_cpu_usage_report();
     51  puts( "" );
    4552  puts( "*** END OF CPU USAGE LIBRARY TEST ***" );
    4653  rtems_test_exit( 0 );
  • testsuites/libtests/rtmonuse/rtmonuse.scn

    r0f4f543 rc4215ba  
    1 *** TEST 20 ***
    2 TA1 - rtems_rate_monotonic_create id = 0x28010001
    3 TA1 - rtems_rate_monotonic_ident id = 0x28010001
    4 TA1 - (0x28010001) period 2
    5 TA2 - rtems_rate_monotonic_create id = 0x28010002
    6 TA2 - rtems_rate_monotonic_ident id = 0x28010002
    7 TA2 - (0x28010002) period 2
    8 TA3 - rtems_rate_monotonic_create id = 0x28010003
    9 TA3 - rtems_rate_monotonic_ident id = 0x28010003
    10 TA3 - (0x28010003) period 2
    11 TA4 - rtems_rate_monotonic_create id = 0x28010004
    12 TA4 - rtems_rate_monotonic_ident id = 0x28010004
    13 TA4 - (0x28010004) period 2
    14 TA5 - rtems_rate_monotonic_create id = 0x28010005
    15 TA5 - rtems_rate_monotonic_ident id = 0x28010005
    16 TA5 - (0x28010005) period 100
     1*** RATE MONOTONIC PERIOD STATISTICS TEST ***
     2TA1 - rtems_rate_monotonic_create id = 0x42010001
     3TA1 - rtems_rate_monotonic_ident id = 0x42010001
     4TA1 - (0x42010001) period 2
     5TA2 - rtems_rate_monotonic_create id = 0x42010002
     6TA2 - rtems_rate_monotonic_ident id = 0x42010002
     7TA2 - (0x42010002) period 2
     8TA3 - rtems_rate_monotonic_create id = 0x42010003
     9TA3 - rtems_rate_monotonic_ident id = 0x42010003
     10TA3 - (0x42010003) period 2
     11TA4 - rtems_rate_monotonic_create id = 0x42010004
     12TA4 - rtems_rate_monotonic_ident id = 0x42010004
     13TA4 - (0x42010004) period 2
     14TA5 - rtems_rate_monotonic_create id = 0x42010005
     15TA5 - rtems_rate_monotonic_ident id = 0x42010005
     16TA5 - (0x42010005) period 100
    1717TA5 - PERIODS CHECK OK (1)
    1818TA5 - PERIODS CHECK OK (2)
     
    2525TA5 - PERIODS CHECK OK (9)
    2626TA5 - PERIODS CHECK OK (10)
    27 *** END OF TEST 20 ***
     27
     28Period information by period
     29--- CPU times are seconds:microseconds ---
     30--- Wall times are seconds:microseconds ---
     31   ID     OWNER COUNT MISSED          CPU TIME                  WALL TIME
     32                                    MIN/MAX/AVG                MIN/MAX/AVG
     330x42010001 TA1    502      0 0:000039/0:042650/0:004158 0:000039/0:020118/0:002848
     340x42010002 TA2    502      0 0:000041/0:042657/0:004309 0:000041/0:020116/0:002848
     350x42010003 TA3    501      0 0:000041/0:041564/0:003653 0:000041/0:020003/0:002814
     360x42010004 TA4    501      0 0:000043/0:044075/0:004911 0:000043/0:020004/0:002814
     370x42010005 TA5     10      0 0:000065/0:005413/0:002739 0:000065/1:000457/0:041058
     38
     39TA5 - PERIOD STATISTICS RESET
     40
     41Period information by period
     42--- CPU times are seconds:microseconds ---
     43--- Wall times are seconds:microseconds ---
     44   ID     OWNER COUNT MISSED          CPU TIME                  WALL TIME
     45                                    MIN/MAX/AVG                MIN/MAX/AVG
     460x42010001 TA1    502      0 0:000039/0:042650/0:004158 0:000039/0:020118/0:002848
     470x42010002 TA2    502      0 0:000041/0:042657/0:004309 0:000041/0:020116/0:002848
     480x42010003 TA3    501      0 0:000041/0:041564/0:003653 0:000041/0:020003/0:002814
     490x42010004 TA4    501      0 0:000043/0:044075/0:004911 0:000043/0:020004/0:002814
     500x42010005 TA5      0      0
     51
     52TA5 - ALL PERIOD STATISTICS RESET
     53
     54Period information by period
     55--- CPU times are seconds:microseconds ---
     56--- Wall times are seconds:microseconds ---
     57   ID     OWNER COUNT MISSED          CPU TIME                  WALL TIME
     58                                    MIN/MAX/AVG                MIN/MAX/AVG
     590x42010001 TA1      0      0
     600x42010002 TA2      0      0
     610x42010003 TA3      0      0
     620x42010004 TA4      0      0
     630x42010005 TA5      0      0
     64
     65*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***
  • testsuites/libtests/rtmonuse/task1.c

    r0f4f543 rc4215ba  
    107107
    108108        if ( pass == 10 ) {
    109           puts( "*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***" );
    110           puts( "" );
    111           rtems_cpu_usage_report();
    112109          puts( "" );
    113110          rtems_rate_monotonic_report_statistics();
     111
     112          rtems_rate_monotonic_reset_statistics( rmid );
    114113          puts( "" );
     114          puts( "TA5 - PERIOD STATISTICS RESET" );
     115          puts( "" );
     116          rtems_rate_monotonic_report_statistics();
     117
     118          rtems_rate_monotonic_reset_all_statistics();
     119          puts( "" );
     120          puts( "TA5 - ALL PERIOD STATISTICS RESET" );
     121          puts( "" );
     122          rtems_rate_monotonic_report_statistics();
     123
     124          puts( "" );
     125          puts( "*** END OF RATE MONOTONIC PERIOD STATISTICS TEST ***" );
    115126
    116127          rtems_test_exit( 0 );
Note: See TracChangeset for help on using the changeset viewer.