Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6304964rwb; Tue, 9 Aug 2022 12:49:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WvnwjdPTorabb666xXwS5iW8vieW7I7IL/BbWntxxqht3hvOio9QwKb+iGQ4JmBDqGlTf X-Received: by 2002:a63:e258:0:b0:41a:d92b:64f9 with SMTP id y24-20020a63e258000000b0041ad92b64f9mr20006639pgj.148.1660074541672; Tue, 09 Aug 2022 12:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660074541; cv=none; d=google.com; s=arc-20160816; b=YUuBR1uUj9MLJ5QjuLeYwV0dmpFqt9oWAo6lkHFWZjSwA2vR3YGnebya4ijS/rFiHH 9YUKORDH5y0FCK46KPDCL8nracZYvkB95A66N/1zHqtc7GZGwOAiTzOqikvzGA+57u/E xbuy4QC+MmZSctX/bDDgveNEN/1x/IOfTGKL9oX3fdfvhlmsCPbyPOhgQ+gz8uoYixLm rLySMDBC1/yi3NInooWcWBoEl884oiZvfx+KDC3UGp3ZiYIg02RhT/27Dc8xPtJWMg4/ oytydhmuoqD8u+Gxw11/U46lURW5MGRNclTrHVo0oqEvKdIY4rSBYcknDkIoYpr0X6qe 95pQ== 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=SAzNqbGBp/ayxFeZzUn7VJueuhjnpUCWBhASwk9UP1M=; b=Zik4fDN1r4MlHsLNafN5RUDzPaorhNBqahc3avMAA3ygT861szblzwwze3HjYkaDYH /O+jrG075avyUOU/8jbeLsSS/gbVSqGb3Smb9VVw9FLve7NxJb4UtlBD1W3mS6tO65jN XC0UWSy6JBp+Zz/vB5iRSZSovoR4xsJy8ZvtNN1QOIPTZ1WGj4YDPdNX1po4juRvr98s a5c6YzoB621G0aa3QdUr3tG39sjoTFxhTh5JY/o1C780SCCwrIRBgpYr0vYP40FP4se1 z50L0erAovBEUBKaFbRBgO57rb1QTdFfIB/lRmzwuIJLUX/rp28rl+Cw62hlHtzbRcyz W7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lhzxPVf6; 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 s20-20020a632c14000000b0041c359673a9si3012636pgs.728.2022.08.09.12.48.48; Tue, 09 Aug 2022 12:49:01 -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=lhzxPVf6; 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 S241356AbiHITjA (ORCPT + 99 others); Tue, 9 Aug 2022 15:39:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245229AbiHITij (ORCPT ); Tue, 9 Aug 2022 15:38:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71E825E93; Tue, 9 Aug 2022 12:38:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id 6D6FBB81722; Tue, 9 Aug 2022 19:38:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00F60C433C1; Tue, 9 Aug 2022 19:38:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660073913; bh=pHC8fIPoGxLBJ9/lJmkXqCp6AtiWaVbDFdc2Xj+wo2s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lhzxPVf6KoXeLEeZ5kmhU456Qq7Orbo9wqIWq0MYZLG5YB3mgnrmItcxNzj68YIEy HICoW1b9oyolyyqF+pxeQliODs4qgnu0kHgzv4mhMykE3EyVpSfAbJnSbSsOStPLxe YtLMXcOdxeyK6zrBsvYPHiVN1Y3oudSSP7vRcl6kD3A/gD9hpIn07vLIXcCr6QYb1s zl7lussWseBvtGtlavmkl/nVrr5i1xQyv3qLuYxlTC372wg1WdiBAHJ0yXnWebOEOd yUD5AkMmAL68RMIyo+M+21SxMz2gB5eHWCBGDNVhPFaBcRSqIrM+X4rIVWsY2143Hb cFJIOylJoldiQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2F86F4035A; Tue, 9 Aug 2022 16:38:30 -0300 (-03) Date: Tue, 9 Aug 2022 16:38:30 -0300 From: Arnaldo Carvalho de Melo To: John Garry Cc: Ian Rogers , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andi Kleen , Zhengjun Xing , Ravi Bangoria , Kan Liang , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v4 03/17] perf jevents: Add JEVENTS_ARCH make option Message-ID: References: <20220804221816.1802790-1-irogers@google.com> <20220804221816.1802790-4-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fri, Aug 05, 2022 at 10:55:50AM +0100, John Garry escreveu: > On 04/08/2022 23:18, Ian Rogers wrote: > > Allow the architecture built into pmu-events.c to be set on the make > > command line with JEVENTS_ARCH. > > > > Signed-off-by: Ian Rogers > > Seems reasonable, so: > > Reviewed-by: John Garry Thanks, applied. - Arnaldo > I assume that if we run on the wrong arch (than we build for) then it has > same effect as if pmu-events is not supported. > > > --- > > tools/perf/pmu-events/Build | 6 +++++- > > 1 file changed, 5 insertions(+), 1 deletion(-) > > > > diff --git a/tools/perf/pmu-events/Build b/tools/perf/pmu-events/Build > > index 28a9d01b08af..04ef95174660 100644 > > --- a/tools/perf/pmu-events/Build > > +++ b/tools/perf/pmu-events/Build > > @@ -7,6 +7,10 @@ JSON_TEST = $(shell [ -d $(JDIR_TEST) ] && \ > > find $(JDIR_TEST) -name '*.json') > > JEVENTS_PY = pmu-events/jevents.py > > +ifeq ($(JEVENTS_ARCH),) > > +JEVENTS_ARCH=$(SRCARCH) > > +endif > > + > > # > > # Locate/process JSON files in pmu-events/arch/ > > # directory and create tables in pmu-events.c. > > @@ -19,5 +23,5 @@ $(OUTPUT)pmu-events/pmu-events.c: pmu-events/empty-pmu-events.c > > else > > $(OUTPUT)pmu-events/pmu-events.c: $(JSON) $(JSON_TEST) $(JEVENTS_PY) > > $(call rule_mkdir) > > - $(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) $(SRCARCH) pmu-events/arch $@ > > + $(Q)$(call echo-cmd,gen)$(PYTHON) $(JEVENTS_PY) $(JEVENTS_ARCH) pmu-events/arch $@ > > endif -- - Arnaldo