forked from Imagelibrary/rtems
2002-12-02 Joel Sherrill <joel@OARcorp.com>
* stackchk/check.c: Better handling of task name.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2002-12-02 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* stackchk/check.c: Better handling of task name.
|
||||||
|
|
||||||
2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* monitor/mon-commands.c: Removed warnings for RTEMS_UNIX.
|
* monitor/mon-commands.c: Removed warnings for RTEMS_UNIX.
|
||||||
|
|||||||
@@ -420,8 +420,9 @@ void Stack_check_Dump_threads_usage(
|
|||||||
void *high_water_mark;
|
void *high_water_mark;
|
||||||
Stack_Control *stack;
|
Stack_Control *stack;
|
||||||
unsigned32 u32_name;
|
unsigned32 u32_name;
|
||||||
char name[5];
|
char name_str[5];
|
||||||
|
char *name;
|
||||||
|
Objects_Information *info;
|
||||||
|
|
||||||
if ( !the_thread )
|
if ( !the_thread )
|
||||||
return;
|
return;
|
||||||
@@ -453,16 +454,27 @@ void Stack_check_Dump_threads_usage(
|
|||||||
else
|
else
|
||||||
used = 0;
|
used = 0;
|
||||||
|
|
||||||
if ( the_thread )
|
info = _Objects_Get_information(the_thread->Object.id);
|
||||||
u32_name = *(unsigned32 *)the_thread->Object.name;
|
name = name_str;
|
||||||
else
|
if ( the_thread ) {
|
||||||
u32_name = rtems_build_name('I', 'N', 'T', 'R');
|
if ( info->is_string ) {
|
||||||
|
name = (char *) the_thread->Object.name;
|
||||||
|
} else {
|
||||||
|
u32_name = (unsigned32 *)the_thread->Object.name;
|
||||||
name[ 0 ] = (u32_name >> 24) & 0xff;
|
name[ 0 ] = (u32_name >> 24) & 0xff;
|
||||||
name[ 1 ] = (u32_name >> 16) & 0xff;
|
name[ 1 ] = (u32_name >> 16) & 0xff;
|
||||||
name[ 2 ] = (u32_name >> 8) & 0xff;
|
name[ 2 ] = (u32_name >> 8) & 0xff;
|
||||||
name[ 3 ] = (u32_name >> 0) & 0xff;
|
name[ 3 ] = (u32_name >> 0) & 0xff;
|
||||||
name[ 4 ] = '\0';
|
name[ 4 ] = '\0';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
u32_name = rtems_build_name('I', 'N', 'T', 'R');
|
||||||
|
name[ 0 ] = (u32_name >> 24) & 0xff;
|
||||||
|
name[ 1 ] = (u32_name >> 16) & 0xff;
|
||||||
|
name[ 2 ] = (u32_name >> 8) & 0xff;
|
||||||
|
name[ 3 ] = (u32_name >> 0) & 0xff;
|
||||||
|
name[ 4 ] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
printf( "0x%08x %4s 0x%08x 0x%08x %8d %8d\n",
|
printf( "0x%08x %4s 0x%08x 0x%08x %8d %8d\n",
|
||||||
the_thread ? the_thread->Object.id : ~0,
|
the_thread ? the_thread->Object.id : ~0,
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
2002-12-02 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* stackchk/check.c: Better handling of task name.
|
||||||
|
|
||||||
2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2002-11-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* monitor/mon-commands.c: Removed warnings for RTEMS_UNIX.
|
* monitor/mon-commands.c: Removed warnings for RTEMS_UNIX.
|
||||||
|
|||||||
@@ -420,8 +420,9 @@ void Stack_check_Dump_threads_usage(
|
|||||||
void *high_water_mark;
|
void *high_water_mark;
|
||||||
Stack_Control *stack;
|
Stack_Control *stack;
|
||||||
unsigned32 u32_name;
|
unsigned32 u32_name;
|
||||||
char name[5];
|
char name_str[5];
|
||||||
|
char *name;
|
||||||
|
Objects_Information *info;
|
||||||
|
|
||||||
if ( !the_thread )
|
if ( !the_thread )
|
||||||
return;
|
return;
|
||||||
@@ -453,16 +454,27 @@ void Stack_check_Dump_threads_usage(
|
|||||||
else
|
else
|
||||||
used = 0;
|
used = 0;
|
||||||
|
|
||||||
if ( the_thread )
|
info = _Objects_Get_information(the_thread->Object.id);
|
||||||
u32_name = *(unsigned32 *)the_thread->Object.name;
|
name = name_str;
|
||||||
else
|
if ( the_thread ) {
|
||||||
u32_name = rtems_build_name('I', 'N', 'T', 'R');
|
if ( info->is_string ) {
|
||||||
|
name = (char *) the_thread->Object.name;
|
||||||
|
} else {
|
||||||
|
u32_name = (unsigned32 *)the_thread->Object.name;
|
||||||
name[ 0 ] = (u32_name >> 24) & 0xff;
|
name[ 0 ] = (u32_name >> 24) & 0xff;
|
||||||
name[ 1 ] = (u32_name >> 16) & 0xff;
|
name[ 1 ] = (u32_name >> 16) & 0xff;
|
||||||
name[ 2 ] = (u32_name >> 8) & 0xff;
|
name[ 2 ] = (u32_name >> 8) & 0xff;
|
||||||
name[ 3 ] = (u32_name >> 0) & 0xff;
|
name[ 3 ] = (u32_name >> 0) & 0xff;
|
||||||
name[ 4 ] = '\0';
|
name[ 4 ] = '\0';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
u32_name = rtems_build_name('I', 'N', 'T', 'R');
|
||||||
|
name[ 0 ] = (u32_name >> 24) & 0xff;
|
||||||
|
name[ 1 ] = (u32_name >> 16) & 0xff;
|
||||||
|
name[ 2 ] = (u32_name >> 8) & 0xff;
|
||||||
|
name[ 3 ] = (u32_name >> 0) & 0xff;
|
||||||
|
name[ 4 ] = '\0';
|
||||||
|
}
|
||||||
|
|
||||||
printf( "0x%08x %4s 0x%08x 0x%08x %8d %8d\n",
|
printf( "0x%08x %4s 0x%08x 0x%08x %8d %8d\n",
|
||||||
the_thread ? the_thread->Object.id : ~0,
|
the_thread ? the_thread->Object.id : ~0,
|
||||||
|
|||||||
Reference in New Issue
Block a user