diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2007-09-05 20:35:36 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2007-09-05 20:35:36 +0000 |
commit | 501ab69168fbfcd81270f7e1943162b87c62b8cc (patch) | |
tree | f747727466317e8b93709046fd0367270d6d550e /cpukit/libmisc/monitor/mon-monitor.c | |
parent | 2007-09-05 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-501ab69168fbfcd81270f7e1943162b87c62b8cc.tar.bz2 |
Added osmonweb support functionality to monitor
Diffstat (limited to 'cpukit/libmisc/monitor/mon-monitor.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-monitor.c | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/cpukit/libmisc/monitor/mon-monitor.c b/cpukit/libmisc/monitor/mon-monitor.c index b48a7777da..4d4dd95349 100644 --- a/cpukit/libmisc/monitor/mon-monitor.c +++ b/cpukit/libmisc/monitor/mon-monitor.c @@ -160,6 +160,33 @@ rtems_monitor_command_entry_t rtems_monitor_commands[] = { { RTEMS_MONITOR_OBJECT_QUEUE }, &rtems_monitor_commands[11], }, + { "sema", + "sema [id [id ... ] ]\n" + " display information about the specified semaphores\n" + " Default is to display information about all semaphores on this node\n" + , + 0, + rtems_monitor_object_cmd, + RTEMS_MONITOR_OBJECT_SEMAPHORE, + }, + { "region", + "region [id [id ... ] ]\n" + " display information about the specified regions\n" + " Default is to display information about all regions on this node\n" + , + 0, + rtems_monitor_object_cmd, + RTEMS_MONITOR_OBJECT_REGION, + }, + { "part", + "part [id [id ... ] ]\n" + " display information about the specified partitions\n" + " Default is to display information about all partitions on this node\n" + , + 0, + rtems_monitor_object_cmd, + RTEMS_MONITOR_OBJECT_SEMAPHORE, + }, { "object", "Display information about specified RTEMS objects. " "Object id's must include 'type' information. " @@ -505,6 +532,10 @@ rtems_monitor_task( } } + if (!(monitor_flags & RTEMS_MONITOR_NOSYMLOAD)) { + rtems_monitor_symbols_loadup(); + } + if (monitor_flags & RTEMS_MONITOR_SUSPEND) (void) rtems_monitor_suspend(RTEMS_NO_TIMEOUT); @@ -573,10 +604,7 @@ rtems_monitor_init( rtems_monitor_node = rtems_get_node(rtems_monitor_task_id); rtems_monitor_default_node = rtems_monitor_node; - rtems_monitor_symbols_loadup(); - - if (monitor_flags & RTEMS_MONITOR_GLOBAL) - rtems_monitor_server_init(monitor_flags); + rtems_monitor_server_init(monitor_flags); if (!(monitor_flags & RTEMS_MONITOR_NOTASK)) { /* |