Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1915245rdb; Thu, 7 Dec 2023 12:17:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IG79gUV3+yORdBZiDzpm9/RVqnwP6JWyBgBm24SulbPmD5giU4JYT8XVhOrt7w65XG9GN2N X-Received: by 2002:a17:90b:1289:b0:286:6cc1:2cb9 with SMTP id fw9-20020a17090b128900b002866cc12cb9mr2844528pjb.67.1701980245482; Thu, 07 Dec 2023 12:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701980245; cv=none; d=google.com; s=arc-20160816; b=eaCFnk0SK/KWW8t4gOTLkVB0Mb9DSqyddBXbFqBCuRZDt1Gut8v+Df1LHvB3VWSyG1 0I4SNfN+2whB+8L3tW2Wzby4Ecu/Ajkkyv7b3SjAziC0sjhUS8lyzu6KePh53H0+R9df XlTeydXfh2pIUgavgZ3LaxBocnyvisKSe5J9ySPxIY/GEj06uJWgcf8iad80xNVQ3jxJ PWx4XEJro8jYJBK2CyJBRqupIKvfFv2KqPjKxLtu0hu/uwq/reNMgKbLEGqdG/RnfiHm theJg13m3/A33v3O12u5fZc+0Z5O/q1iwle9+UO8EQTz3XayFWUVPzyMpJ8GDQn0n6O9 r0lQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZHwbaObOWJs/K/ujK+8tiF+8TRBk8fnfsWWqII0I5uU=; fh=ATmfKs0sIZhJDElMvHKl6znBn0xqTXk0lYgtDjKC1GM=; b=LJSYlOGIEBa+aMdxKwxamj9lU/MpN/Zm1EdTO0gk5rGWyBzLNfMQIDKeXLlSttTezF Y+B/epsiFg+OylbattkdWn6dvwDwoDMfGf4Ja7fVvTXwAWkMjSBOnx5WZj/pqzzf1cm8 9KVyo6P4wDLd0qiBLYjpvzsJgi36r3gUvXS+m7+mPsE8UMlgHEzG/KRwjP68tkoTBt+2 6wpg3lmsYRKkcOwNj7lJhENhyntg/yUt8IRXWbBOX001U5OjOMA2a1Xvdz8J70HiU/pA Y9NyAy5dSAHSziDaL4DZbm5qhDY8YL1ZA7V3MDXsFj7W/6XQ2Xch2lsTY019BbJB7JRb +MUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jvc78Xf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x30-20020a17090a6c2100b0028876b8b056si359798pjj.118.2023.12.07.12.17.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 12:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jvc78Xf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 503718040924; Thu, 7 Dec 2023 12:17:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235208AbjLGURK (ORCPT + 99 others); Thu, 7 Dec 2023 15:17:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233115AbjLGURJ (ORCPT ); Thu, 7 Dec 2023 15:17:09 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C2C6171D for ; Thu, 7 Dec 2023 12:17:12 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61A60C433C7; Thu, 7 Dec 2023 20:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701980231; bh=YVfqxd0zx/fv0cFbJkxcuU4zrXFaSan10Z7fzxNA38Q=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jvc78Xf4QdFvfgvGmqOQP1WBBPmyUDKCGIutfVkfPOpLp9M9xPxNVsOjdcXRYb5s1 zkehq1fXf6jPly/Gs6Nlc5DeLtxYztycXGAVC0JU7P51GG0TeqIbzGTe0XQ6uD6FYC 150PWDzb9/aNTXb1ih6q2DpJvsAFXRXmfmwA1AhN8Qo4DsLbz9u94RRdC8vTB8Vpqn jOK8zuxTazQTNKTS35X7y9NtkVghUceB2r/dPx8hcKmjAudxvZMcNERudJgN5+SWch xu7dY04oygbps/WyAtLcQpcq0pJvpeprKJcAxBM0fL2wHU8tpLql1EUmE13LoFSauH H6mQRg3KWVYig== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 43B24403EF; Thu, 7 Dec 2023 17:17:08 -0300 (-03) Date: Thu, 7 Dec 2023 17:17:08 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Subject: Re: [PATCH 4/8] perf annotate: Use global annotation_options Message-ID: References: <20231128175441.721579-1-namhyung@kernel.org> <20231128175441.721579-5-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231128175441.721579-5-namhyung@kernel.org> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Thu, 07 Dec 2023 12:17:23 -0800 (PST) Em Tue, Nov 28, 2023 at 09:54:37AM -0800, Namhyung Kim escreveu: > Now it can directly use the global options and no need to pass it as an > argument. At this point the build breaks when using GTK2=1 on the make command line, as done in 'make -C tools/perf build-test', so I had to add the following patch on top of this 4/8 patch: diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index a53a4e711899f20d..9c1e2b2b5bc0b730 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c @@ -365,7 +365,6 @@ static void hists__find_annotations(struct hists *hists, int ret; int (*annotate)(struct hist_entry *he, struct evsel *evsel, - struct annotation_options *options, struct hist_browser_timer *hbt); annotate = dlsym(perf_gtk_handle, @@ -375,7 +374,7 @@ static void hists__find_annotations(struct hists *hists, return; } - ret = annotate(he, evsel, &annotate_opts, NULL); + ret = annotate(he, evsel, NULL); if (!ret || !ann->skip_missing) return; diff --git a/tools/perf/ui/gtk/annotate.c b/tools/perf/ui/gtk/annotate.c index 2effac77ca8c6742..394861245fd3e48f 100644 --- a/tools/perf/ui/gtk/annotate.c +++ b/tools/perf/ui/gtk/annotate.c @@ -162,7 +162,6 @@ static int perf_gtk__annotate_symbol(GtkWidget *window, struct map_symbol *ms, } static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel, - struct annotation_options *options, struct hist_browser_timer *hbt) { struct dso *dso = map__dso(ms->map); @@ -176,7 +175,7 @@ static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel, if (dso->annotate_warned) return -1; - err = symbol__annotate(ms, evsel, options, NULL); + err = symbol__annotate(ms, evsel, NULL); if (err) { char msg[BUFSIZ]; dso->annotate_warned = true; @@ -244,10 +243,9 @@ static int symbol__gtk_annotate(struct map_symbol *ms, struct evsel *evsel, int hist_entry__gtk_annotate(struct hist_entry *he, struct evsel *evsel, - struct annotation_options *options, struct hist_browser_timer *hbt) { - return symbol__gtk_annotate(&he->ms, evsel, options, hbt); + return symbol__gtk_annotate(&he->ms, evsel, hbt); } void perf_gtk__show_annotations(void) diff --git a/tools/perf/ui/gtk/gtk.h b/tools/perf/ui/gtk/gtk.h index 1e84dceb52671385..a2b497f03fd6e478 100644 --- a/tools/perf/ui/gtk/gtk.h +++ b/tools/perf/ui/gtk/gtk.h @@ -56,13 +56,11 @@ struct evsel; struct evlist; struct hist_entry; struct hist_browser_timer; -struct annotation_options; int evlist__gtk_browse_hists(struct evlist *evlist, const char *help, struct hist_browser_timer *hbt, float min_pcnt); int hist_entry__gtk_annotate(struct hist_entry *he, struct evsel *evsel, - struct annotation_options *options, struct hist_browser_timer *hbt); void perf_gtk__show_annotations(void);