From owner-freebsd-arch@FreeBSD.ORG Mon Nov 24 00:17:15 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 3849C106564A for ; Mon, 24 Nov 2008 00:17:15 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.170]) by mx1.freebsd.org (Postfix) with ESMTP id 11A828FC0C for ; Mon, 24 Nov 2008 00:17:14 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by wf-out-1314.google.com with SMTP id 24so2003734wfg.7 for ; Sun, 23 Nov 2008 16:17:14 -0800 (PST) Received: by 10.142.163.1 with SMTP id l1mr1367426wfe.108.1227484397873; Sun, 23 Nov 2008 15:53:17 -0800 (PST) Received: from ?10.0.1.199? (cpe-66-91-191-118.hawaii.res.rr.com [66.91.191.118]) by mx.google.com with ESMTPS id 20sm7179136wfi.47.2008.11.23.15.53.15 (version=SSLv3 cipher=RC4-MD5); Sun, 23 Nov 2008 15:53:16 -0800 (PST) Date: Sun, 23 Nov 2008 13:50:35 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Attilio Rao In-Reply-To: <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> Message-ID: <20081123135009.I971@desktop> References: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> <20081123205603.17752y578er4bcqo@webmail.leidinger.net> <3bbf2fe10811231546r44bd2aafqa3d714a4955f52ad@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Joseph Koshy , Alexander Leidinger , freebsd-performance@freebsd.org, FreeBSD Arch 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 00:17:15 -0000 On Mon, 24 Nov 2008, Attilio Rao wrote: > 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 specific >> 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 instruction executed. You can use gcov for that however. That's precisely what it's for. Thanks, Jeff > > Thanks, > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" >