假设有一个核心转储,说路由器/交换机说运行vxworks。如何找到核心转储的任务?
我的猜测列出了任务,看看哪个处于运行状态,是吗?请告诉我。
答案 0 :(得分:1)
您可以使用coreDumpLib.h中的coreDumpShow()(vxWorks 6.9)。
-> coreDumpShow 0,1
NAME IDX VALID ERRNO SIZE CKSUM TYPE TASK
----------- --- ----- ---------- ---------- ----- ------------ ----------
vxcore1.z 1 Y N/A 0x000ef05b OK KERNEL_TASK t1
Core Dump detailed information:
-------------------------------
Time: THU JAN 01 00:01:42 1970 (ticks = 6174)
Task: "t1" (0x611e0a20)
Process: "(Kernel)" (0x6017a500)
Description: fatal kernel task-level exception!
Exception number: 0xb
Program counter: 0x6003823e
Stack pointer: 0x604d3da8
Frame pointer: 0x604d3fb0
value = 0 = 0x0
您可能还想尝试查看coreDumpUtilLib:
coreDumpIsAvailable( ) - is a kernel core dump available for retrieval
coreDumpNextGet( ) - get the next kernel core dump on device
coreDumpInfoGet( ) - get information on a kernel core dump
coreDumpOpen( ) - open an existing kernel core dump for retrieval
coreDumpClose( ) - close a kernel core dump
coreDumpRead( ) - read from a kernel core dump file
coreDumpCopy( ) - copy a kernel core dump to the given path