From owner-svn-src-head@FreeBSD.ORG Thu Sep 12 19:12:24 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A8179925; Thu, 12 Sep 2013 19:12:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8080A2DDE; Thu, 12 Sep 2013 19:12:24 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id A43C1B946; Thu, 12 Sep 2013 15:12:23 -0400 (EDT) From: John Baldwin To: src-committers@freebsd.org Subject: Re: svn commit: r255493 - in head/usr.bin: kdump truss Date: Thu, 12 Sep 2013 15:02:01 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <201309121808.r8CI8P7m006557@svn.freebsd.org> In-Reply-To: <201309121808.r8CI8P7m006557@svn.freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201309121502.02022.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 12 Sep 2013 15:12:23 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 19:12:24 -0000 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,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,0x7fffffffd5a8,0) 2782 wait RET wait6 2800/0xaf0 -- John Baldwin