Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp456541pxb; Sat, 6 Mar 2021 05:25:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxC40M0eE0PTslhFw7GnqgU/IJIIwnUkHLv5Xb7MiOgZqSRS7IXit/PMrV3JP8W8BF6j4k X-Received: by 2002:a17:906:9bc5:: with SMTP id de5mr3679243ejc.284.1615037144369; Sat, 06 Mar 2021 05:25:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615037144; cv=none; d=google.com; s=arc-20160816; b=Lwjms5Yr9UZzICLPzgb7WIkhkFsQ9OzJxL3NfFItOpOBfVe59EjoIEQtTKQDSysN9X PuCt5krYYNyVG2EcBggLCLidJQib8xTVbNYLAvJ53DPUrczAZQx9iopIGpheLHL1y9JN 3iM2BlRZK0VbqGG3ONEaioKKQfvW3MBSxOdvMJHMVenPmLuf1CT2950VoRh9IV7WRxLK rrmZUTsMmv01LDgdvLk0embh8HQBdsMF+L6MIlulyFNx5ZXwLqsF1bBsOgQHg0eqz2HM CCiQu7kyhHMqz5Jx5EtDVst7j1a5I3HLfphl4bfVo2Fw4NzgK6m3Y8pIYmtj8LLVgsES SysA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=y1LicywWNkC4rlLfsBffxZAv37vWhj1a/NQpJnOtBdQ=; b=JmQxAG5ZMtpZqNqji/fGVaYbJ26Vnl1h/SUCR1rNedmEDkWVc7iN9N8yD23ere1KND tZB82yHK7UlKXfMsYMKRwn36ok62Au8qTRqLDXt+ieWfTgwU6Nbvzl5r30cJHipFHKJL lXD8ALWssQaZ+9uAx8JB5s13InVVL1Xz4hnDZW8HYOGXVEgZo6YnyD+RulEjA6a17rFW EZ7h46UiS2AWtE+u370uiGRUsCe9D1gsJKXJYMpCkyhOJYBBIafIecA2xaRVfK6oKXuu 5wjr0MUrB3mBk2VNmWbtnF0ggkRkgw46WLFLh9BwW4LStbzLH0y/w/WZPIltUAiwgEtb s0UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tU9UWnSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a2si3534661edy.86.2021.03.06.05.25.22; Sat, 06 Mar 2021 05:25:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tU9UWnSs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230438AbhCFNWY (ORCPT + 99 others); Sat, 6 Mar 2021 08:22:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:50252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230427AbhCFNWS (ORCPT ); Sat, 6 Mar 2021 08:22:18 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E595C65017; Sat, 6 Mar 2021 13:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615036938; bh=1Spf0DijXQCIkDTm0HNj0q6u+VGaEcXYWi+dm81ZkSw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tU9UWnSsjA5pegp0TCTXKZ/TK6B6ggeXML3mGbklo+c4z2Er2Tp2H2hc9HU1Ech/3 R9onPMtiM1nT3m4EKntIQBjKRsSJbm0zCKCIfuIhqpmoFeVw9SnAu6XMOIHZteUzSh zVpKT0UsE+hx2+o526uGfek0wacX5fJcvr8+0I1By7mx2Mb/h+DZubco+GwHk3E0nG EB7eiIlQtRGZemXG0IhdxPpvphaBtFwqjXO/N6gujJNjwGazvfeyWEKQHiOT+yQtvG KHMorri5h1vOLj+hl572Xem3hoZdcreYTkf05FJMxOETrAqtwUzK7oluy4PdM7OdgT XTOoycLncw98w== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 0657040647; Sat, 6 Mar 2021 10:22:13 -0300 (-03) Date: Sat, 6 Mar 2021 10:22:13 -0300 From: Arnaldo Carvalho de Melo To: Martin =?utf-8?B?TGnFoWth?= Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf config: add annotate.demangle{,_kernel} Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, Feb 26, 2021 at 11:08:12AM +0100, Martin Liška escreveu: > On 2/26/21 11:03 AM, Martin Liška wrote: > > On 2/23/21 8:49 PM, Arnaldo Carvalho de Melo wrote: > > > Please consider making this configurable (if not already) via > > > ~/.perfconfig, 'perf config', sure in a followup patch. > > > > I'm doing that in the following patch. > > The patch contained a typo, fixed in the V2. Thanks, applied. And expanded that commit log a bit: Author: Martin Liska Date: Fri Feb 26 11:01:24 2021 +0100 perf config: Add annotate.demangle{,_kernel} Committer notes: This allows setting this in from the command line: $ perf config annotate.demangle $ perf config annotate.demangle=yes $ perf config annotate.demangle annotate.demangle=yes $ cat ~/.perfconfig # this file is auto-generated. [report] sort-order = srcline [annotate] demangle = yes $ $ $ perf config annotate.demangle_kernel $ perf config annotate.demangle_kernel=yes $ perf config annotate.demangle_kernel annotate.demangle_kernel=yes $ cat ~/.perfconfig # this file is auto-generated. [report] sort-order = srcline [annotate] demangle = yes demangle_kernel = yes $ Signed-off-by: Martin Liška Tested-by: Arnaldo Carvalho de Melo Link: https://lore.kernel.org/r/c96aabe7-791f-9503-295f-3147a9d19b60@suse.cz Signed-off-by: Arnaldo Carvalho de Melo - Arnaldo > Martin > > > > > Thanks, > > Martin > > From a29a6d3ae717f19774a430ccf9a63a452376f359 Mon Sep 17 00:00:00 2001 > From: Martin Liska > Date: Fri, 26 Feb 2021 11:01:24 +0100 > Subject: [PATCH] perf config: add annotate.demangle{,_kernel} > MIME-Version: 1.0 > Content-Type: text/plain; charset=UTF-8 > Content-Transfer-Encoding: 8bit > > Signed-off-by: Martin Liška > --- > tools/perf/Documentation/perf-config.txt | 6 ++++++ > tools/perf/util/annotate.c | 4 ++++ > 2 files changed, 10 insertions(+) > > diff --git a/tools/perf/Documentation/perf-config.txt b/tools/perf/Documentation/perf-config.txt > index 153bde14bbe0..154a1ced72b2 100644 > --- a/tools/perf/Documentation/perf-config.txt > +++ b/tools/perf/Documentation/perf-config.txt > @@ -393,6 +393,12 @@ annotate.*:: > > This option works with tui, stdio2 browsers. > > + annotate.demangle:: > + Demangle symbol names to human readable form. Default is 'true'. > + > + annotate.demangle_kernel:: > + Demangle kernel symbol names to human readable form. Default is 'true'. > + > hist.*:: > hist.percentage:: > This option control the way to calculate overhead of filtered entries - > diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c > index 80542012ec1b..e35d56608986 100644 > --- a/tools/perf/util/annotate.c > +++ b/tools/perf/util/annotate.c > @@ -3142,6 +3142,10 @@ static int annotation__config(const char *var, const char *value, void *data) > opt->use_offset = perf_config_bool("use_offset", value); > } else if (!strcmp(var, "annotate.disassembler_style")) { > opt->disassembler_style = value; > + } else if (!strcmp(var, "annotate.demangle")) { > + symbol_conf.demangle = perf_config_bool("demangle", value); > + } else if (!strcmp(var, "annotate.demangle_kernel")) { > + symbol_conf.demangle_kernel = perf_config_bool("demangle_kernel", value); > } else { > pr_debug("%s variable unknown, ignoring...", var); > } > -- > 2.30.1 > -- - Arnaldo