From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 3 10:29:45 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 B443316A4CE for ; Wed, 3 Mar 2004 10:29:45 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55B2A43D1F for ; Wed, 3 Mar 2004 10:29:45 -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 i23ISVDL031703; Wed, 3 Mar 2004 13:28:31 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i23ISUD7031700; Wed, 3 Mar 2004 13:28:31 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 3 Mar 2004 13:28:30 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE 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:29:45 -0000 On Wed, 3 Mar 2004, Dag-Erling Sm=F8rgrav 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:=20 > > > > http://www.watson.org/~robert/freebsd/20040302-sockets.ps > > > > Duck and cover.=20 >=20 > Hmm, is there any way you can try to group functions with similar names > together? For instance, functions whose names match /^fd.*/ call mostly > eachother, and the graph would be a lot cleaner if they were placed > close together.=20 In the most recent revision, I've tried to assign the same rank and color to certain classes of functions:=20 System Calls (accept, bind, close, connect, dup, ...) Protocol Switch (pru_accept, pru_attach, pru_bind, pr_ctloutput, ...) File Descriptor Switch (fo_read, fo_write, fo_poll, ...) Socket File Descriptor Functions (soo_read, soo_write, ...) In addition, I assigned the same color to certain classes of functions: Almost System Calls (kern_bind, kern_connect, accept1, ...) Protocol Upcalls to Socket Layer (soisdisconnected, soisdisconnected, ...= ) I'm going to experiment with grouping later today. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research