From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 1 22:21:50 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 76D7216A4CE; Mon, 1 Mar 2004 22:21:50 -0800 (PST) Received: from relay.mortal.ru (unknown [62.16.86.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 394C143D1D; Mon, 1 Mar 2004 22:21:49 -0800 (PST) (envelope-from zevlg@yandex.ru) Received: from us.dmz.local (wus000.dmz.local [10.32.1.6]) by relay.mortal.ru (8.11.6/8.11.6) with ESMTP id i226LjJ28495; Tue, 2 Mar 2004 09:21:45 +0300 Received: from us.dmz.local (localhost.dmz.local [127.0.0.1]) by us.dmz.local (8.12.3/8.12.3) with ESMTP id i226Pqxt025431; Tue, 2 Mar 2004 09:25:52 +0300 (MSK) (envelope-from zevlg@yandex.ru) Received: (from wtc05@localhost) by us.dmz.local (8.12.3/8.12.3/Submit) id i226PoGN025430; Tue, 2 Mar 2004 09:25:50 +0300 (MSK) X-Authentication-Warning: us.dmz.local: wtc05 set sender to zevlg@yandex.ru using -f To: Robert Watson References: From: Zajcev Evgeny Date: Tue, 02 Mar 2004 09:25:50 +0300 In-Reply-To: (Robert Watson's message of "Mon, 1 Mar 2004 21:32:35 -0500 (EST)") Message-ID: <82y8qjhij5.fsf@us.dmz.local> User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.5 (celery, berkeley-unix) 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: Tue, 02 Mar 2004 06:21:50 -0000 Robert Watson writes: > I'd like to generate static call graphs from sections of src/sys/kern, > src/sys/net, and src/sys/netinet, and ideally, get an output that looks > pretty when printed to a (perhaps large) piece of paper. It doesn't need > to be able to handle function pointer magic in structures (vnode > operations, socket operations, file descriptor operations, sysinits, etc); > I just want a fairly high-level graph to get a feel for particular chunks > of code spanning a couple of C files. Anyone have any recommendations? > Preferably something that can actually parse the variant of C we use in > our kernel :-). > I used patch to gcc to output call graph in dot format based on parse tree generated by gcc year or so ago. It was pretty nice, but I dont awared is this patch yet supported or not. You can find some info about it at http://luxik.cdi.cz/~devik/mm.htm > Thanks, > > Robert N M Watson FreeBSD Core Team, TrustedBSD Projects > robert@fledge.watson.org Senior Research Scientist, McAfee Research > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" -- lg