Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753107AbZKRW3c (ORCPT ); Wed, 18 Nov 2009 17:29:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752697AbZKRW3b (ORCPT ); Wed, 18 Nov 2009 17:29:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55155 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752114AbZKRW3Y (ORCPT ); Wed, 18 Nov 2009 17:29:24 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Arnaldo Carvalho de Melo X-Fcc: ~/Mail/linus Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , =?utf-8?q?Fr=C3=A9d=C3=A9ric=20Weisbecker?= , Mike Galbraith , Peter Zijlstra , Paul Mackerras Subject: Re: [PATCH 3/4] perf symbols: Record the build_ids of kernel modules too In-Reply-To: Arnaldo Carvalho de Melo's message of Wednesday, 18 November 2009 20:20:52 -0200 <1258582853-8579-3-git-send-email-acme@infradead.org> References: <1258582853-8579-1-git-send-email-acme@infradead.org> <1258582853-8579-2-git-send-email-acme@infradead.org> <1258582853-8579-3-git-send-email-acme@infradead.org> Emacs: Lovecraft was an optimist. Message-Id: <20091118222910.8F6F51983@magilla.sf.frob.com> Date: Wed, 18 Nov 2009 14:29:10 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 18 > + snprintf(name, sizeof(name), > + "/sys/module/%s/notes/.note.gnu.build-id", line); The arch linker script for .ko's is free to fold notes into a single section with a different name or suchlike, and maybe future ones will. So it's not pedantically kosher to assume the name of the section rather than just looking at all the /sys/module/%s/notes/* files present until you find NT_GNU_BUILD_ID. (In practice there is probably only ever one file there to look at, but you never know.) Thanks, Roland -- 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/