Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1091075pxb; Fri, 26 Feb 2021 02:13:44 -0800 (PST) X-Received: by 2002:a17:906:7d87:: with SMTP id v7mr2512434ejo.214.1614334183523; Fri, 26 Feb 2021 02:09:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRNX1M8b+mz1QoIFsapHdwBvi4mma0pn2U3a6tVaJmpGt7Cs4WB96kk2axtH68HOn2LQwZ X-Received: by 2002:a17:906:7d87:: with SMTP id v7mr2512338ejo.214.1614334182859; Fri, 26 Feb 2021 02:09:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614334182; cv=none; d=google.com; s=arc-20160816; b=z0qslb529FW7lcWvGqXKgn9cKXrCfk/GXUZSAEvdOEoGz2m9oi8TDW0cpu82HpdC91 yK3SC+gwaKwIyNwrOmkYaGWJvIi+JGaPFK7gTjAzhgsAYqnat3XyeXRlP6dWlO529wod 4a+RBAzxj8xbte+1XB/U3OrwvhA3OYvlLeLLABoLxXzWLi6LRFk51lP5val+NhObKvlh HdlJB8K5LM3y90Czirw6cK8wJNRmrj2lXjrRcowqYWo2rY9sYgKc3rohva6+WsBncq+A yxCviQunXMJBMsM9qKU2f5OAZOiLSEau6Z0m4IOhFeYl9isEZ6AIqBdSusf7CJsJPH8Q qOMg== 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:from:references:cc:to:subject; bh=mSW0jpH/VISuaJwRQ1b/pfr692iw82EQ0thPtujhlrU=; b=Lg9BdnL+nULTm10eQn1J+U52/ctvMuaotji2JLfTskhnatktGf/AfLRfN/RlEirjbB nl8PES66QrVP+IQ1wql8Wiy3FQ9TWo5dIf+orp7WGxDMqiwqfbWRb3LzhcvpO9nh3LVh fqyOWOaiyIHJyYarEHOPUDzlWmgrJ2DFnqEwokHchJG0wZoyjOPy9YSSSz5ZbbjNcROo 2xuI0zY2NikSrqhriyF0uuIAsD+VsOPmmLv9husvOBY8891id4Q0hUQqZUFcfCgtohyZ VbRaK7EKzTblJBrEMfQ27yQ7QWOdkzhAdEvBRX5P1IcLSVXRdEjIWUVioM8OC1F62A6J 87QQ== 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 bx24si5460811ejb.98.2021.02.26.02.09.20; Fri, 26 Feb 2021 02:09:42 -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 S231145AbhBZKFx (ORCPT + 99 others); Fri, 26 Feb 2021 05:05:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:60330 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230492AbhBZKD5 (ORCPT ); Fri, 26 Feb 2021 05:03:57 -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 4C4A8AF33; Fri, 26 Feb 2021 10:03:15 +0000 (UTC) Subject: [PATCH] perf config: add annotate.demangle{,_kernel} To: Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Message-ID: Date: Fri, 26 Feb 2021 11:03:14 +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="------------48B04AB51E95A819F275710C" 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. --------------48B04AB51E95A819F275710C Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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. Thanks, Martin --------------48B04AB51E95A819F275710C 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 797fcd73a3ecdabdf40ae054c1d4c2530fcf8203 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..6e9db717c3d8 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 = perf_config_bool("demangle_kernel", value); } else { pr_debug("%s variable unknown, ignoring...", var); } -- 2.30.1 --------------48B04AB51E95A819F275710C--