2010-07-26 Joel Sherrill <joel.sherrill@oarcorp.com>

* libcsupport/src/privateenv.c, libmisc/cpuuse/cpuusagereport.c,
	posix/Makefile.am, posix/include/rtems/posix/key.h,
	posix/src/keycreate.c, posix/src/keydelete.c,
	score/src/iterateoverthreads.c: Since removing ITRON, the loop over
	all APIs for tasks has a path that cannot be reached. Either modify
	the code or mark tests for NULL as RTEMS_DEBUG.
	* posix/src/keyfreememory.c: New file.
This commit is contained in:
Joel Sherrill
2010-07-26 22:03:18 +00:00
parent bc3fe3c7f0
commit 77c330ce3d
9 changed files with 116 additions and 64 deletions

View File

@@ -1,7 +1,7 @@
/*
* CPU Usage Reporter
*
* COPYRIGHT (c) 1989-2009
* COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -71,8 +71,14 @@ void rtems_cpu_usage_report_with_plugin(
_Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total );
#else
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
continue;
/*
* Since the removal of ITRON, this cannot occur.
*/
#if defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
@@ -98,11 +104,15 @@ void rtems_cpu_usage_report_with_plugin(
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ;
api_index <= OBJECTS_APIS_LAST ;
api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
continue;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
/*
* Since the removal of ITRON, this cannot occur.
*/
#if defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {