[VxW] shell command : i( )

Joe Durusau durusau_novirus at bellsouth.net
Thu Jan 29 19:28:31 PST 2004



Gabi wrote:
> "Zhang Yu" <yuzhang1972 at hotmail.com> wrote in message news:<mailman.64.1073585022.1458.vxwexplo at csg.lbl.gov>...
> 
>>The target is a router, below is what I got in tornado shell, what does 
>>ERRNO 
>>column mean? if ERRNO is non-zero, does this mean something is wrong with 
>>those tasks?
>>But seems the router works well, I really did not see anything abnormal?
>>By the way, can someone tell me when I debug my system I can use these 
>>values of PC, SP 
>>to do what? and how?  Thanks,
>>
>>-> i
>>  NAME        ENTRY       TID    PRI   STATUS      PC       SP     ERRNO  
>>DELAY
>>---------- ------------ -------- --- ---------- -------- -------- ------- 
>>-----
>>tExcTask   excTask       6ffea98   0 PEND         a688bc  6ffe9a8  3d0001   
>>  0
>>tWdbTask   0xa4b5dc      49a4818   3 READY        a561ac  49a4638       0   
>>  0
>>tNetTask   netTask       49c5900  50 READY        a56670  49c5818  3d0001   
>>  0
>>tFtpdTask  0x9ce400      49bf450  55 PEND         a546a4  49bf2d0       0   
>>  0
>>NotifyExecu0x99c700      3d74050  60 PEND         a688bc  3d73f40       0   
>>  0
>>tRxMsgTask pts_recv_tas  45f74f8  70 PEND         a688bc  45f7428       0   
>>  0
>>SYS_PPP_C_10x453fbc      49b43c8  80 PEND         a546a4  49b42b8       0   
>>  0
>>mwTimerTsk mw_timerTask  4602378  80 DELAY        a590b0  46022d0       0   
>>  1
>>SYS_PPP_D_10x453ea4      49b8e08  85 PEND         a546a4  49b8d08       0   
>>  0
>>tss_timer  np_ss_update  451d030  90 DELAY        a590b0  451cfa8       0   
>> 56
>>newLogLib  newLogTask    6ff6350  92 PEND         a688bc  6ff6078       0   
>>  0
>>tCheckScb  scbcheck      4959c58 100 DELAY        a590b0  4959b98       0   
>>537
>>Telnetd    RCC_TELNETD   3d7fc68 100 PEND         a546a4  3d7faf8       0   
>>  0
>>jPacketsBytjPacketsByte  3d78520 100 DELAY        a590b0  3d78490       0   
>> 58
>>CONSOLE    TELNETD_Cons  3d722f0 100 PEND+T       a546a4  3d720c0  3d0001 
>>51551
>>tMpls      mpls_activat  3d6aba8 100 READY        757f08  3d6aa58  3d0002   
>>  0
>>mwE100N2   GF8516_E100T  45ceba0 120 PEND         a546a4  45cea98  3d0001   
>>  0
>>tjstatTask jStats_Task   4521248 120 DELAY        a590b0  45211c8       0   
>>120
>>value = 0 = 0x0
>>
>>_________________________________________________________________
>>ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ? MSN Hotmail¡£ http://www.hotmail.com
> 
> 
> Hi,
> type "printErrno 0x3d0001" from the shell will print the reason for this errno.
> for example:  
> -> printErrno 0x3d0001
> 0x3d0001 = S_objLib_OBJ_ID_ERROR
> value = 0 = 0x0
> -> 
> Gabi

True enough, but always remember that errno as shown
by the i command is normally useless.  The only correct
use of errno is to store it somewhere immediately after
a function returns an error indication, then look it up
of use PrintErrno as suggested earlier.  It is  always an
error to randomly look at errno without knowing that
an error has in fact occurred.

Speaking only for myself,

Joe Durusau



More information about the VxWexplo mailing list