From owner-freebsd-arch@FreeBSD.ORG Mon Nov 24 07:40:27 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 E9AFB1065672; Mon, 24 Nov 2008 07:40:26 +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 712F48FC22; Mon, 24 Nov 2008 07:40:26 +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 EACAF2E271; Mon, 24 Nov 2008 08:40:18 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id B784F14D43D; Mon, 24 Nov 2008 08:40:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227512415; bh=xSGpxrwwW2ZGSDvXcOTY5a9g0ZBmm3ROf XK7bQLfOaA=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=ssPieHFxxvLLwh5K4cNsbiqx0+beYHS1OeoZgmLtAazYsdZzErPmI4enCSDydfDCa Mn0WHjU7VPvHtkHBPTEW0i5J6dKCv39yoHDTlnZeYwD6R9nHPfh9SsTnjIiAPyDl8xx o/kyHJ+0d/cMB1sNf99FMKxIv/NqdAv/XqwyFkS0jdf1M7z2DDvknAPlWa6IbYFSEw0 x0Gmz19EmwiuUuat9Ypr9bvnvAAnoIAvTFxE25A502Pds8UEaEBLd2g+0ai8gnWrKPE X6yaTcrfhlvL6D8Iv5YjSLmt2rE4hdfUu6qp3m2HXbPYy09iSctsJO257ZoMV4PNWW4 kS7367UEw== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mAO7eFOJ003029; Mon, 24 Nov 2008 08:40:15 +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:40:15 +0100 Message-ID: <20081124084015.84153bmq6411va68@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Mon, 24 Nov 2008 08:40:15 +0100 From: Alexander Leidinger To: Jeff Roberson References: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> <20081123205603.17752y578er4bcqo@webmail.leidinger.net> <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> <20081123135009.I971@desktop> In-Reply-To: <20081123135009.I971@desktop> 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: EACAF2E271.EE169 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: Attilio Rao , 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:40:27 -0000 Quoting Jeff Roberson (from Sun, 23 Nov 2008 =20 13:50:35 -1000 (HST)): > > On Mon, 24 Nov 2008, Attilio Rao wrote: > >> 2008/11/23, Alexander Leidinger : >>> Quoting Attilio Rao (from Sun, 23 Nov 2008 14:02:2= 2 >>> +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, disabl= e >>> this something, and then run a tool which tells me which parts of specif= ic >>> 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. > > I would add that it is only sampled so you don't see every =20 > instruction executed. You can use gcov for that however. That's =20 > precisely what it's for. How to use gcov for the kernel? Bye, Alexander. --=20 If only you knew she loved you, you could face the uncertainty of whether you love her. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137