Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751832AbaBKLvo (ORCPT ); Tue, 11 Feb 2014 06:51:44 -0500 Received: from merlin.infradead.org ([205.233.59.134]:51800 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbaBKLvn (ORCPT ); Tue, 11 Feb 2014 06:51:43 -0500 Date: Tue, 11 Feb 2014 12:51:35 +0100 From: Peter Zijlstra To: Stephane Eranian Cc: Don Zickus , Arnaldo Carvalho de Melo , LKML , Jiri Olsa , Joe Mario , Richard Fowles Subject: Re: [PATCH 00/21] perf, c2c: Add new tool to analyze cacheline contention on NUMA systems Message-ID: <20140211115135.GE3104@twins.programming.kicks-ass.net> References: <20140211071401.GG27965@twins.programming.kicks-ass.net> <20140211105217.GS9987@twins.programming.kicks-ass.net> <20140211110242.GU9987@twins.programming.kicks-ass.net> <20140211111421.GN27965@twins.programming.kicks-ass.net> <20140211113149.GW9987@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140211113149.GW9987@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2014 at 12:31:49PM +0100, Peter Zijlstra wrote: > On Tue, Feb 11, 2014 at 12:28:47PM +0100, Stephane Eranian wrote: > > On Tue, Feb 11, 2014 at 12:14 PM, Peter Zijlstra wrote: > > > On Tue, Feb 11, 2014 at 12:08:56PM +0100, Stephane Eranian wrote: > > >> Assuming you can decode and get the info about the base registers used, > > >> you'd have to do this for each arch with load/store sampling capabilities. > > >> this is painful compared to getting the portable info from dwarf directly. > > > > > > But its useful now, as compared to whenever GCC gets around to > > > implementing more dwarves and that GCC getting used widely enough to > > > actually rely on it. > > > > > > All you need for the decode is a disassembler, and every arch should > > > already have multiple of those. Should be easy to reuse one, right? > > > > I know, and you want to pull this into the perf tool? > > Sure why not, its already got the world and then some :/ > > It would be just another dynamic lib. The added benefit is that we could get rid of the objdump usage for annotate if we find a usable disasm lib. At which point we can start improving the annotations with these variable/type information as well. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/