Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1092254pxb; Fri, 26 Feb 2021 02:15:59 -0800 (PST) X-Received: by 2002:a17:906:4146:: with SMTP id l6mr2488519ejk.275.1614334319550; Fri, 26 Feb 2021 02:11:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2J3rJpCeLk2o54PYax3fj32EJSMPkXa/NDuiPxOefKUlrztn++aZ5+gtFnrLnFae3fYUf X-Received: by 2002:a17:906:4146:: with SMTP id l6mr2488435ejk.275.1614334318842; Fri, 26 Feb 2021 02:11:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614334318; cv=none; d=google.com; s=arc-20160816; b=ezUfgdRELYksowXdCeIre+B8KrYl2iURxlSTWq/kxx86+WPCbeOKj2jWB81Sc3bAuY b+5UPkgWKuYhLB5KRbzsICKlMHlN547EtOejlB5Sdq4WNxoKCADGqSwAwsuWMJALCtFX lcNngy1i8LDGnbmUmnb3HhakuYBp5uhqxMZvc4YyR+qynMmoP7O4M5OlOnbbtHJfOTsk T+3Kxx4eDpznAHYJjb7l4aX6IiN78j+5JNGaVL/s3yennTYe2l9X9W+Sf/VfGaTGwRMC kVOmCJ/OAfbNS9WUr/JdCXCEyOZbjg2iTS3Sx4aJYjmUtwGZCsJbI05yo5lPTidmvzPs BZnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:in-reply-to:mime-version :user-agent:date:message-id:references:cc:to:from:subject; bh=NEhiFqmSMNRogk4vbJJfAhr+FrfyOuzy5iHlnghs7bk=; b=IX3txDW4kXKPc8y3L6xx7j/ge4ywLHGF2jrmhK0QValtVGKlIZSEwSyzDC5qzPBjDx mot+ucITUq5dtoFzzjXeBgkHr/TQstjy4737bJm0c7fB0inW0jWPEznRkCUmkrtTXhue 7rlUKwlKBf5T8SJtzwIXGXG28hv7xk5rz/NjqB0t+Fl22hI0vxRxUpMMzSsZRhQN5phR wxsJv4DDPIduPVEEBkO3zc9RkxhZ4dsDQyAQsgkdRxwyRteg0SwmGC9DMBa96ck/bGuw ReI9uOkOQJOu9NWV1NijxnhGtGtOll4+VjuvlPRMIGFOm2JJoAxq8Kf86mhhLEc73GI/ eV9w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si5010425edn.536.2021.02.26.02.11.36; Fri, 26 Feb 2021 02:11:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230437AbhBZKLA (ORCPT + 99 others); Fri, 26 Feb 2021 05:11:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:36362 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbhBZKIy (ORCPT ); Fri, 26 Feb 2021 05:08:54 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 95F28ACF6; Fri, 26 Feb 2021 10:08:12 +0000 (UTC) Subject: Re: [PATCH] perf config: add annotate.demangle{,_kernel} From: =?UTF-8?Q?Martin_Li=c5=a1ka?= To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: Message-ID: Date: Fri, 26 Feb 2021 11:08:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------7ED3ADB86AC31C7AA548F629" Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------7ED3ADB86AC31C7AA548F629 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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. Martin > > Thanks, > Martin --------------7ED3ADB86AC31C7AA548F629 Content-Type: text/x-patch; charset=UTF-8; name="0001-perf-config-add-annotate.demangle-_kernel.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-perf-config-add-annotate.demangle-_kernel.patch" 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 --------------7ED3ADB86AC31C7AA548F629--