Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1923664rdb; Thu, 7 Dec 2023 12:35:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrsxf2w0iCyH0GdOQ7GM2LMrFqJaKw4t98vU1N7Gpw60IGz0pL7Rx5ycCtSKlzoEPjSM5R X-Received: by 2002:a17:90a:e7cd:b0:285:fc67:6196 with SMTP id kb13-20020a17090ae7cd00b00285fc676196mr3269375pjb.1.1701981315324; Thu, 07 Dec 2023 12:35:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701981315; cv=none; d=google.com; s=arc-20160816; b=gH0pb9U5hmbfH51HxZ1JSVJA6RM6OUMi0d1UfpPpXAZw8YFBoB7AZ4eBqAQ0UmN5mQ nbBtBhVKBVkEmC2lRk3BututcVKBN9p/a7yG8J724HamIbZKMoKDCMczn54/BALsQ/OZ kfhsdyiqnesUQzpQ7wPSZU12V7V58VMwSciCkigrjO07MRAEccXdEmfcHgUYrBDnwNdy aO3gLrHBJqt1HAvefUzmiK7wevqunaNYmc/fvK9/O3xUIS5Il2DmkVs+FOYi+SPL767v KXz1bCownbanZgCw4GFBBVPULUU1r+MCBzfKhQQ8/nRThIBjqB0VqukgsRKkPVFRnrT1 V7Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=mzgt78sYwF6QA82ocTz9NhgvYa7qniKL53TvmBqgnms=; fh=CeF/sjQ1/PrJQCA4zRbl8D8Nn/XbFr9/r1euVnuk+qw=; b=RcSdPJDzQqVJ2HeUrB1oXvmvxIMOVhIVbilNClm1jZKh4GBJN8X7gpa/XLqokw6yy6 9stjfE2vjsfFECQfyGp9LWjGZ3Hv9y0S9Wes4y0/k7NRfJb7Gpx6kTmFslz2ShFGAAIB 4DtclL2miEmr3p1AFBM2lSTXezDaBKSIFJa1BF4sSu04hp0gNfDDlpHYX84IQRJKQRJ6 sWRZJPMgBk19R2c3Ysd2IdcUf4BA1BPguUK6+SAOahkU0oD04rPDQmOufDR5um+UBfS+ 1ajiqoRQRGCdx1CPFKF+ioun7Hk8pj6WZP3UBOr/bR98V35q4ZaaAEm6ikkyPo7deti0 J+cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q7-20020a17090a68c700b002886a242d11si371765pjj.130.2023.12.07.12.35.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 12:35:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id BFDDA802A723; Thu, 7 Dec 2023 12:35:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235262AbjLGUfC convert rfc822-to-8bit (ORCPT + 99 others); Thu, 7 Dec 2023 15:35:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235250AbjLGUeg (ORCPT ); Thu, 7 Dec 2023 15:34:36 -0500 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 076E11BDA; Thu, 7 Dec 2023 12:34:34 -0800 (PST) Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-5bdb0be3591so1104523a12.2; Thu, 07 Dec 2023 12:34:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701981273; x=1702586073; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6eK7GmkC+MOlgnAqTreiUYrmfw87lLVr1vlz5i4mdHs=; b=TeP2gVpD4syeKBQ21b4/nUP3tT/OhylW2otHS7NNKwOIZeDrBBFixQXAsUwjy2zZlS tazf/rDlUi96RcjnUNnfaC1LsTPA/0AD+ttA/Jdyd5Auf7u11HL385My4hQvMowNh1Ns ItHLYLP51UZ/qeTD9I77djlZtBbogPpvFX1Wf/QqTUSTWdbzPUBnkyI6une3/CkMf+0K SRFXKtOuUnY9urGpQTD5/eQYfNK1NasRs5eEiYS3xYkJh70CUUd03UUDmfvXjq71dOa2 xvpth4dQK9+FJbGHqtGHfcxoMZ302U94s1t5SleytAGNbdjJGQzaEqjFIIVek3sAe446 Wz8w== X-Gm-Message-State: AOJu0YwDUWbKRmxjxpQvYw0k6oxffhsBBvhXsi/tAtxZayvvCKGb6uZL k7SEDfI/rBNHIa+ko4Iqcu6kRrV5gRvkhEEBpHg= X-Received: by 2002:a05:6a20:4ba9:b0:18f:97c:8a50 with SMTP id fu41-20020a056a204ba900b0018f097c8a50mr2705672pzb.123.1701981273120; Thu, 07 Dec 2023 12:34:33 -0800 (PST) MIME-Version: 1.0 References: <20231128175441.721579-1-namhyung@kernel.org> <20231128175441.721579-5-namhyung@kernel.org> In-Reply-To: From: Namhyung Kim Date: Thu, 7 Dec 2023 12:34:21 -0800 Message-ID: Subject: Re: [PATCH 4/8] perf annotate: Use global annotation_options To: Arnaldo Carvalho de Melo Cc: Jiri Olsa , Ian Rogers , Adrian Hunter , Peter Zijlstra , Ingo Molnar , LKML , linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 12:35:14 -0800 (PST) On Thu, Dec 7, 2023 at 12:17 PM Arnaldo Carvalho de Melo wrote: > > 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: Oops, I forgot to test with it. Thanks for fixing this! Thanks, Namhyung > > > 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); >