Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp842482imu; Wed, 16 Jan 2019 08:27:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN64/kU6sNExJOnZaop5rVr0KsE7GDKL4vVAIIGnaJ0CNI5GjjJAio4aCet2kqB6ex03LMBa X-Received: by 2002:a17:902:2887:: with SMTP id f7mr10463778plb.176.1547656025922; Wed, 16 Jan 2019 08:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547656025; cv=none; d=google.com; s=arc-20160816; b=WCwA9kOnM9/nduIEQAKlDVARsWWzDwa82Pif2m5MfiPQgiSTiACt2lNXbr8EwQq56t iqTTwywx/ZyeOXf8nNGeDNo6KOS76iXv+cG9Fcq7xCPnCo5rMNigdEweycODgcpNg+et C6Fpskn6EvAojAVju0ZyNMBN74zaDaRwUEvVkCRZr4HmECk6kMBywWQeiUS9czuXDi1X Z3rH+E/ptNFq1PjRba23hW7hw0sVbysB8TUVGTQmbYIRhL8s4o5Z1tzghHpwZRYRtGu9 6iOLigllQV8dBp1Cpi0+83fWBsHhsCdg+v3i7LdS2i+kbKqKs1H0iKV+MZw/kaW6mgat XbRA== 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; bh=k75p8d9DEReF1X95IiZnphd/IuegVDJY+W/hIvOtV5c=; b=H6lmN7oefcKEMBoSsV92E0Ml3Y9beQZFk9vOBrcgGjwr+k+7TKpmVAJ/EmHkc2CLz2 8NgY86leEFrsTCGgtZKPVzA0wv6ZKlLDg8jZoCZbzKbGgI8Di7jLTJ/WCcQ5shqBVq+p Ly0KBqh5sds9MOglZybKXkYZPxZUOBkfldjPJtkqJWPdjSj+oXLhpMDrWTuw8+AFeXbe /sGVEXbeCP6TIkhvDE0r9SH/MvpsFvB670eGYwVkgErKouRUs2nSQrCznyMpVjeDFYGl zLzjDEkn0/bV3UHzTyvigFoyA+BuvJnE1Hzbd//Anb8i+GZ5cww+FHd4MpmKWUcJDfLH kwFA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14si6465430pll.346.2019.01.16.08.26.45; Wed, 16 Jan 2019 08:27:05 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732087AbfAPEhl (ORCPT + 99 others); Tue, 15 Jan 2019 23:37:41 -0500 Received: from lgeamrelo12.lge.com ([156.147.23.52]:45642 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728227AbfAPEhl (ORCPT ); Tue, 15 Jan 2019 23:37:41 -0500 Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.52 with ESMTP; 16 Jan 2019 13:37:38 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: namhyung@kernel.org Received: from unknown (HELO sejong) (10.177.227.17) by 156.147.1.127 with ESMTP; 16 Jan 2019 13:37:36 +0900 X-Original-SENDERIP: 10.177.227.17 X-Original-MAILFROM: namhyung@kernel.org Date: Wed, 16 Jan 2019 13:37:35 +0900 From: Namhyung Kim To: Arnaldo Carvalho de Melo Cc: Nick Clifton , 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: <20190116043735.GA31070@sejong> References: <20190115135354.11572-1-jolsa@kernel.org> <960f0b83-a623-67a6-ab55-d56139d10ba2@redhat.com> <20190115163540.GA20159@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190115163540.GA20159@kernel.org> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Jan 15, 2019 at 01:35:40PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 15, 2019 at 04:13:16PM +0000, Nick Clifton escreveu: > > Hi Jiri, > > > > > When perf is built with annobin plugin (RHEL8 build) extra symbols > > > are added to its binary: > > > > A bit of background for those wondering why annobin is creating > > these symbols: Annobin is a plugin for gcc that records data > > about how object file were built. It is specifically designed > > to be able to cope with files that are built using multiple > > different sets of optimization options. (Eg because of #pragma > > directives or function specific optimization attributes). It > > generates notes to cover each compiled region of code, and it > > needs the symbols in order to be able to determine exactly which > > areas in a linked binary were compiled with which options. > > Humm, it would be nice for perf annotate to show those options when one > navigates the annotation, something like press some hotkey and see the > optimization flags used. Is there any library that gets those > annotations and put them in some linked list that we could use in > tools/perf/? If it's just an ELF note, we could parse it directly. https://developers.redhat.com/blog/2018/02/20/annobin-storing-information-binaries/ Thanks, Namhyung