From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31806 invoked by alias); 3 Nov 2009 12:35:33 -0000 Received: (qmail 31795 invoked by uid 22791); 3 Nov 2009 12:35:33 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Nov 2009 12:35:24 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA3CZNXp022656 for ; Tue, 3 Nov 2009 07:35:23 -0500 Received: from doppio.ghostprotocols.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA3CZKwP023446 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 3 Nov 2009 07:35:22 -0500 Received: by doppio.ghostprotocols.net (Postfix, from userid 500) id CA28ADC; Tue, 3 Nov 2009 10:35:18 -0200 (BRST) Date: Tue, 03 Nov 2009 12:35:00 -0000 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) Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00396.txt.bz2 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