Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752597AbZKCMfl (ORCPT ); Tue, 3 Nov 2009 07:35:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751600AbZKCMfl (ORCPT ); Tue, 3 Nov 2009 07:35:41 -0500 Received: from bombadil.infradead.org ([18.85.46.34]:36820 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751482AbZKCMfk (ORCPT ); Tue, 3 Nov 2009 07:35:40 -0500 Date: Tue, 3 Nov 2009 10:35:18 -0200 From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Roland McGrath , Masami Hiramatsu , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , lkml , Steven Rostedt , Jim Keniston , Ananth N Mavinakayanahalli , Christoph Hellwig , "Frank Ch. Eigler" , "H. Peter Anvin" , Jason Baron , "K.Prasad" , Peter Zijlstra , Srikar Dronamraju , systemtap , DLE Subject: Using build-ids in perf tools was Re: [PATCH -tip perf/probes 00/10] x86 insn decoder bugfixes Message-ID: <20091103123518.GA3009@ghostprotocols.net> References: <20091027204156.30545.96425.stgit@harusame> <20091029085348.GD26970@elte.hu> <20091029191801.CADC3538@magilla.sf.frob.com> <20091103072439.GA19928@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091103072439.GA19928@elte.hu> X-Url: http://oops.ghostprotocols.net:81/blog User-Agent: Mutt/1.5.19 (2009-01-05) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1079 Lines: 25 Em Tue, Nov 03, 2009 at 08:24:39AM +0100, Ingo Molnar escreveu: > * Roland McGrath wrote: > > As Frank mentioned, the kernel's and modules' allocated ELF notes (and > > thus build IDs) are already exposed in /sys. Tools like "eu-unstrip > > -nk" use this information today. > > Ah, i didnt realize we link with --build-id already, unconditonally, > since v2.6.23 (if ld supports it): > > | From 18991197b4b588255ccabf472ebc84db7b66a19c Mon Sep 17 00:00:00 2001 > | Subject: [PATCH] Use --build-id ld option > > So we have an SHA1 build-id already on the vmlinux and on modules, and > it's exposed in /sys/*/*/notes. Just have to make use of it in > tools/perf too. I wasn't aware this was done upstream, ass-umed that it was only on kernel specfiles, will cook up a patch for consideration. - Arnaldo -- 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/