Date: Thu, 12 Sep 2013 15:02:01 -0400 From: John Baldwin <jhb@freebsd.org> To: src-committers@freebsd.org Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org Subject: Re: svn commit: r255493 - in head/usr.bin: kdump truss Message-ID: <201309121502.02022.jhb@freebsd.org> In-Reply-To: <201309121808.r8CI8P7m006557@svn.freebsd.org> References: <201309121808.r8CI8P7m006557@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, September 12, 2013 2:08:25 pm John Baldwin wrote: > Author: jhb > Date: Thu Sep 12 18:08:25 2013 > New Revision: 255493 > URL: http://svnweb.freebsd.org/changeset/base/255493 > > Log: > - Decode the idtype argument passed to wait6() in kdump and truss. > - Don't treat an options argument of 0 to wait4() as an error in > kdump. > - Decode the wait options passed to wait4() and wait6() in truss > and decode the returned rusage and exit status. > > Approved by: re (kib) > MFC after: 1 week Sample truss output: wait4(70956,{ EXITED,val=1 },0x0,{ u=0.000000,s=0.000255,in=0,out=0 }) = 70956 (0x1152c) wait4(70957,{ SIGNALED,sig=62,cored },WNOHANG,{ u=0.000000,s=0.000058,in=0,out=0 }) = 0 (0x0) wait4(70957,{ SIGNALED,sig=SIGILL,cored },0x0,{ u=0.000000,s=0.018391,in=0,out=135 }) = 70957 (0x1152d) wait6(P_PID,70973,{ SIGNALED,sig=SIGTERM },WEXITED,{ u=0.000000,s=0.000176,in=0,out=0 },0x0) = 70973 (0x1153d) Sample kdump output (same test code, different pids): 2782 wait CALL wait4(0xadf,0x7fffffffd514,0,0x7fffffffd518) 2782 wait RET wait4 2783/0xadf 2782 wait CALL wait4(0xae0,0x7fffffffd514,0x1<WNOHANG>,0x7fffffffd518) 2782 wait RET wait4 0 2782 wait CALL wait4(0xae0,0x7fffffffd514,0,0x7fffffffd518) 2782 wait RET wait4 2784/0xae0 2782 wait CALL wait6(P_PID,0xaf0,0x7fffffffd514,0x10<WEXITED>,0x7fffffffd5a8,0) 2782 wait RET wait6 2800/0xaf0 -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309121502.02022.jhb>