Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp109379imn; Fri, 29 Jul 2022 01:02:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqTU1OA5NGyEkExaoTsF88Ls/eo8cjpmoT8isJbfdU/9nN3Z8tzWnq6Lye6o4CuQeTwzv7 X-Received: by 2002:a05:6402:4148:b0:43b:7f36:e25f with SMTP id x8-20020a056402414800b0043b7f36e25fmr2319835eda.407.1659081756282; Fri, 29 Jul 2022 01:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659081756; cv=none; d=google.com; s=arc-20160816; b=F2ZrYhwaTYADjyrcPNmuLuFx5Un//EnhRc4NSfnNgTzf/zMgcZIxWu6wgzAkNGFT/G GoISmEmsMvmwOVMQIpzG2S0I+pbst95FnlXlpyPUgJA0QMYPMUOzmSmTZ4U/ReyZBC4D vcQN/KzG5hw4uuuy+BrioV8yqolU3XZpOt33yDVlPMzFn0vEQ6fkK3EBuhs/TofnkPcJ eYjuwzfe5b8BPanLduWG2yldT9+cqOvMfGPGZvs9C4lcBycANrBn5mRCHFwbn4R/Z/J2 jiFD6P6U73tvCDoP0VBaaA9ZdGumF4qxoZpJozqHXEwy71KH5euGsOyDXFigjK8IOURr Sr6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=n6t/pfc0M41ToUc5HflmTh98LQ2xLoF6/7gvlW5ZK2Q=; b=T1XcPpV0B3ZDniVJ8ZKEWH3W/PTjuYTcsWgeJTVS9Zk/wJwzcrblY/CexsaR0CdVtq y5PwqxjgEmGzBy182LhIOk81PpFvvKBOreuxwanjR+3HFCd3hyFgsg498fE76nEVxKiU uXWK//+0+Xu+kh2hr62IG5fjLOCD5Vd6oNaAv6diNwu4/WGbEJKEumLzz5bKXKDD8s8d RZOYmylYbIaggF6qrEqZqkwemmNcR7JXncSUR/5miGCeWW26CA4M3en1NUxrp6JIHx/a upV4om+D3CCEeAHA1CsEGI3dyj+6fM+e9EC95Qeg1dqsGaD/FQK0WIJ7hk6OhvSSMl8q M6Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=RmaMHRM7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id be18-20020a0564021a3200b0043aca113dc9si2369180edb.342.2022.07.29.01.02.12; Fri, 29 Jul 2022 01:02:36 -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=@google.com header.s=20210112 header.b=RmaMHRM7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234984AbiG2HoT (ORCPT + 99 others); Fri, 29 Jul 2022 03:44:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234942AbiG2HoL (ORCPT ); Fri, 29 Jul 2022 03:44:11 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5965965666 for ; Fri, 29 Jul 2022 00:44:10 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id m123-20020a253f81000000b0066ff6484995so3298778yba.22 for ; Fri, 29 Jul 2022 00:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=n6t/pfc0M41ToUc5HflmTh98LQ2xLoF6/7gvlW5ZK2Q=; b=RmaMHRM7ZCMs2/Sqd/a9cdMCmqaHieNXVHN4Vuvjr+TsV/F8AClPvTIRagoDGDteWP JtTrLV93NxFRO9qxISgnIVfKmNRq7AhrSL9eH75+iyu2fez+WJO0lxUj+jqV/oKCfe3i nuyp1wAIJyjwZvdYgpNF0Ol7SaSvyWX3/OmBZc8xGOSfwNMMDJu83rG8aYZjNa9VjNGX 68nHrV2nLH2zt4bKDZntZlSECtedzjURSUOIwFLvjqkwwAKOEq7Zao1TaGUi05MPmxbF xOeW23WnznBfPNyM8bDBJvTUDbitnImpHaGkGAe9c5bPYLuz2XRTTC+A6k5lQej39y3d o5Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=n6t/pfc0M41ToUc5HflmTh98LQ2xLoF6/7gvlW5ZK2Q=; b=FHkmyE6B/1Dh187i8Fpq6O+gcPB/BtFXXCN4zHKQv216t00PlhO3noSPz0TYyaSS87 JhIZV0NTn9JtlhtrhBrAR2Fq1m7RBUsEjGlAuk1qc5+pU6RO8ah8yK4bxBeLbdmniXej IkU9oYlcaCTTdhO98TjOsZ0uVGVF2rnBt+rhRpfvC85rXOrVbnVlbae8mRYx6wgnz5i/ Mj2YWPwAqsrqv0sxc5JUTp5bDzHZXHfo1WS+84zXXI/qnDxL0EMFEtaA/Kc+UG8YKg7L BLGcDhBNWtNaf4Z3IiZEO4sIcBYlCyLG2zltolNKv5Mk3sWcCDW9CQG42cbiCqlZqIkv CQ7g== X-Gm-Message-State: ACgBeo3RqrVp/4O3QT8XvzavcLyA6YG5HOnmmF/fUMnE/ICtKbyIfCBj HzMUsS7uZ42Q9+2afF/WigHhl8pWvYm0 X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:524b:47b4:2aeb:1b49]) (user=irogers job=sendgmr) by 2002:a25:aa2e:0:b0:674:d1f6:4480 with SMTP id s43-20020a25aa2e000000b00674d1f64480mr1535820ybi.591.1659080649673; Fri, 29 Jul 2022 00:44:09 -0700 (PDT) Date: Fri, 29 Jul 2022 00:43:37 -0700 In-Reply-To: <20220729074351.138260-1-irogers@google.com> Message-Id: <20220729074351.138260-4-irogers@google.com> Mime-Version: 1.0 References: <20220729074351.138260-1-irogers@google.com> X-Mailer: git-send-email 2.37.1.455.g008518b4e5-goog Subject: [PATCH v3 03/17] perf jevents: Add JEVENTS_ARCH make option From: Ian Rogers To: John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , 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 Cc: Stephane Eranian , Ian Rogers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL 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 Allow the architecture built into pmu-events.c to be set on the make command line with JEVENTS_ARCH. Signed-off-by: Ian Rogers --- 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 -- 2.37.1.455.g008518b4e5-goog