svn commit: r255493 - in head/usr.bin: kdump truss

John Baldwin jhb at freebsd.org
Thu Sep 12 19:12:24 UTC 2013


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


More information about the svn-src-all mailing list