From owner-freebsd-arch@FreeBSD.ORG Wed Feb 19 00:32:33 2014 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2C565C8A; Wed, 19 Feb 2014 00:32:33 +0000 (UTC) Received: from mail-qa0-x22f.google.com (mail-qa0-x22f.google.com [IPv6:2607:f8b0:400d:c00::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF44718A1; Wed, 19 Feb 2014 00:32:32 +0000 (UTC) Received: by mail-qa0-f47.google.com with SMTP id j5so24134043qaq.6 for ; Tue, 18 Feb 2014 16:32:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=hWdgO78LqGdWyDPtpK3tohGE9sr642FLCGSM3sP1ynQ=; b=gqYRwofj2B+yw60Qpeiqogb72VnusKBCuAje7FtGOvzpN7PdREsfXg8eVEpPWIi2dR nFVFlEuRET7hbnu7Pieg7Xrmt60SNGUAadT6lDvv+KsLDqkB9JJrtFEJ8FEthYf/OzJ+ 1Zl3LYqQKGFS8OxNSjJHdvDSmBfJHCFh26m01L8DrHRGq+VGNOkthgNhkttNdqAQN+Dz FQ3aqjmJZ7WPjx8hCBIZ3a9lUJYy8iCZpuzzGHyu0wVNl7yrc9PFWrOZuHa8dKyKV1tt rG6Uki6SOGX6UsMFfRCSxDNKJXmD0J3U9qmYOlXJ+hZqcARuIpKLC6QHcgnQPiEJ35hz sWPA== MIME-Version: 1.0 X-Received: by 10.224.125.4 with SMTP id w4mr15512371qar.68.1392769952037; Tue, 18 Feb 2014 16:32:32 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.16.10 with HTTP; Tue, 18 Feb 2014 16:32:32 -0800 (PST) Date: Tue, 18 Feb 2014 16:32:32 -0800 X-Google-Sender-Auth: intH1abbjtVTQYc-V8ubSaTK7o8 Message-ID: Subject: [rfc] add callgraph PC annotation to pmcstat From: Adrian Chadd To: "freebsd-arch@freebsd.org" , freebsd-current , George Neville-Neil Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 00:32:33 -0000 Hi, This patch adds callgraph annotation to pmcstat via -a. It doesn't (yet) add line numbers; I'll see if I can easily add that without too much effort. This is like (and based on) the -m option but the -m option only prints the first entry in the callgraph. It isn't very useful if you want to see what actually called it and where it called it from, in order to trace things like "where's that memcpy actually coming from?" http://people.freebsd.org/~adrian/netflix/20140218-pmcstat-callgraph-annotate.diff Thanks! -a