📄 usrlib.html
字号:
<dt>EOF<dd>Do not change this register, and quit.</dl><p>All numbers are entered and displayed in hexadecimal, exceptfloating-point values, which may be entered in double precision.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the task or register does not exist.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./usrLib.html#m">m</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="pc"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>pc( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>pc( )</strong> - return the contents of the program counter</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>int pc ( int task /* task ID */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command extracts the contents of the program counter for a specifiedtask from the task's TCB. If <i>task</i> is omitted or 0, the current task is used.<p></blockquote><h4>RETURNS</h4><blockquote><p>The contents of the program counter.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./usrLib.html#ti">ti</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="printErrno"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>printErrno( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>printErrno( )</strong> - print the definition of a specified error status value</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void printErrno ( int errNo /* status code whose name is to be printed */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command displays the error-status string, corresponding to aspecified error-status value. It is only useful if the error-statussymbol table has been built and included in the system. If <i>errNo</i> iszero, then the current task status is used by calling <b><a href="./errnoLib.html#errnoGet">errnoGet</a>( )</b>.<p>This facility is described in <b><a href="./errnoLib.html#top">errnoLib</a></b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./errnoLib.html#top">errnoLib</a></b>, <b><a href="./errnoLib.html#errnoGet">errnoGet</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="printLogo"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>printLogo( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>printLogo( )</strong> - print the VxWorks logo</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void printLogo (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command displays the VxWorks banner seen at boot time. It alsodisplays the VxWorks version number and kernel version number.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="logout"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>logout( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>logout( )</strong> - log out of the VxWorks system</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void logout (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command logs out of the VxWorks shell. If a remote login is active(via <b><a href="../../bspkit/valTest/rlogin.html#top" >rlogin</a></b> or <b>telnet</b>), it is stopped, and standard I/O is restored tothe console.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./rlogLib.html#rlogin">rlogin</a>( )</b>, <b>telnet( )</b>, <b>shellLogout( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="h"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>h( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>h( )</strong> - display or set the size of shell history</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void h ( int size /* 0 = display, >0 = set history to new size */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This command displays or sets the size of VxWorks shell history. If noargument is specified, shell history is displayed. If <i>size</i> isspecified, that number of the most recent commands is saved for display.The value of <i>size</i> is initially 20.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./shellLib.html#shellHistory">shellHistory</a>( )</b>, <b><a href="./ledLib.html#top">ledLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell, </i><b><a href="../../tornado/tools/windsh.html#top" >windsh</a></b>, <i>Tornado User's Guide: Shell</i><hr><a name="spyReport"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyReport( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyReport( )</strong> - display task activity data</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spyReport (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine reports on data gathered at interrupt level for the amount ofCPU time utilized by each task, the amount of time spent at interrupt level,the amount of time spent in the kernel, and the amount of idle time. Timeis displayed in ticks and as a percentage, and the data is shown since boththe last call to <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b> and the last <b><a href="./usrLib.html#spyReport">spyReport</a>( )</b>. If no interruptshave occurred since the last <b><a href="./usrLib.html#spyReport">spyReport</a>( )</b>, nothing is displayed.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spyTask"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyTask( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyTask( )</strong> - run periodic task activity reports</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spyTask ( int freq /* reporting frequency, in seconds */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine is spawned as a task by <b><a href="./usrLib.html#spy">spy</a>( )</b> to provide periodic taskactivity reports. It prints a report, delays for the specified number ofseconds, and repeats.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./usrLib.html#spy">spy</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spy"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spy( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spy( )</strong> - begin periodic task activity reports</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spy ( int freq, /* reporting freq in sec, 0 = default of 5 */ int ticksPerSec /* interrupt clock freq, 0 = default of 100 */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine collects task activity data and periodically runs <b><a href="./usrLib.html#spyReport">spyReport</a>( )</b>.Data is gathered <i>ticksPerSec</i> times per second, and a report is made every<i>freq</i> seconds. If <i>freq</i> is zero, it defaults to 5 seconds. If<i>ticksPerSec</i> is omitted or zero, it defaults to 100.<p>This routine spawns <b><a href="./usrLib.html#spyTask">spyTask</a>( )</b> to do the actual reporting.<p>It is not necessary to call <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b> before running <b><a href="./usrLib.html#spy">spy</a>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b>, <b><a href="./usrLib.html#spyTask">spyTask</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spyClkStart"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyClkStart( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyClkStart( )</strong> - start collecting task activity data</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS spyClkStart ( int intsPerSec /* timer interrupt freq, 0 = default of 100 */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine begins data collection by enabling the auxiliary clockinterrupts at a frequency of <i>intsPerSec</i> interrupts per second. If<i>intsPerSec</i> is omitted or zero, the frequency will be 100. Data fromprevious collections is cleared.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if the CPU has no auxiliary clock, or if task create anddelete hooks cannot be installed.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./sysLib.html#sysAuxClkConnect">sysAuxClkConnect</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spyClkStop"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyClkStop( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyClkStop( )</strong> - stop collecting task activity data</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spyClkStop (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine disables the auxiliary clock interrupts.Data collected remains valid until the next <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b> call.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./usrLib.html#spyClkStart">spyClkStart</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spyStop"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyStop( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyStop( )</strong> - stop spying and reporting</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spyStop (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine calls <b><a href="./usrLib.html#spyClkStop">spyClkStop</a>( )</b>. Any periodic reporting by <b><a href="./usrLib.html#spyTask">spyTask</a>( )</b>is terminated.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <b><a href="./usrLib.html#spyClkStop">spyClkStop</a>( )</b>, <b><a href="./usrLib.html#spyTask">spyTask</a>( )</b>, <i>VxWorks Programmer's Guide: Target Shell</i><hr><a name="spyHelp"></a><p align=right><a href="rtnIndex.htm"><i>OS Libraries : Routines</i></a></p></blockquote><h1>spyHelp( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>spyHelp( )</strong> - display task monitoring help menu</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void spyHelp (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine displays a summary of <b><a href="./spyLib.html#top">spyLib</a></b> utilities:<pre>spyHelp Print this listspyClkStart [ticksPerSec] Start task activity monitor running at ticksPerSec ticks per secondspyClkStop Stop collecting dataspyReport Prints display of task activity statisticsspyStop Stop collecting data and reportsspy [freq[,ticksPerSec]] Start spyClkStart and do a report every freq secondsticksPerSec defaults to 100. freq defaults to 5 seconds.</pre></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./usrLib.html#top">usrLib</a></b>, <b><a href="./spyLib.html#top">spyLib</a></b>, <i>VxWorks Programmer's Guide: Target Shell</i></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -