URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [libmisc/] [monitor/] [README] - Rev 158
Go to most recent revision | Compare with Previous | Blame | View Log
## $Id: README,v 1.1.1.1 2001-07-10 09:57:17 chris Exp $#monitor taskThe monitor task is an optional task that knows about RTEMSdata structures and can print out information about them.It is a work-in-progress and needs many more commands, butis useful now.The monitor works best when it is the highest priority task,so all your other tasks should ideally be at some prioritygreater than 1.To use the monitor:-------------------#include <rtems/monitor.h>...rtems_monitor_init(0);The parameter to rtems_monitor_init() tells the monitor whetherto suspend itself on startup. A value of 0 causes the monitorto immediately enter command mode; a non-zero value causes themonitor to suspend itself after creation and wait for explicitwakeup.rtems_monitor_wakeup();wakes up a suspended monitor and causes it to reenter command mode.Monitor commands----------------The monitor prompt is 'rtems> '.Can abbreviate commands to "uniquity"There is a 'help' command. Here is the output from varioushelp commands:Commands (may be abbreviated)help -- get this message or command specific helptask -- show task informationqueue -- show message queue informationsymbol -- show entries from symbol tablepause -- pause monitor for a specified number of ticksfatal -- invoke a fatal RTEMS errortask [id [id ...] ]display information about the specified tasks.Default is to display information about all tasks on this nodequeue [id [id ... ] ]display information about the specified message queuesDefault is to display information about all queues on this nodesymbol [ symbolname [symbolname ... ] ]display value associated with specified symbol.Defaults to displaying all known symbols.pause [ticks]monitor goes to "sleep" for specified ticks (default is 1)monitor will resume at end of period or if explicitly awakenedfatal [status]Invoke 'rtems_fatal_error_occurred' with 'status'(default is RTEMS_INTERNAL_ERROR)continueput the monitor to sleep waiting for an explicit wakeup from theprogram running.Sample output from 'task' command---------------------------------rtems> taskID NAME PRIO STAT MODES EVENTS WAITID WAITARG NOTES------------------------------------------------------------------------00010001 UI1 2 READY P:T:nA NONE15: 0x4060634800010002 RMON 1 READY nP NONE15: 0x40604110'RMON' is the monitor itself, so we have 1 "user" task.Its modes are P:T:nA which translate to:preemptabletimeslicedno ASRSIt has no events.It has a notepad value for notepad 15 which is 0x40606348(this is the libc thread state)
Go to most recent revision | Compare with Previous | Blame | View Log
