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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 D2067C19F2D for ; Tue, 9 Aug 2022 19:39:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=swVoT0S8PzBK4ULULOGRd49MEetJAMuLAH+iow/YiMc=; b=h4avSAhk1CPpnR 3WfngdD8c4PcyuKsBw2tvy0A99mP8OcrEhMLm/pNwLPKciftsB4nAtq3NYuOUpooy7AlBbaZlMy1L 4lRFzfxy+TEkFGNj8QrvoPAemSMB7ifMtZsC+ZwHVnQhZIr5l4knFUnznYePicVvHzjJbLl7hLnYT v0S5JvkqMUftKYbN/e0q6RhRSLxSRIKL79AmLGlG6mdpXqpi5lWa0vlLCzrphmhksy5sqnidiCLVG jUQ1zw5xl+PfEUyTgOgS0HnQw6jNenCppgZnEej5ZzeU/+eM+BGiy3YK5Vq1dj3wnacrkin/L6rGW IeLbp+UznObvI3D0ZQ0A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLV3p-005vAA-0W; Tue, 09 Aug 2022 19:38:41 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLV3m-005v9H-ES for linux-arm-kernel@bombadil.infradead.org; Tue, 09 Aug 2022 19:38:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SAzNqbGBp/ayxFeZzUn7VJueuhjnpUCWBhASwk9UP1M=; b=b4jNP1Zo1ROwMR12jhGothbmfp ZvOVM/YX0mSSc7NnkXwh0bnAmG7vBa7quj5F02Jqpcb1FFwqpoJj4Dp1FUbblLhcjKBZxpnKjW1qG jyVcb4FqjzkAIr3bB2hCXsWZ5zdHGYrVo8abBt7qZvWRPNTHUirvkGqsL/TyIJ/4MkS1jx4KGjoe/ zLi8VEk5a0wo8Ma8c5X6230lU9dd5TXDVo8gQCfnGCtjQGEO1wqFGu8hG4jjCSN9BWjLTuT0nDjA0 9rQ5wEdEPussxY4g6liR/8hcl1u+2LkeZjjDd9EEDX08bHpt3YBZTfIey754PqcmOXr9P+P8gapzm R+q9ayDg==; Received: from [187.19.239.32] (helo=quaco.ghostprotocols.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oLV3h-000a4J-MT; Tue, 09 Aug 2022 19:38:36 +0000 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-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel