Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4477569pxf; Tue, 30 Mar 2021 08:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNY/nsyPkiMBuJ96tkv6wMSs4H/YlHNRprx5QyMHwwWeMKEG0ECJ++vZRJ8UpR9Jz/mtVK X-Received: by 2002:aa7:d4d2:: with SMTP id t18mr34568247edr.342.1617119096197; Tue, 30 Mar 2021 08:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617119096; cv=none; d=google.com; s=arc-20160816; b=lAH7Ox694o55WyD1YU+t9f4sSVtX9b1T+ZJTEa99U/2pvLHvguduagZzJ0fhqaaXzt 1eE9IqMax/6DxXHJIUDbgVh/I+hdudSV34zeDZctE99Y5XruHiLBMX5RJuWP7eGWYd9O UfRTmPT8D2aTaQAArDtRbN9G+fMwPv+Pwdu5aCEPNWk7SYy8DuHdHSfHEBARlKyDd9pF ETPnPsEznbu40YQmf/li7frGIzkmao3KQXHlsJPc8BhrrHU3WA2Q2xbNEDTNHBAvEhoQ hZp7ADJ3xCzBhFnk1REyObtmiCIakpxyXUVtplJ/kcwDS/VEnfiI1bE8NfOV27SxyKkJ pQSw== 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=tuS/1LFFljmoIoBk86qOcof3Yrog4ghfXpPbGuasYEQ=; b=MwoBtfjtjOdiguDt8cDQn3LOF/p8aP0G1p9DW19+/Lz1IEcSe6hVm0dHuHRpnfckjT 2gMeLqyeIB8sH9dVW8C4CEwvU5R+/6cmyEhER27L7WHzUeNh6JefB8P6Rr/4GAzM3WHd tsUI8Eq72VtBe2pT+7UBVCe4+9MEXnWrVyB+fLVQhbKliiJMmu+ROSdtQvCHE9AzOVtM /4/56wZ3QT4+Vo0YW54fb0objTKTk5OFzYzNyAcq8Pc7eB1Bg3cWvdDF+iz7V+2zpnHT GioH0nLVUmmqEZLDM/pNrJjgM7L88sOXdsRZdEFdaYY3EZ6wZTulrirhc9Gm55DEmMgN YgcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IU1POTgv; 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 dg23si15129725edb.519.2021.03.30.08.44.33; Tue, 30 Mar 2021 08:44:56 -0700 (PDT) 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=IU1POTgv; 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 S232298AbhC3PnC (ORCPT + 99 others); Tue, 30 Mar 2021 11:43:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:40738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231650AbhC3Pmr (ORCPT ); Tue, 30 Mar 2021 11:42:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2FD02619C7; Tue, 30 Mar 2021 15:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617118967; bh=14UiL5GZC31SE+EOYu3chUF7P/wJNPq78udsHoMIXcM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IU1POTgvXcETm/RFMiUXuYXp8u5L+mfgZDlJ+kA173cIPhe8Z8xoZ35d445es9alp YguaHWwQAKxjoCkH6Av4l7CJjvK9dnbnpcyFi9woBO1++H++WEZ4eK0p1UWW9uHkiz yS2/ToPSwn3V7wd3dMLvDi7YMa/lMlm9Mh3lLHHTn+JMDPU4LEmF8n6GAx8iTnNhWi U1APK8NBUkI1euaE1bOGitBVQMY1CiUtL2Vm9FgSX8ZxrlRZVJdWXjbUKmc81kUdAi xHuikVqQIk4v/8+87+wJNo/Fsx1gRYJ2cINmi/8CZgRNzboMEM7apATs71pGk0mTCm dv8PuyTyX3ycQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id F058A40647; Tue, 30 Mar 2021 12:42:44 -0300 (-03) Date: Tue, 30 Mar 2021 12:42:44 -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 annotate: add --demangle and --demangle-kernel Message-ID: References: <71d26f15-f0e8-adca-1e7c-46effcba913a@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <71d26f15-f0e8-adca-1e7c-46effcba913a@suse.cz> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 30, 2021 at 09:41:33AM +0200, Martin Liška escreveu: > PING^2 > > On 3/7/21 8:23 PM, Martin Liška wrote: > > Hello. > > > > May I please remind this patch. Apparently, you applied the perf-config > > counterpart of the patch as 804fd30c6bd9aec7859a0503581312834fb197f1 > > (in tmp.perf/core branch), but we miss setting the same via options. > > > > Thank you, > > Martin > > > > On 2/26/21 11:01 AM, Martin Liška wrote: > > > On 2/23/21 8:49 PM, Arnaldo Carvalho de Melo wrote: > > > > Em Mon, Feb 22, 2021 at 09:29:22AM +0100, Martin Liška escreveu: > > > > > Perf annotate supports --symbol but it's impossible to filter > > > > > a C++ symbol. With --no-demangle one can filter easily by > > > > > mangled function name. > > > > > > > > > > Signed-off-by: Martin Liška > > > > > --- > > > > >   tools/perf/Documentation/perf-annotate.txt | 7 +++++++ > > > > >   tools/perf/builtin-annotate.c              | 4 ++++ > > > > >   2 files changed, 11 insertions(+) > > > > > > > > > > diff --git a/tools/perf/Documentation/perf-annotate.txt b/tools/perf/Documentation/perf-annotate.txt > > > > > index 1b5042f134a8..80c1be5d566c 100644 > > > > > --- a/tools/perf/Documentation/perf-annotate.txt > > > > > +++ b/tools/perf/Documentation/perf-annotate.txt > > > > > @@ -124,6 +124,13 @@ OPTIONS > > > > >   --group:: > > > > >       Show event group information together > > > > > +--demangle:: > > > > > +    Demangle symbol names to human readable form. It's enabled by default, > > > > > +    disable with --no-demangle. > > > > > + > > > > > +--demangle-kernel:: > > > > > +    Demangle kernel symbol names to human readable form (for C++ kernels). > > > > > + > > > > >   --percent-type:: > > > > >       Set annotation percent type from following choices: > > > > >         global-period, local-period, global-hits, local-hits > > > > > diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c > > > > > index a23ba6bb99b6..ef70a17b9b5b 100644 > > > > > --- a/tools/perf/builtin-annotate.c > > > > > +++ b/tools/perf/builtin-annotate.c > > > > > @@ -538,6 +538,10 @@ int cmd_annotate(int argc, const char **argv) > > > > >               "Strip first N entries of source file path name in programs (with --prefix)"), > > > > >       OPT_STRING(0, "objdump", &annotate.opts.objdump_path, "path", > > > > >              "objdump binary to use for disassembly and annotations"), > > > > > +    OPT_BOOLEAN(0, "demangle", &symbol_conf.demangle, > > > > > +            "Disable symbol demangling"), > > > > > > > > Nope, this _enables_ demangling, i.e.: > > > > > > > >     perf annotate --demangle > > > > > > Oh, yeah, you are right. > > > > > > > > > > > Asks for symbol demangling, while: > > > > > > > >     perf annotate --no-demangle > > > > > > > > As you correctly wrote in your commit message and on the > > > > --demangle-kernel case, enables demangling. > > > > > > Fixed that in V2. Trying to find V2 - Arnaldo