From owner-cvs-src@FreeBSD.ORG Fri Jan 5 21:07:45 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 200B016A403; Fri, 5 Jan 2007 21:07:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.freebsd.org (Postfix) with ESMTP id C1AF513C442; Fri, 5 Jan 2007 21:07:44 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id l05L7gnr041980; Fri, 5 Jan 2007 16:07:42 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: src-committers@freebsd.org Date: Fri, 5 Jan 2007 16:07:58 -0500 User-Agent: KMail/1.9.1 References: <200701052104.l05L4cO7037092@repoman.freebsd.org> In-Reply-To: <200701052104.l05L4cO7037092@repoman.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200701051607.59334.jhb@freebsd.org> Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 05 Jan 2007 16:07:42 -0500 (EST) X-Virus-Scanned: ClamAV 0.88.3/2414/Thu Jan 4 20:41:51 2007 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: cvs-src@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/kdump kdump.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jan 2007 21:07:45 -0000 On Friday 05 January 2007 16:04, John Baldwin wrote: > jhb 2007-01-05 21:04:37 UTC > > FreeBSD src repository > > Modified files: > usr.bin/kdump kdump.c > Log: > Add code to parse the utrace(2) entries generated by malloc(3) in a more > human-readable format. Note that we report 'realloc(p, 0)' as 'free(p)' > since both cases are encoded the same way and 'free()' is more common > than a realloc() to 0. > > MFC after: 1 week Sample before and after from a trivial case: old: 9320 kdump USER 12 00 00 00 00 00 00 00 00 00 00 00 00 9320 kdump USER 12 00 00 00 00 01 04 00 00 00 08 21 08 new: 9320 kdump USER malloc_init() 9320 kdump USER 0x8210800 = malloc(1025) I also have patches I use at work that allow kdump to recognize a 32-bit malloc utrace on an amd64 machine (for when you run an i386 binary) if folks are interested. I'm not sure how many i386 on amd64 hacks we want in the official CVS tree. :) I also have another set of patches to add various utrace(2) events to the runtime linker as well as logic in kdump to parse them that I hope to commit in the near future. -- John Baldwin