1. 与任务相关的命令
sp adr, args... : Spawn a task, pri=100, opt=0x19, stk=20000
sp 函数地址, 参数1, 参数2,...
启动任务,最多接受9个参数,默认的优先级100、堆栈20000字节
e.g: sp copy, "vxWorks.st", "/tffs0/vxWorks.st"
period n,,[arg1],...,[arg8]
创建一个周期调用的任务,周期为n秒,最多接受8个参数
repeat m,,[arg1],...,[arg8]
创建一个反复调用的任务,调用次数为m,m=0时永久调用,最多也是8个参数
- ts tidX -挂起任务
- tr tidX -恢复挂起的任务
- td tidX -删除任务
- i tidX -显示任务基本信息,参数为0时显示全部任务
- ti tidX -显示任务详细信息,包括寄存器、堆栈等
- tt tidX -显示任务的函数调用关系
- tw (taskName) Find info about the object the task is pending on
- checkStack tidX -显示任务堆栈使用的历史统计,参数为0时显示全部任务
其中tidX可以为任务ID 也可以为任务名
2、系统信息
- ld < filename Load a file
- unld < "moduleName" Unload file
- bootChange Modify the saved boot parameters
- logout Log out of the target
- lkAddr addr -显示addr地址附近的符号表
- l addr,[n] -显示addr地址开始的n条指令的反汇编,n省略时默认为10条指
- memShow 1 -显示系统分区上空闲和已分配空间的总数等
- printErrno value -打印系统定义的错误码的宏
- lkup ["string"] -在系统符号表中查找并列出含有"string"字符的函数及全局变量
注:lkup,有两个特殊参数:
0,给出符号表统计;""(空字符串),列出全部符号 lkup "excExcHandle"
3. utility
中断show
# define INCLUDE_ISR_OBJECTS # define INCLUDE_ISR_SHOW # define INCLUDE_ISR_DEFER
vxBus 总线信息show
# define INCLUDE_VXBUS_SHOW
网络自动加载(不用 usrNetInit)
# define STANDALONE_NET
时钟组件
#define INCLUDE_TIMER_SYS #define INCLUDE_AUX_CLK #define INCLUDE_TIMESTAMP #define INCLUDE_TIMESTAMP64 #define INCLUDE_VXB_TIMESTAMP #define INCLUDE_VXB_TIMESTAMP64 #define INCLUDE_TIMER_SYS_SHOW
EDR 信息
#define INCLUDE_EDR_SHOW #define INCLUDE_EDR_ERRLOG #define INCLUDE_EDR_PM #define INCLUDE_EDR_SYSDBG_FLAG
Telnet 和 ping
#define INCLUDE_IFCONFIG #define INCLUDE_IPATTACH #define INCLUDE_PING #define INCLUDE_IPTELNETS #define INCLUDE_TELNET_CLIENT #define INCLUDE_NET_HOST_SHOW
PCI show
# define INCLUDE_PCI_BUS_SHOW
启动脚本
# define INCLUDE_SHELL # define INCLUDE_STARTUP_SCRIPT
其它
#define INCLUDE_DISK_UTIL #define INCLUDE_USB_SHOW #define INCLUDE_SHOW_ROUTINES #define INCLUDE_ADR_SPACE_SHOW
相对应的show命令:
ifShow ["ifname"] - show info about network interfaces inetstatShow - show all Internet protocol sockets tcpstatShow - show statistics for TCP udpstatShow - show statistics for UDP ipstatShow - show statistics for IP icmpstatShow - show statistics for ICMP arpShow - show a list of known ARP entries mbufShow - show network stack data pool statistics netStackSysPoolShow - show network stack system pool statistics routeShow - display all IP routes (summary information) mRouteShow - display all IP routes (verbose information) routestatShow - display routing statistics routeAdd "destaddr","gateaddr" - add route to route table routeDelete "destaddr","gateaddr" - delete route from route table
Object Information Commands
taskShow List info about the tasks from TCB seqShow List info about the sequencers(EPICS state programs at LIGO) running on the target semShow Show info about semaphore moduleShow Show info about loaded modules (object files/programs)
Memory Information Commands
memShow Display allocated/free memory memPartShow Show memory partition hwMemShow version isrShow arpShow sysMsrGet() vxHid2Get vxHid0Get vxHid1Get taskArgsGet vxSrr0Get vxPvrGet() vxSvrGet vxPirGet() vxPirSet() vxBusShow (): vxbTopoShow (): aimMmuMapShow(): aimMmuPageTableShow() aimMmuOptimizeMemShow() vxbSysClkShow() vxbTimestampShow() coprocShow taskRegsShow adrSpaceShow 1 netstat
System Clock:
pSysClkName sysClkDevUnitNo sysClkTimerNo
Auxiliary Clock:
pAuxClkName auxClkDevUnitNo auxClkTimerNo
Timestamp timer:
pTimestampTimerName timestampDevUnitNo timestampTimerNo sysAuxClkRateGet() vxbSysClkShow pciConfigTopoShow() pciDeviceShow 0 pciHeaderShow (busNo, deviceNo, funcNo)
有些命令只存在于vx5.5,vx6.x后没有了