Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1148781imu; Wed, 16 Jan 2019 13:38:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4WMFa3W7wcsz1EkJRW971Z9keKDHwcPrQo3HekXs1qveow+AK9lQOaHDZXXtmrtgCmq+dh X-Received: by 2002:a17:902:76cb:: with SMTP id j11mr12242020plt.179.1547674723430; Wed, 16 Jan 2019 13:38:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547674723; cv=none; d=google.com; s=arc-20160816; b=yA24SARNG3hAvvA9QYIurybmtanD01HnPJGRXkte1tJ/08qjY6hZ+VC2HLnMCpHyhi c6kRHzT0tTLXY4T2DuYHv4rJ1hcq36BMAwC6t6/+xuPkyPlmP7G64qMjsbg/Dz1YTecD 5XJ+oMvfIDIj3WMlTK1AqhGumoxOuk7s50PZjfzB+V8M4Q02Gc6ywaQJl9OR1tfO9UWj FMi9tfP0mCFv+n2neuPsj7Dbfb7lWH7YLDgSmNB3c6MIZBw/1cKpbl04Gqek9fnrGECV 1jm/HPG0PY79TTvJiaDd6OFj9aprQ7g7KdyRb8zEf2FGkK7fv2F4F+JrLlGL1XR/symD YxHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:subject:organization:autocrypt:openpgp:from:references :cc:to; bh=Ao0bXNKTIz6oV4ds9XMxKPFOPhKVpH3EKJ6z5m7gKYI=; b=qmdsYn3HoATvxbBSSx25fmlewuSM3/YihHZYMYqW9ojq0Dm9HjU0legWrGLM+5WbgA 781FPoXqsG3upaHI3YQgoVb6JOiwkMLFFd6JdK3lq5HWeCReIX2l0pqIqWStCzIU127W hfHb/csfiGC1qDp0wTcs4Dy0MfwvDdG55/ypIBzaNUydhCb8x1wC26Anm+n5ScRc1hMt aPYiCuPBdUK35YDz/TflWU05jNuujPg+dy7dx6hbOAeKZulqOD1g94D8BjumFuX8aReY VBAyGagI9SSJ3vS4fAF2JB05NFbCD30iTXw5WuDkhSa+TfAk5SquyaO710OAGTkUYIZX OQ3A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g59si3760323plb.302.2019.01.16.13.38.27; Wed, 16 Jan 2019 13:38:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390081AbfAPLif (ORCPT + 99 others); Wed, 16 Jan 2019 06:38:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:34306 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730420AbfAPLif (ORCPT ); Wed, 16 Jan 2019 06:38:35 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 67E381393B; Wed, 16 Jan 2019 11:38:34 +0000 (UTC) Received: from [10.36.116.252] (ovpn-116-252.ams2.redhat.com [10.36.116.252]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5A9F55D978; Wed, 16 Jan 2019 11:38:32 +0000 (UTC) To: Namhyung Kim , Arnaldo Carvalho de Melo Cc: Jiri Olsa , lkml , Ingo Molnar , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Masami Hiramatsu , kernel-team@lge.com References: <20190115135354.11572-1-jolsa@kernel.org> <960f0b83-a623-67a6-ab55-d56139d10ba2@redhat.com> <20190115163540.GA20159@kernel.org> <20190116043735.GA31070@sejong> From: Nick Clifton Openpgp: preference=signencrypt Autocrypt: addr=nickc@redhat.com; prefer-encrypt=mutual; keydata= mQINBFm/2cUBEADkvRqMWfAryJ52T4J/640Av5cam9ojdFih9MjcX7QWFxIzJfTFYq2z+nb4 omdfZosdCJL2zGcn6C0AxpHNvxR9HMDkEyFHKrjDh4xWU+pH4z9azQEqJh331X7UzbZldqQo 16VkuVavgsTJaHcXm+nGIBTcUbl2oiTtHhmuaYxx6JTMcFjC7vyO5mLBw78wt52HBYweJ0Nj HBvvH/JxbAAULSPRUC61K0exlO49VFbFETQNG1hZTKEji95fPbre7PpXQ0ewQShUgttEE/J3 UA4jYaF9lOcZgUzbA27xTV//KomP0D30yr4e4EJEJYYNKa3hofTEHDXeeNgM25tprhBUMdbV RZpf2Keuk2uDVwc+EiOVri48rb1NU+60sOXvoGO6Ks81+mhAGmrBrlgLhAp8K1HPHI4MG4gH nrMqX2rEGUGRPFjC3qqVVlPm8H05PnosNqDLQ1Pf7C0pVgsCx6hKQB7Y1qBui7aoj9zeFaQg pYef+CEERIKEcWwrjaOJwK3pi9HFdxS0NNWYZj8HPzz/AsgTTQdsbulPlVq2SsctmOnL42CZ OCTppGYwl53CG/EqVY+UQBzFzJBaY8TJRFFYVEy5/HH4H11rMoZwqIkk71EOGU3X6mWlANRi kR3M4GhVITRzuaV69Fed+OeXcCmP94ASLfuhBR2uynmcHpBKpwARAQABtDtOaWNrIENsaWZ0 b24gKENoaWVmIEJpbnV0aWxzIE1haW50YWluZXIpIDxuaWNrY0ByZWRoYXQuY29tPokCOAQT AQIAIgUCWb/ZxQIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQE/zvid2ePE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[RFC] perf tools: Filter out hidden symbols from labels Message-ID: <35bf274a-f91e-1b4f-398a-dbe6f4105dfd@redhat.com> Date: Wed, 16 Jan 2019 11:38:30 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190116043735.GA31070@sejong> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 16 Jan 2019 11:38:34 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). >> 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. > If it's just an ELF note, we could parse it directly. > https://developers.redhat.com/blog/2018/02/20/annobin-storing-information-binaries/ Exactly - and what a great blog author that person is ... :-) Cheers Nick