Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp607941rwl; Wed, 29 Mar 2023 06:22:15 -0700 (PDT) X-Google-Smtp-Source: AKy350ZB4kmVhJHQ1uXRCqfGMETwGlheH8TrbTJAU1wE+1UPYdjHx3TWblyTORw02vb2m9EU9gQE X-Received: by 2002:a17:906:dffb:b0:92f:de0c:c914 with SMTP id lc27-20020a170906dffb00b0092fde0cc914mr21097586ejc.28.1680096134562; Wed, 29 Mar 2023 06:22:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680096134; cv=none; d=google.com; s=arc-20160816; b=zQy2QNJyOhx0GqNj0Kwei77M05oVfw7TrEBsv4E83wi50G6PNWiKUHa98VPTe8I0YW l6KbVK9aPgrhFy9gnRQjnafAXFd5MjgUyHJVStQphmLolGPOq4hIC+Kmo55qpE6Sh1al PPxLYhDKbC2eT6kHk0qXK2rB6Orcr2EDnLhWx3alrQuAycN5hDYAppV42e/QdiKAXgRV dsdx5UxW+HFJ4c/3HTOecM+y8aIqLyG7lIAk9SK6aDQFencthB0STMEaMtOYk438ma6B DURe09V2Z3E3gqV7hppASjXOfNqlFLRkEbRfIIm9HggBHicSWlomXRPT2DS8jgUfMqog zfQQ== 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=tdnxK5R71gGSMYT06PTo4fn2ghLghCEb5VnMU+Az/1w=; b=eMFuwYxlWk1bq09LOM8atTT9do7CESIBAKVV4WqGU1Bpvhpb0tHKqJKY2kK9f/oTbp /1ZfRzbq70n2meyz4En+vX3zNKp44oi4uzQUQWI/qya4EcIjhH8eyDCUHPxZ0lZaSbM0 QLbbAffAsVvKzhZOWeu5DzheNGHUrZ3zLQQOnJ3wogNxa6FqV9MRoIwIuXK5GxGxgRzD wJC1DvTAEMDH4ZXcWSTH8ePkETWsGD9j6uVnX3DDT11nqUfvjvqKyvVgxAI5ztEjJfpe CnAxb30CRNPqqA682ozLHQ+MPdZKgIInOsiIbPKjuIdH5XMGqLTd2YAZ4tcXvcjT5sE1 08UA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IPx1XTCJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae13-20020a17090725cd00b0093d9ce56141si16255131ejc.287.2023.03.29.06.21.49; Wed, 29 Mar 2023 06:22:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IPx1XTCJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230358AbjC2NUt (ORCPT + 99 others); Wed, 29 Mar 2023 09:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230237AbjC2NU0 (ORCPT ); Wed, 29 Mar 2023 09:20:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE1935598; Wed, 29 Mar 2023 06:20:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4CE7861D1E; Wed, 29 Mar 2023 13:20:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C577C433D2; Wed, 29 Mar 2023 13:20:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680096018; bh=Vp7Tk9FZto6rCmf812cmUkq4T6NxSn9CdcRG6uBna6Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IPx1XTCJhoNO96hDi+jLdysiRWDplquD4sU4MIQ8fKqJiKaYpNwXU2HwTFzzubRW+ ZrrFDHqCBLPAem8lJd7TNN3wbHYNJsbrRHw3tE4/C4lbXLaWKjYlvN+uIsa46jEG4Y Pw7wEr4MJE7sXLiN0SBA1A86QzWC1JHBtSOa93ZHY7lva2afGbwDMTWgmUWsyROQrx 9+d299HDPbTpo+JQRpr6J97CPXN4bIuzYOS8kxdv9NaTxTtaRNyLDJZ8yBPLzdI+Xh ih86RP5992Z5ewvhn1eotK+nwJM0YJbcYdaqPLzkWwv37IEHzIx4ZKi0WyLoXVo/oX UZt8EdHH4oslg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 5F5A84052D; Wed, 29 Mar 2023 10:20:16 -0300 (-03) Date: Wed, 29 Mar 2023 10:20:16 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Nathan Chancellor , Nick Desaulniers , Tom Rix , James Clark , Andi Kleen , Kan Liang , German Gomez , Sandipan Das , Andres Freund , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH v1 0/6] config file/command line for objdump & addr2line Message-ID: References: <20230328235543.1082207-1-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230328235543.1082207-1-irogers@google.com> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Tue, Mar 28, 2023 at 04:55:37PM -0700, Ian Rogers escreveu: > Allow objdump to be set as a perf config file variable. As previously > objdump was set via the command line, the string was owned by > argv. Now the string must be strdup-ed, so the corresponding logic > needs changing with an annotation_options__init/exit. ui/gtk/annotate.c: In function ‘symbol__gtk_annotate’: ui/gtk/annotate.c:177:44: error: ‘annotation__default_options’ undeclared (first use in this function); did you mean ‘annotation_options’? 177 | err = symbol__annotate(ms, evsel, &annotation__default_options, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | annotation_options ui/gtk/annotate.c:177:44: note: each undeclared identifier is reported only once for each function it appears in make[6]: *** [/var/home/acme/git/perf-tools-next/tools/build/Makefile.build:97: ui/gtk/annotate.o] Error 1 make[6]: *** Waiting for unfinished jobs.... I'll fix this later... - Arnaldo > Add command line and config file options for addr2line, set in > symbol_conf for convenience. This doesn't allow the setting of > llvm-addr2line due to a bug, but could in the future. > > Ian Rogers (6): > perf annotate: Delete session for debug builds > perf report: Additional config warnings > perf annotate: Add init/exit to annotation_options remove default > perf annotate: Own objdump_path and disassembler_style strings > perf annotate: Allow objdump to be set in perfconfig > perf symbol: Add command line support for addr2line path > > tools/perf/Documentation/perf-annotate.txt | 3 ++ > tools/perf/Documentation/perf-config.txt | 8 +++- > tools/perf/Documentation/perf-report.txt | 3 ++ > tools/perf/Documentation/perf-top.txt | 6 +++ > tools/perf/arch/common.c | 4 +- > tools/perf/arch/common.h | 2 +- > tools/perf/builtin-annotate.c | 42 +++++++++++++------- > tools/perf/builtin-report.c | 35 ++++++++++++++--- > tools/perf/builtin-top.c | 27 +++++++++++-- > tools/perf/util/annotate.c | 45 +++++++++++++++++----- > tools/perf/util/annotate.h | 9 +++-- > tools/perf/util/srcline.c | 26 ++++++++----- > tools/perf/util/symbol_conf.h | 1 + > 13 files changed, 163 insertions(+), 48 deletions(-) > > -- > 2.40.0.348.gf938b09366-goog > -- - Arnaldo