亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? taskshow.c

?? vxworks的完整的源代碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
/* taskShow.c - task show routines *//* Copyright 1984-2001 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------02e,27mar02,pai  Added code to display Streaming SIMD Registers (SPR 74103).02d,16oct01,jn   use symFindSymbol for symbol lookup (SPR #7453)02c,19nov01,aeg  added display of VxWorks events information.02b,09nov01,dee  add CPU_FAMILY==COLDFIRE02a,11oct01,cjj  removed Am29k support01z,13jul01,kab  Cleanup for merge to mainline01y,03apr01,kab  Added _WRS_ALTIVEC_SUPPORT01x,14mar01,pcs  Added code to recognize VX_ALTIVEC_TASK.01w,18dec00,pes  Correct compiler warnings01w,03mar00,zl   merged SH support into T201v,17mar99,jdi  doc: updated w/ info about proj facility (SPR 25727).01u,29jul96,jmb  Merged patch from ease (mem) for HPSIM01t,24jun96,sbs  made windview instrumentation conditionally compiled01s,06oct95,jdi  changed Debugging .pG's to .tG "Shell".01r,14mar95,jdi  doc tweak for taskShow().01q,11feb95,jdi  format repairs.01p,04feb94,cd   taskRegsShow calls taskArchRegsShow for CPU_FAMILY==MIPS		 retrofitted 01o history01o,27dec93,cd   taskShow calls taskArchRegsShow for CPU_FAMILY==MIPS01o,02dec93,pad  added AM29XXX family support.01q,20jul94,ms   added taskRegShow() hook.01p,03may94,ms   fixed low order PC bits in taskShow for VxSim HP01o,20aug93,gae  fixed pcReg definition for vxsim on hppa.01o,20sep94,rhp  doc: describe fields in taskShow() TCB display,                 result of taskStatusString() (SPR#2394).01o,16jan94,c_s  taskShowInit () now initializes instrumented class.01n,25feb93,jdi  doc: fixed example output of taskShow().01m,04feb93,jdi  fixed mangen problem in taskShow().01l,03feb93,jdi  amended library description.01k,03feb93,jdi  changed INCLUDE_SHOW_RTNS to ...ROUTINES.01j,02feb93,jdi  documentation tweak.01i,25nov92,jdi  documentation cleanup.01h,19aug92,smb  another tweak to the printf formatting.01g,02aug92,jcf  added parameter to _func_excInfoShow.01f,30jul92,smb  changed format for printf to avoid zero padding.01e,28jul92,jcf  changed taskShowInit to call taskLibInit.01d,27jul92,jcf  included errnoLib.h.01c,12jul92,jcf  tuned register format string.01b,08jul92,jwt  modified taskRegsFmt for CPU_FAMILY == SPARC.01a,15jun92,jcf  extracted from v1k taskLib.c.*//*DESCRIPTIONThis library provides routines to show task-related information,such as register values, task status, etc.The taskShowInit() routine links the task show facility into the VxWorkssystem.  It is called automatically when this show facility is configuredinto VxWorks using either of the following methods:.iPIf you use the configuration header files, defineINCLUDE_SHOW_ROUTINES in config.h..iPIf you use the Tornado project facility, select INCLUDE_TASK_SHOW..LPTask information is crucial as a debugging aid and user-interfaceconvenience during the development cycle of an application.  The routinestaskInfoGet(), taskShow(), taskRegsShow(), and taskStatusString() are usedto display task information.The chief drawback of using task information is that tasks maychange their state between the time the information is gathered and thetime it is utilized.  Information provided by these routines shouldtherefore be viewed as a snapshot of the system, and not relied uponunless the task is consigned to a known state, such as suspended.Task management and control routines are provided by taskLib.  Programmaticaccess to task information and debugging features is provided by taskInfo.INCLUDE FILES: taskLib.hSEE ALSO: taskLib, taskInfo, taskHookLib, taskVarLib, semLib, kernelLib,.pG "Basic OS, Target Shell,".tG "Shell"*/#include "vxWorks.h"#include "string.h"#include "regs.h"#include "stdio.h"#include "a_out.h"#include "sysSymTbl.h"#include "errnoLib.h"#include "taskArchLib.h"#include "intLib.h"			/* intLock/intUnlock */#include "private/funcBindP.h"#include "private/taskLibP.h"#include "private/kernelLibP.h"#include "private/eventLibP.h"		/* eventTaskShow () */#define MAX_DSP_TASKS	500		/* max tasks that can be displayed *//* globals */char *taskRegsFmt = "%-6s = %8x";VOIDFUNCPTR _func_taskRegsShowRtn;/* locals */LOCAL char infoHdr [] = "\n\  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  DELAY\n\---------- ------------ -------- --- ---------- -------- -------- ------- -----\n";/* forward declarations */LOCAL void taskSummary (TASK_DESC *pTd);#if (CPU_FAMILY==MIPS || CPU_FAMILY==COLDFIRE)IMPORT void taskArchRegsShow(REG_SET *pRegSet);#endif /* (CPU_FAMILY==MIPS) *//******************************************************************************** taskShowInit - initialize the task show routine facility** This routine links the task show routines into the VxWorks system.* It is called automatically when the task show facility is* configured into VxWorks using either of the following methods:* .iP* If you use the configuration header files, define* INCLUDE_SHOW_ROUTINES in config.h.* .iP* If you use the Tornado project facility, select INCLUDE_TASK_SHOW.** RETURNS: N/A*/void taskShowInit (void)    {    if (taskLibInit () == OK)	{ classShowConnect (taskClassId, (FUNCPTR)taskShow);#ifdef WV_INSTRUMENTATION	classShowConnect (taskInstClassId, (FUNCPTR)taskShow);#endif	}    }/********************************************************************************* taskInfoGet - get information about a task** This routine fills in a specified task descriptor (TASK_DESC) for a* specified task.  The information in the task descriptor is, for the most* part, a copy of information kept in the task control block (WIND_TCB).* The TASK_DESC structure is useful for common information and avoids* dealing directly with the unwieldy WIND_TCB.** NOTE* Examination of WIND_TCBs should be restricted to debugging aids.** RETURNS: OK, or ERROR if the task ID is invalid.*/STATUS taskInfoGet    (    int         tid,            /* ID of task for which to get info */    TASK_DESC   *pTaskDesc      /* task descriptor to be filled in */    )    {    int 	    key;    FAST char	   *pStackHigh;    FAST TASK_DESC *pTd  = pTaskDesc;    WIND_TCB 	   *pTcb = taskTcb (tid);    if (pTcb == NULL)				/* valid task ID? */	return (ERROR);    /* gather the information */#if CPU_FAMILY==I960    if (tid != taskIdSelf ())	/* showing our current sp is not possible */	taskRegsStackToTcb (pTcb);#endif	/* CPU_FAMILY==I960 */    pTd->td_id		= (int) pTcb;			/* task ID */    pTd->td_name	= pTcb->name;			/* name of task */    pTd->td_priority	= (int) pTcb->priority; 	/* priority */    pTd->td_status	= pTcb->status;			/* task status*/    pTd->td_options	= pTcb->options;		/* task option bits */    pTd->td_entry	= pTcb->entry;			/* entry of task */    pTd->td_sp		= (char *)((int)pTcb->regs.spReg);	/* saved stack ptr */    pTd->td_pStackLimit	= pTcb->pStackLimit;		/* limit of stack */    pTd->td_pStackBase	= pTcb->pStackBase;		/* bottom of stack */    pTd->td_pStackEnd	= pTcb->pStackEnd;		/* end of the stack */#if (_STACK_DIR==_STACK_GROWS_DOWN)    if (pTcb->options & VX_NO_STACK_FILL)	pStackHigh = pTcb->pStackLimit;    else	for (pStackHigh = pTcb->pStackLimit;	     *(UINT8 *)pStackHigh == 0xee; pStackHigh ++)	    ;#else 	/* _STACK_GROWS_UP */    if (pTcb->options & VX_NO_STACK_FILL)	pStackHigh = pTcb->pStackLimit - 1;    else	for (pStackHigh = pTcb->pStackLimit - 1;	     *(UINT8 *)pStackHigh == 0xee; pStackHigh --)	    ;#endif 	/* _STACK_GROWS_UP */    pTd->td_stackSize   = (int)(pTcb->pStackLimit - pTcb->pStackBase) *			  _STACK_DIR;    pTd->td_stackHigh	= (int)(pStackHigh - pTcb->pStackBase) * _STACK_DIR;    pTd->td_stackMargin	= (int)(pTcb->pStackLimit - pStackHigh) * _STACK_DIR;    pTd->td_stackCurrent= (int)(pTd->td_sp - pTcb->pStackBase) * _STACK_DIR;    pTd->td_errorStatus	= errnoOfTaskGet (tid);		/* most recent error */    /* if task is delayed, get the time to fire out of the task's tick node */    if (pTcb->status & WIND_DELAY)	pTd->td_delay = Q_KEY (&tickQHead, &pTcb->tickNode, 1);    else	pTd->td_delay = 0;			/* not delayed */    /* copy the VxWorks events information */    key = intLock ();    pTd->td_events = pTcb->events;    intUnlock (key);    return (OK);    }/********************************************************************************* taskShow - display task information from TCBs** This routine displays the contents of a task control block (TCB)* for a specified task.  If <level> is 1, it also displays task options* and registers.  If <level> is 2, it displays all tasks.** The TCB display contains the following fields:** .TS* tab(|);* lf3 lf3* l l .* Field  | Meaning* _* NAME   | Task name* ENTRY  | Symbol name or address where task began execution* TID    | Task ID* PRI    | Priority* STATUS | Task status, as formatted by taskStatusString()* PC     | Program counter* SP     | Stack pointer* ERRNO  | Most recent error code for this task* DELAY  | If task is delayed, number of clock ticks remaining in delay (0 otherwise)* .TE** EXAMPLE:* The following example shows the TCB contents for the shell task:* .CS*   -> taskShow tShell, 1* *     NAME        ENTRY    TID    PRI  STATUS      PC       SP    ERRNO  DELAY*   ---------- --------- -------- --- --------- -------- -------- ------ -----*   tShell     _shell     20efcac   1 READY      201dc90  20ef980      0     0* *   stack: base 0x20efcac  end 0x20ed59c  size 9532   high 1452   margin 8080* *   options: 0x1e*   VX_UNBREAKABLE      VX_DEALLOC_STACK    VX_FP_TASK         VX_STDIO**   VxWorks Events*   --------------*   Events Pended on    : Not Pended*   Received Events     : 0x0*   Options             : N/A* 			* *   D0 =       0   D4 =       0   A0 =       0   A4 =        0*   D1 =       0   D5 =       0   A1 =       0   A5 =  203a084   SR =     3000*   D2 =       0   D6 =       0   A2 =       0   A6 =  20ef9a0   PC =  2038614*   D3 =       0   D7 =       0   A3 =       0   A7 =  20ef980*   value = 34536868 = 0x20efda4* .CE** RETURNS: N/A** SEE ALSO:* taskStatusString(),* .pG "Target Shell,"* windsh,* .tG "Shell"*/STATUS taskShow    (    int tid,		/* task ID */    int level		/* 0 = summary, 1 = details, 2 = all tasks */    )    {    FAST int	nTasks;			/* number of task */    FAST int	ix;			/* index */    TASK_DESC	td;			/* task descriptor for task info */    WIND_TCB *	pTcb;			/* pointer to tasks tcb */    int		idList[MAX_DSP_TASKS];	/* list of active IDs */    char	optionsString[256];	/* task options string */    tid = taskIdDefault (tid);				/* get default task */    switch (level)	{	case 0 :					/* summarize a task */	    {	    if (taskInfoGet (tid, &td) != OK)		{		printErr ("Task not found.\n");		return (ERROR);		}	    printf (infoHdr);	    taskSummary (&td);	    break;	    }	case 1 :					/* get task detail */	    {	    if (taskInfoGet (tid, &td) != OK)		{		printErr ("Task not found.\n");		return (ERROR);		}	    taskOptionsString (tid, optionsString);	/* get options string */	    /* Print the summary as in all_task_info, then all the regs. */	    printf (infoHdr);				/* banner */	    taskSummary (&td);	    printf ("\nstack: base 0x%-6x  end 0x%-6x  size %-5d  ",		    (int)td.td_pStackBase, (int)td.td_pStackEnd,		    td.td_stackSize);	    if (td.td_options & VX_NO_STACK_FILL)		printf ("high %5s  margin %5s\n", "???", "???");	    else		printf ("high %-5d  margin %-5d\n", td.td_stackHigh,			 td.td_stackMargin);	    printf ("\noptions: 0x%x\n%s\n", td.td_options, optionsString);	    /* display VxWorks events information */	    eventTaskShow (&td.td_events);	    if (tid != taskIdSelf ())			/* no self exam */		{		taskRegsShow (tid);		if (_func_fppTaskRegsShow != NULL)	/* fp regs if attached*/		    (* _func_fppTaskRegsShow) (tid);		if (_func_dspTaskRegsShow != NULL)	/* dsp regs if attached*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色婷婷综合五月| 久久久综合激的五月天| 精品剧情在线观看| 亚洲天堂免费看| 国产一区二区三区四区五区入口 | 欧美激情一区三区| 天天综合网 天天综合色| av一区二区不卡| 欧美一二三四区在线| 综合激情网...| 风间由美一区二区av101| 91精品国产麻豆| 亚洲成人av一区二区| 99久久精品费精品国产一区二区| 欧美精品一区二区在线观看| 丝袜美腿亚洲色图| 在线观看视频一区二区| 亚洲欧美另类图片小说| 成人免费看片app下载| 精品久久五月天| 久久精品国内一区二区三区| 在线成人高清不卡| 亚洲一区二区中文在线| 91啪亚洲精品| 亚洲人成影院在线观看| 99国产精品久| 亚洲精品欧美专区| 在线观看成人免费视频| 亚洲精品中文字幕乱码三区| 99精品视频一区二区三区| 日本一区二区三区高清不卡| 国产成人精品免费一区二区| 精品奇米国产一区二区三区| 麻豆91精品91久久久的内涵| 欧美一区二区三区啪啪| 免费看欧美女人艹b| 日韩欧美国产不卡| 久久精品国产一区二区三区免费看| 6080日韩午夜伦伦午夜伦| 青青草国产成人av片免费| 日韩一区二区电影网| 久久精品免费观看| 久久人人爽爽爽人久久久| 国产一区二区不卡在线| 国产日韩精品久久久| 91在线视频网址| 亚洲高清不卡在线观看| 欧美一区二区三区视频在线| 麻豆一区二区三区| 欧美激情一区二区三区不卡| av亚洲产国偷v产偷v自拍| 夜夜嗨av一区二区三区 | 岛国精品在线观看| 日韩理论片网站| 欧美老人xxxx18| 久久精品国内一区二区三区| 国产日韩欧美一区二区三区综合| av午夜精品一区二区三区| 亚洲一二三四在线观看| 日韩精品在线一区| 成人国产一区二区三区精品| 一区二区三区四区高清精品免费观看| 欧美麻豆精品久久久久久| 美女视频一区二区| 国产精品色在线观看| 欧美色大人视频| 激情久久五月天| 亚洲精品国产精华液| 欧美一区二区三区免费大片| 国产精品夜夜爽| 亚洲精品日韩综合观看成人91| 69堂成人精品免费视频| 成人黄色免费短视频| 日韩电影在线看| 中文字幕一区二区三区在线不卡| 欧美丝袜丝nylons| 成人黄色av网站在线| 日韩av电影天堂| 亚洲天天做日日做天天谢日日欢| 日韩精品一区二区三区视频 | 国产精品免费久久久久| 91精品国产综合久久久蜜臀图片| 成人做爰69片免费看网站| 午夜视频在线观看一区| 久久久久国产精品厨房| 在线播放欧美女士性生活| 97精品久久久午夜一区二区三区| 麻豆精品国产91久久久久久| 亚洲久草在线视频| 欧美激情在线观看视频免费| 欧美刺激午夜性久久久久久久| 欧美午夜精品一区二区三区| 成人性生交大合| 国产一区二区毛片| 日本va欧美va欧美va精品| 自拍偷拍亚洲欧美日韩| 国产视频一区二区在线观看| 日韩欧美不卡一区| 91麻豆精品国产91久久久久久久久 | k8久久久一区二区三区| 久久99精品久久只有精品| 肉色丝袜一区二区| 亚洲福中文字幕伊人影院| 一区在线播放视频| 国产精品理伦片| 国产无人区一区二区三区| 26uuu色噜噜精品一区二区| 日韩欧美中文一区二区| 91麻豆精品国产91久久久 | 日韩电影在线观看电影| 亚洲国产综合91精品麻豆| 亚洲精品乱码久久久久久日本蜜臀| 欧美国产视频在线| 国产精品超碰97尤物18| 欧美国产日韩亚洲一区| 国产免费观看久久| 中文在线免费一区三区高中清不卡| 久久综合狠狠综合久久综合88| 日韩美女主播在线视频一区二区三区| 这里只有精品视频在线观看| 欧亚洲嫩模精品一区三区| 欧美中文字幕久久| 欧美影院一区二区三区| 欧美日韩1234| 欧美一区欧美二区| 26uuu色噜噜精品一区| 国产三级一区二区| 中文字幕一区二区不卡| 亚洲免费电影在线| 亚洲在线视频网站| 日本色综合中文字幕| 久久国产成人午夜av影院| 国产精品1区2区3区在线观看| 国产高清不卡二三区| 99re成人精品视频| 欧美日韩一卡二卡三卡| 日韩欧美资源站| 国产午夜精品一区二区| 一区二区三区免费看视频| 视频一区二区中文字幕| 精品在线视频一区| 不卡一区二区中文字幕| 91黄色小视频| 日韩欧美美女一区二区三区| 欧美精品一区二区三区在线播放 | 欧美一区二区美女| 久久精品日产第一区二区三区高清版 | 国产999精品久久久久久| 91亚洲男人天堂| 欧美日韩国产成人在线免费| 久久夜色精品国产噜噜av| **欧美大码日韩| 日韩高清中文字幕一区| 国产成人在线视频网站| 欧美在线啊v一区| www一区二区| 亚洲国产日产av| 国产成人啪午夜精品网站男同| 色94色欧美sute亚洲13| 91精品国产麻豆| 亚洲欧美色一区| 精品一区二区三区影院在线午夜| 91蝌蚪porny| 精品福利av导航| 亚洲精品日产精品乱码不卡| 黄色成人免费在线| 欧美性大战xxxxx久久久| 国产日韩亚洲欧美综合| 午夜免费欧美电影| 97精品久久久久中文字幕| 亚洲精品一线二线三线| 亚洲国产婷婷综合在线精品| 粉嫩av亚洲一区二区图片| 欧美福利视频一区| 亚洲天堂精品视频| 国产成人免费视| 日韩一区二区三区在线观看| 亚洲精品成人悠悠色影视| 国产精品伊人色| 日韩欧美激情在线| 亚洲国产欧美在线人成| 色悠悠久久综合| ...中文天堂在线一区| 国产在线精品一区二区三区不卡| 欧美久久久一区| 亚洲国产综合人成综合网站| 一本到不卡精品视频在线观看| 久久这里只有精品6| 免费精品视频在线| 欧美日韩免费一区二区三区视频| 最新热久久免费视频| 成人一二三区视频| 国产三级一区二区三区| 国产乱人伦精品一区二区在线观看| 欧美videos中文字幕| 男女激情视频一区| 在线综合视频播放| 麻豆精品视频在线观看| 精品剧情在线观看| 国产在线精品一区二区夜色|