Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1170327imu; Wed, 16 Jan 2019 14:04:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN6yWQqHNC2aQVhJ4cvcO6A2vhnIypKYBtHZvSnvGnquCSmIx8fTxNs8gQTzZvzHnJd0dca5 X-Received: by 2002:a63:6782:: with SMTP id b124mr11028228pgc.151.1547676282928; Wed, 16 Jan 2019 14:04:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547676282; cv=none; d=google.com; s=arc-20160816; b=KW85Kt22nIpblojDcvlHAbQSam0KWHp3B+oBIcN0A68ocI4NVXVKjLtRg+eguvvgXV bvY60WeN8pe3RJE3eQTC1Md/l/UE8PDBGx48+LqloauoAlp6bqcwR9wXrb8PdqOQm+Dh cSwngjtpR2GO/Y4Eo8oguvgA50jHOM0qvAlyY0+7SdEm1PL2fyoguHvq8VULC5U18XC+ C01EsV60g8cPeAChil0ToqMGhHD3KKnzOoxhGdTFNs5zCp/2jic0ufctGZKZrFSHv2Oc 3Bz5QwSzXHoAbidN1Tz1qgSieSC9L30p5iK5dCPzk20WNuEP6UFyYSpY2rA3fLevK6L3 Nkfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FyDxpnAlNAJo9DSYN+cThAJh0eUJ7zbyxRtAieFj6Xw=; b=Ombugx2/yjzTOxZxTVY9bEagD2ts1YQS0wVLF0fO0OEwezjZgoJaX7LzQohFRc2DBz srndnedPLtrlulbmpd/vDhiEqu2GCf26RzHotSFBAOAKRjmUp0gkFXT9LaKEbXHzhtqk HIAIGIVWF1259/H8Ujo9msHWHHE7hcqdN1DqxRJgaGj0K4OHnQndPJcBdHCv8ohmnJuC DjTrwqqEg6Ocy/1rRjUJRTVMvhntt2H7xxT8PhQpo/Qr/ihOrXvasqaQKpAFB7xcaiiv w04KAe7O81RNFXibEsVff/BWVmGo3uxxv9c+iY5q4r8x1enDYAAJlsp+Kul+VOUqDNUZ r15g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rIGCVRmb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si7678403pfb.22.2019.01.16.14.04.23; Wed, 16 Jan 2019 14:04:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rIGCVRmb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393188AbfAPNbV (ORCPT + 99 others); Wed, 16 Jan 2019 08:31:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:40716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732780AbfAPNbU (ORCPT ); Wed, 16 Jan 2019 08:31:20 -0500 Received: from quaco.ghostprotocols.net (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EA6D120675; Wed, 16 Jan 2019 13:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547645480; bh=+j/NMzhkMTSKtfvjPkmFokoaalfkyDTKrxhLoZ5kujc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rIGCVRmbEXBUPdnD+T1hsAi0DjBXrKHQB1rT+iA2n4SSQO1wGWfvThrI+Hu1IvA/e TbcVkrDp3ABnGNH1qlByxqi8Jo2hDwa5HvyZRtbKZWK5QptymJ9jllljCYahSAsuMT BBpERIW3L37fVFaISiQTe4nOGHsqp5B+eE68lOMo= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5AF3341AB5; Wed, 16 Jan 2019 10:31:17 -0300 (-03) Date: Wed, 16 Jan 2019 10:31:17 -0300 From: Arnaldo Carvalho de Melo To: Nick Clifton Cc: Namhyung Kim , Jiri Olsa , lkml , Ingo Molnar , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Masami Hiramatsu , kernel-team@lge.com Subject: Re: [RFC] perf tools: Filter out hidden symbols from labels Message-ID: <20190116133117.GA2243@kernel.org> References: <20190115135354.11572-1-jolsa@kernel.org> <960f0b83-a623-67a6-ab55-d56139d10ba2@redhat.com> <20190115163540.GA20159@kernel.org> <20190116043735.GA31070@sejong> <35bf274a-f91e-1b4f-398a-dbe6f4105dfd@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <35bf274a-f91e-1b4f-398a-dbe6f4105dfd@redhat.com> X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, Jan 16, 2019 at 11:38:30AM +0000, Nick Clifton escreveu: > Hi Guys, > > > >> Humm, it would be nice for perf annotate to show those options when one > >> navigates the annotation, > > Usually the command line options can also be found in the debug info for > the executable. Assuming it has not been stripped, of course. > > One of the advantages of the annobin strategy of using ELF notes is that > these are not stripped from executables... > > Unfortunately the annobin notes will probably not be very helpful as they > only record a minor subset of the typical gcc command line options. > (Specifically: -O, -g, -D_FORTIFY_SOURCE, -D_GLIBCXX_ASSERTIONS, > -fcf-protection, -fpic (and variants), -fshort-enum, -fstack-clash-protection, > -fstack-protector, -mstackrealign, -fexceptions). Humm, is -fno-omit-frame-pointer there by any chance? :-) > >> Is there any library that gets those > >> annotations and put them in some linked list that we could use in > >> tools/perf/? > > Sorry - no such library exists. No problem... > > If it's just an ELF note, we could parse it directly. As we already parse some of the ELF notes, like the buildid, so just one more to read and make available in the TUI somehow, should be handy. > > https://developers.redhat.com/blog/2018/02/20/annobin-storing-information-binaries/ > > Exactly - and what a great blog author that person is ... :-) :-) - Arnaldo