From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D57FC05027 for ; Fri, 3 Feb 2023 14:44:27 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4P7dhp0LVwz3f68 for ; Sat, 4 Feb 2023 01:44:26 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=sMu1n2cW; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=145.40.68.75; helo=ams.source.kernel.org; envelope-from=acme@kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=sMu1n2cW; dkim-atps=neutral Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4P7dgm1Q2kz2ynf for ; Sat, 4 Feb 2023 01:43:32 +1100 (AEDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id D861EB82AD3; Fri, 3 Feb 2023 14:43:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50AECC433EF; Fri, 3 Feb 2023 14:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675435406; bh=OK/0v0S2oRpvThJ+ETGusIsaKx+GkR617f/EkmDsJDg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sMu1n2cWnUK0wSXdleTQOxzAEKesZkvKvIeSXACETbSggy3BkxgSmITZbKfSZibTF 4CXlDS3xTV94Nl0u/9mn3RTFtBVi7iPSiU9g635a4nchfabmTfhu2HJ0k9oqMOk3as 8BQDrMWvG+AKAfq/gUiFIAhtIC4T3nwz0UGtLpk96rDxg+UT/P+aKV8f2sQvbrQq74 3/kFwFXgf55wQDpO4OfLgw85SuOf5o3F5E9pgcKpvRlnJkG6xrCKvfVgLrKf8K/Us6 78Lg1TxqgyGmtkE0XZ6z08oNOzp/ebes7jm3l2qiNsF96o+54on5neZPYPMmqTtm4c yNa2D86AXkjwQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id EC9CB405BE; Fri, 3 Feb 2023 11:43:23 -0300 (-03) Date: Fri, 3 Feb 2023 11:43:23 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Subject: Re: [PATCH v1] perf pmu: Fix aarch64 build Message-ID: References: <20230203014014.75720-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: X-Url: http://acmel.wordpress.com X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Kang Minchul , Sandipan Das , Peter Zijlstra , Perry Taylor , Stephane Eranian , linux-kernel@vger.kernel.org, James Clark , Kim Phillips , Will Deacon , Kan Liang , Rob Herring , Alexander Shishkin , Ingo Molnar , Xing Zhengjun , Mike Leach , John Garry , Kajol Jain , Namhyung Kim , Caleb Biggers , linux-arm-kernel@lists.infradead.org, Ravi Bangoria , Florian Fischer , Adrian Hunter , linux-perf-users@vger.kernel.org, Jiri Olsa , Leo Yan , linuxppc-dev@lists.ozlabs.org, Jing Zhang Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" Em Fri, Feb 03, 2023 at 11:36:30AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Feb 03, 2023 at 11:35:29AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Feb 03, 2023 at 11:17:38AM -0300, Arnaldo Carvalho de Melo escreveu: > > > Em Thu, Feb 02, 2023 at 05:41:22PM -0800, Ian Rogers escreveu: > > > > On Thu, Feb 2, 2023 at 5:40 PM Ian Rogers wrote: > > > > > > > > > > ARM64 overrides a weak function but a previous change had broken the > > > > > build. > > > > > > > > > > Fixes: 8cefeb8bd336 ("perf pmu-events: Introduce pmu_metrics_table") > > > > > > > > As 8cefeb8bd336 ("perf pmu-events: Introduce pmu_metrics_table") is > > > > only on tmp.perf/core then it may be best to just squash this fix into > > > > that. > > > > > > Yeah, that was my intention, I'll fold it there to keep bisection, > > > thanks for fixing it so fast, I'll double check on my rk3399 board and > > > on again on the cross-build container. > > > > Nope, that is not what I reported yesterday, trying to build it on the > > rk3399 board: > > Sorry, pulled the trigger too soon, this is _before_ applying your fix, > I should't multitask too much :-\ > > I'll double check now, Ok, now it is exploding at: pmu-events/pmu-events.c: In function ‘decompress’: pmu-events/pmu-events.c:3598:11: error: ‘struct pmu_event’ has no member named ‘metric_name’ 3598 | pe->metric_name = (*p == '\0' ? NULL : p); | ^~ pmu-events/pmu-events.c:3600:11: error: ‘struct pmu_event’ has no member named ‘metric_group’ 3600 | pe->metric_group = (*p == '\0' ? NULL : p); | ^~ pmu-events/pmu-events.c:3614:11: error: ‘struct pmu_event’ has no member named ‘metric_constraint’ 3614 | pe->metric_constraint = (*p == '\0' ? NULL : p); | ^~ pmu-events/pmu-events.c:3616:11: error: ‘struct pmu_event’ has no member named ‘metric_expr’ 3616 | pe->metric_expr = (*p == '\0' ? NULL : p); | ^~ pmu-events/pmu-events.c: At top level: pmu-events/pmu-events.c:3637:32: error: no previous prototype for ‘perf_pmu__find_table’ [-Werror=missing-prototypes] 3637 | const struct pmu_events_table *perf_pmu__find_table(struct perf_pmu *pmu) | ^~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[3]: *** [/home/acme/git/perf/tools/build/Makefile.build:98: /tmp/build/perf/pmu-events/pmu-events.o] Error 1 make[2]: *** [Makefile.perf:676: /tmp/build/perf/pmu-events/pmu-events-in.o] Error 2 make[2]: *** Waiting for unfinished jobs.... CC /tmp/build/perf/builtin-ftrace.o