Changeset 5250ff39 in rtems for c/src/lib/libmisc


Ignore:
Timestamp:
08/23/95 21:06:31 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7f6a24ab
Parents:
3235ad9
Message:

Moved _Thread_Information -> _RTEMS_tasks_Information.

Added a table of object information control blocks.

Modified _Thread_Get so it looks up a thread regardless of which
thread management "entity" (manager, internal, etc) actually "owns" it.

Location:
c/src/lib/libmisc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libmisc/monitor/mon-object.c

    r3235ad9 r5250ff39  
    6161    },
    6262    { RTEMS_OBJECT_TASK,
    63       (void *) &_Thread_Information,
     63      (void *) &_RTEMS_tasks_Information,
    6464      sizeof(rtems_monitor_task_t),
    6565      (rtems_monitor_object_next_fn)        rtems_monitor_manager_next,
  • c/src/lib/libmisc/stackchk/check.c

    r3235ad9 r5250ff39  
    416416void Stack_check_Dump_usage( void )
    417417{
    418   unsigned32      i;
    419   Thread_Control *the_thread;
    420   unsigned32      hit_running = 0;
     418  unsigned32           i;
     419  unsigned32           class_index;
     420  Thread_Control      *the_thread;
     421  unsigned32           hit_running = 0;
     422  Objects_Information *information;
    421423
    422424  if (stack_check_initialized == 0)
     
    426428    "   ID          NAME         LOW        HIGH      AVAILABLE     USED\n"
    427429  );
    428   for ( i=1 ; i<_Thread_Information.maximum ; i++ ) {
    429     the_thread = (Thread_Control *)_Thread_Information.local_table[ i ];
    430     Stack_check_Dump_threads_usage( the_thread );
    431     if ( the_thread == _Thread_Executing )
    432       hit_running = 1;
     430
     431  for ( class_index = OBJECTS_CLASSES_FIRST ;
     432        class_index <= OBJECTS_CLASSES_LAST ;
     433        class_index++ ) {
     434    information = _Objects_Information_table[ class_index ];
     435    if ( information && information->is_thread ) {
     436      for ( i=1 ; i < information->maximum ; i++ ) {
     437        the_thread = (Thread_Control *)information->local_table[ i ];
     438        Stack_check_Dump_threads_usage( the_thread );
     439        if ( the_thread == _Thread_Executing )
     440          hit_running = 1;
     441      }
     442    }
    433443  }
    434444
Note: See TracChangeset for help on using the changeset viewer.