From owner-freebsd-arch@FreeBSD.ORG Mon Nov 24 07:39:30 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A1901065670; Mon, 24 Nov 2008 07:39:30 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id D1CC88FC16; Mon, 24 Nov 2008 07:39:29 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2D05F.dip.t-dialin.net [217.226.208.95]) by redbull.bpaserver.net (Postfix) with ESMTP id 2CA572E0B4; Mon, 24 Nov 2008 08:39:25 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 529AD14D413; Mon, 24 Nov 2008 08:39:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227512361; bh=fNcm2XHWMN/2yh3ubfXCLnPYnbFUCHtSm QyG0bbODKc=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=JZp2/R+p5zFmCRHYFobkbcqRGVQ6e4wVOghrElAgyQ6EW5MWVkkURn5ClTta8u72H vYw3zqu0TBteK7W8ySSD/Yb2bT/L1XbnMRykTd4mxuT0Cn1YTyWrPvn93vduQhStg+k Fv9JIcRrT1TmWy4GnCjR0TK3WCRGBnYxeSvolKeRmQvs7SlvWNI0JDG/RpGMW2RFw57 8fbsY8+Pe88JJoZFxADHMO5TGF6QCFxFx7nJJPsuXrYAl7TJtEVwCHcGW6qfP/0bOTn A0Y7LBSM1NwzwwzZVdugYZQwPHsDYi+3Ptpb/53Ih/0Q67s2LpK4T3EDrIwOB/oXCE1 JsCnOzXEA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mAO7dLYc002882; Mon, 24 Nov 2008 08:39:21 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Mon, 24 Nov 2008 08:39:20 +0100 Message-ID: <20081124083920.16126d6j9o1q9mw4@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 24 Nov 2008 08:39:20 +0100 From: Alexander Leidinger To: Attilio Rao References: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> <20081123205603.17752y578er4bcqo@webmail.leidinger.net> <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> In-Reply-To: <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.3) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 2CA572E0B4.C3668 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-13.504, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MIME_QP_LONG_LINE 1.40, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: FreeBSD Arch , freebsd-performance@freebsd.org, Joseph Koshy Subject: Re: [PATCH] pmcannotate tool X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 07:39:30 -0000 Quoting Attilio Rao (from Mon, 24 Nov 2008 =20 00:46:29 +0100): > 2008/11/23, Alexander Leidinger : >> Quoting Attilio Rao (from Sun, 23 Nov 2008 14:02:22 >> +0100): >> >> >> > pmcannotate is a tool that prints out sources of a tool (in C or >> > assembly) with inlined profiling informations retrieved by a prior >> > pmcstat analysis. >> > If compared with things like callgraph generation, it prints out >> > profiling on a per-instance basis and this can be useful to find, for >> > example, badly handled caches, too high latency instructions, etc. >> > >> >> Can this also be used to do some code coverage analysis? What I'm >> interested in is to enable something, run some tests in userland, disable >> this something, and then run a tool which tells me which parts of specifi= c >> functions where run or not. > > Yes, this is exactly what it does. > You can see traces for any sampled PC and so get a profiling anslysis > on a per-instance basis. Cool. Would be great if you could provide some example in the man page =20 or as a script which shows how to do this for kernel code. This would =20 immediately show us how good our regression tests are for their =20 specific areas of test. Bye, Alexander. --=20 In a family recipe you just discovered in an old book, the most vital measurement will be illegible. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137