From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752529AbcGBUio (ORCPT ); Sat, 2 Jul 2016 16:38:44 -0400 Received: from one.firstfloor.org ([193.170.194.197]:36572 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751987AbcGBUin (ORCPT ); Sat, 2 Jul 2016 16:38:43 -0400 Date: Sat, 2 Jul 2016 13:38:38 -0700 From: Andi Kleen To: Peter Zijlstra Cc: Andi Kleen , acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org, namhyung@kernel.org, Andi Kleen Subject: Re: [PATCH 5/9] perf, tools: Compute IPC and basic block cycles for annotate Message-ID: <20160702203838.GI13997@two.firstfloor.org> References: <1437233094-12844-1-git-send-email-andi@firstfloor.org> <1437233094-12844-6-git-send-email-andi@firstfloor.org> <20160630085324.GF30935@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160630085324.GF30935@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I'm looking at basic block support, but this all seems to depend on the > cycles stuff. Can we get the basic block stuff without that? Not sure what you mean with basic block stuff, but ... > > I'm looking to plot the hottest path through a branchy function. Use --branch-history to get a histogram of the hottest paths. If you want a longer history than 16/32 you can also use PT and tell the decoder to synthesize larger LBRs. However currently it cannot output metadata like cycles Or apply the following patches to show the path with perf script for individual samples (unfortunatly the disassembler support was rejected, so this won't be available in mainline) https://git.kernel.org/cgit/linux/kernel/git/ak/linux-misc.git/log/?h=perf/disassembler-1 -Andi