From owner-freebsd-arch@FreeBSD.ORG Sun Nov 23 20:11:41 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 99834106564A; Sun, 23 Nov 2008 20:11:41 +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 3E0298FC12; Sun, 23 Nov 2008 20:11:41 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2D989.dip.t-dialin.net [217.226.217.137]) by redbull.bpaserver.net (Postfix) with ESMTP id 094882E0B5; Sun, 23 Nov 2008 20:56:08 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id E93A514823B; Sun, 23 Nov 2008 20:56:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1227470164; bh=hNCOUucfa+mQlnF2QCKnj5y9NjjX5ZaVy cNLhkaor4E=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uriUDcRA/aekMoWVLXs7RJoFpqguWplrb86NXd2kS5BC95Rjwxi9NqQrQ2HdKmDAS wDZ70A71IVrDzsVe72GLNbf7thQATkKbbHVvApodoaeOcepy5Hnj6Bgt7JoQoX8kiI3 pih1y56x1CXa1SH4jTnd7xA0kAawGVAkZkEb3Syab+LIRsR5GGhop3K4ITkmMzpxAg4 GosMoHM9n1D3rv1CENnCaEpb7E4Q+RfFou64gGPjrgeQlsmv0Lt9r6Gigc9JepdAjTg ft0L1LKQc0v4kmJzfcD40BfFFqK1Iy0iIWcZ5NAfXp84yHfowaA/b/ebflLkKBtDMUF 03bFYZ/dA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id mANJu3aG070936; Sun, 23 Nov 2008 20:56:03 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from Luna.Leidinger.net (Luna.Leidinger.net [192.168.2.100]) by webmail.leidinger.net (Horde Framework) with HTTP; Sun, 23 Nov 2008 20:56:03 +0100 Message-ID: <20081123205603.17752y578er4bcqo@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Sun, 23 Nov 2008 20:56:03 +0100 From: Alexander Leidinger To: Attilio Rao References: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@mail.gmail.com> In-Reply-To: <3bbf2fe10811230502t3cc52809i6ac91082f780b730@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: 094882E0B5.2388B X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.9, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, 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: Sun, 23 Nov 2008 20:11:41 -0000 Quoting Attilio Rao (from Sun, 23 Nov 2008 =20 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 =20 interested in is to enable something, run some tests in userland, =20 disable this something, and then run a tool which tells me which parts =20 of specific functions where run or not. At first I hoped I can use dtrace for this... I had a dtrace training =20 and seen the userland probes in action, where you can trace every ASM =20 instruction, but unfortunately you can not do this with kernel probes. =20 I tried with fbt and syscall on a Solaris 10 machine. I haven't tested =20 with FreeBSD-dtrace yet, but I doubt it is more advanced in this =20 regard than the Solaris dtrace. So I'm still searching. Bye, Alexander. --=20 We should keep the Panama Canal. After all, we stole it fair and square. =09=09-- S. I. Hayakawa http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137