From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 3 10:18:29 2004 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 2EBE216A4CE for ; Wed, 3 Mar 2004 10:18:29 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C160243D1D for ; Wed, 3 Mar 2004 10:18:28 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.10/8.12.10) with ESMTP id i23IHGDL031456; Wed, 3 Mar 2004 13:17:16 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i23IHGjA031453; Wed, 3 Mar 2004 13:17:16 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 3 Mar 2004 13:17:16 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Zajcev Evgeny In-Reply-To: <82brneh1g3.fsf@us.dmz.local> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Looking for static analysis tool to generate call graphs 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: Wed, 03 Mar 2004 18:18:29 -0000 On Wed, 3 Mar 2004, Zajcev Evgeny wrote: > Robert Watson writes: > > > Well, using a scary combination of grep, awk, a long list of "omit this" > > regexp's, and prcc from cflow, I got the following: > > > > http://www.watson.org/~robert/freebsd/20040302-sockets.ps > > Actually it looks kind a mess. Maybe use dot's clustering or ranking to > organize callgraph a little? Part of that is because things are somewhat convoluted :-). I've applied some of your suggestions, as well as a bit more noise-trimming and clarification, to: http://www.watson.org/~robert/freebsd/20040303-sockets.ps Hopefully this is somewhat of an improvement. I also added some more of the socketvar.h macros to my "hinted" edges -- apparently prcc doesn't really do much with our large macros, and so I was missing some edges. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research