From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 11 16:50:46 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63D9F16A4CE; Mon, 11 Apr 2005 16:50:46 +0000 (GMT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A99D43D1D; Mon, 11 Apr 2005 16:50:46 +0000 (GMT) (envelope-from sam@errno.com) Received: from [66.127.85.92] ([66.127.85.92]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id j3BGoZms075341 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Apr 2005 09:50:38 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <425AAB22.3020905@errno.com> Date: Mon, 11 Apr 2005 09:51:46 -0700 From: Sam Leffler Organization: Errno Consulting User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20050411085956.Y28571@mail.chesapeake.net> <20050411160729.GP837@darkness.comp.waw.pl> In-Reply-To: <20050411160729.GP837@darkness.comp.waw.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: Jeff Roberson cc: hackers@freebsd.org Subject: Re: JKH Task: Stack saving/tracing functionality. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 16:50:46 -0000 Pawel Jakub Dawidek wrote: > On Mon, Apr 11, 2005 at 09:08:33AM -0400, Jeff Roberson wrote: > +> I have proprietary code from a previous employer of mine that implements > +> some really useful debugging features. I'm looking for someone who is > +> interested in cleaning it up, making it architecture indepenent, and > +> getting it running on current. The code basically allows you to save and > +> manipulate stack information. > +> > +> This would be very useful for things like lockmgr, which right now we > +> can't really pass file:line information down to without making #ifdef mess > +> of all of the APIs as options DEBUG_LOCKs does somewhat today. Lockmgr > +> would have a buffer which contained the last N EIPs up the callstack, and > +> this information could be queried and printed using a simple api. > +> > +> Interested parties please email me. We can discuss this and I can provide > +> source. > > It would be probably useful for wintess, so when first order is stored, > it can be stored with stack and on LOR, both backtraces can be shown. > There is a similar #ifdef mess in net80211 for refcnt debugging. Sam