Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp77858imn; Wed, 27 Jul 2022 15:52:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHQAZsSc8OtKcux1PK4oee4P4lLpCySFRqUh30f5UdqKS3EnTLeetBdhJU7J5bnsIyeW2O X-Received: by 2002:a17:907:9710:b0:72b:3271:c9f with SMTP id jg16-20020a170907971000b0072b32710c9fmr18546113ejc.91.1658962335969; Wed, 27 Jul 2022 15:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658962335; cv=none; d=google.com; s=arc-20160816; b=KgkNSKbjQVBtwCd1oh3+gOouWyJivLmcewWxmOZyXPltEhJb5stHX9GJb0Ex5ICyC8 CWsS+qsVS4twmH//7cKPyOweTw8E7pc1DStDcDaniDKfyZqENXNnspZqQChLpV9HL6Iq LFEiOc1HS+nVd0z1ieNx03mXgIotFXncP5x93jlIQkDdCI74mZ52uQAF+1M4GOfcSPHn ruV35M9olBKUWurZdE09tRjqaVU2ydYBHsNgERABtoK6ql6Fv2f7TDnK48J0t82bFFax WidPqZo3y2zxgY4aomE3ZHJAdbzfVnp6kAtQGXWWOaftGjthKLIuLDECKWc4fLyEC97t 8cmA== 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=8F+fz6+0/gUalMupUoM3UlVut6MQCtx2E2VfaCYyCYs=; b=f+pbEytbEFTgg59MhhL/AgJmkrnHEa9k4DM/13fql8MOPpUL1luwXlZTOPX9ymmDru ++TvtTVt0HDThjNUJ2MAPYTA0ry3Eir4VxCHhZqnIAnDyDjaqOKbKHh7aBkZVelLi6IT UKTnZiLICw8u3D55wYV/Umdwptt+yzoPe0PaSmuDI5qevAKKpPetfQzPKYK5ddeV7M9Q rlYqUYG0DST4beX8xdv8gvuZxCg/X6+IOUQUs1zWxEnM9VbdPpxKqqNfEK3EtA2XkLD6 RD8WlmSxIIgIobBYjq4mp5Tc1sPoXiTlrK41ckgFDuDeIhd7GxL6EEMBeXBrS9KgPSTu SDiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="SVrzjdA/"; 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 m3-20020a50ef03000000b0043ad1f13cd3si17933003eds.509.2022.07.27.15.51.51; Wed, 27 Jul 2022 15:52:15 -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="SVrzjdA/"; 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 S234858AbiG0WJ0 (ORCPT + 99 others); Wed, 27 Jul 2022 18:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233961AbiG0WJB (ORCPT ); Wed, 27 Jul 2022 18:09:01 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28C08558CB for ; Wed, 27 Jul 2022 15:08:57 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-31dfe25bd47so846867b3.18 for ; Wed, 27 Jul 2022 15:08:57 -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=8F+fz6+0/gUalMupUoM3UlVut6MQCtx2E2VfaCYyCYs=; b=SVrzjdA/29nNMvxtMEUOAmZjsomAqykdTmkEngLitpMomnZZwE06XS4fPMaoa1387w 9MYE+Eu5EE80/Ys86P/8OIvtCSXzZKJt2PmnabnqXvdkKB2nVSpGibW9O4i2bv9XZKlK Sd3/A7fn5Yi45H8hr9ZWe9nVMceuwvDVWBrk2BZPyP1fSktKr2dSLiY2i8s77QqB2SKh X5iItT/To9rea2fQ21xTcpDJCg9aoST9nMpTL+fMVCdy8EEcZTTlAa/gwteLEHscYjRm TssFkFv+wF9vvz3irksGb5nDZ9Uh83fjRFCPKpkuzoLeHkBRErJsi7U+C+JgOGed5m2K 58Ew== 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=8F+fz6+0/gUalMupUoM3UlVut6MQCtx2E2VfaCYyCYs=; b=Nsas9oQa/UPsntemIPzaCIQU15N2YL93c3Ez43bDsPXNyjldn6Kg10hLMwjsd3Aoar Mj/bGr8+BXdaSl+vUjUr/mm0xzyQ8UlK2d1ZWUBVZ3pAPTQsDVIMYl/ax2+ap2hwLDj9 iZ88DTUkzePqLcqU6CW+RfLez7vmqY5u0xlU/PXQJVo6ZFoeh2wv7esLve0APWP1YSi5 aLPirSMG+Df3QmnMTi4nMLR3zuiUysAJW04fuCTGesVFbKF2Glmu6BYocUosxz6P6S9X I369oBXQDn3T1LhV8pj9XGkWIP6OxGjA4QP/8SdenIQMNZcI7ENZRytxSLtVZQsIORiO bQnQ== X-Gm-Message-State: AJIora+1nzOY0vcHFYAW368rY/iKJmzcBodtJ4BbKDgtbjOVn3XMGYVC J3vsHxo/MBMclg39ndvBfyI20DjuK+34 X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:882a:af57:8cb6:6f9e]) (user=irogers job=sendgmr) by 2002:a81:5748:0:b0:31f:6587:b25 with SMTP id l69-20020a815748000000b0031f65870b25mr3836694ywb.517.1658959736916; Wed, 27 Jul 2022 15:08:56 -0700 (PDT) Date: Wed, 27 Jul 2022 15:08:07 -0700 In-Reply-To: <20220727220832.2865794-1-irogers@google.com> Message-Id: <20220727220832.2865794-6-irogers@google.com> Mime-Version: 1.0 References: <20220727220832.2865794-1-irogers@google.com> X-Mailer: git-send-email 2.37.1.359.gd136c6c3e2-goog Subject: [PATCH v3 05/30] perf vendor events: Update bonnell mapfile.csv From: Ian Rogers To: perry.taylor@intel.com, caleb.biggers@intel.com, kshipra.bopardikar@intel.com, Kan Liang , Zhengjun Xing , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Maxime Coquelin , Alexandre Torgue , Andi Kleen , James Clark , John Garry , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Sedat Dilek 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 Align end of file whitespace with what is generated by: https://github.com/intel/event-converter-for-linux-perf/blob/master/download_and_gen.py Fold the mapfile.csv entries together with a more complex regular expression. This will reduce the pmu-events.c table size. The files following this change are still at v4. Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/x86/bonnell/cache.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/floating-point.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/frontend.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/memory.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/other.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/pipeline.json | 2 +- tools/perf/pmu-events/arch/x86/bonnell/virtual-memory.json | 2 +- tools/perf/pmu-events/arch/x86/mapfile.csv | 6 +----- 8 files changed, 8 insertions(+), 12 deletions(-) diff --git a/tools/perf/pmu-events/arch/x86/bonnell/cache.json b/tools/perf/pmu-events/arch/x86/bonnell/cache.json index 71653bfe7093..86582bb8aa39 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/cache.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/cache.json @@ -743,4 +743,4 @@ "SampleAfterValue": "10000", "UMask": "0x2" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/floating-point.json b/tools/perf/pmu-events/arch/x86/bonnell/floating-point.json index f8055ff47f19..1fa347d07c98 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/floating-point.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/floating-point.json @@ -258,4 +258,4 @@ "SampleAfterValue": "2000000", "UMask": "0x2" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/frontend.json b/tools/perf/pmu-events/arch/x86/bonnell/frontend.json index e852eb2cc878..21fe5fe229aa 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/frontend.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/frontend.json @@ -88,4 +88,4 @@ "SampleAfterValue": "2000000", "UMask": "0x1" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/memory.json b/tools/perf/pmu-events/arch/x86/bonnell/memory.json index 2aa4c41f528e..f8b45b6fb4d3 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/memory.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/memory.json @@ -151,4 +151,4 @@ "SampleAfterValue": "200000", "UMask": "0x86" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/other.json b/tools/perf/pmu-events/arch/x86/bonnell/other.json index 114c062e7e96..e0bdcfbfa9dc 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/other.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/other.json @@ -447,4 +447,4 @@ "SampleAfterValue": "200000", "UMask": "0xc0" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/pipeline.json b/tools/perf/pmu-events/arch/x86/bonnell/pipeline.json index 896b738e59b6..f5123c99a7ba 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/pipeline.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/pipeline.json @@ -353,4 +353,4 @@ "SampleAfterValue": "2000000", "UMask": "0x10" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/bonnell/virtual-memory.json b/tools/perf/pmu-events/arch/x86/bonnell/virtual-memory.json index c2363b8e61b4..e8512c585572 100644 --- a/tools/perf/pmu-events/arch/x86/bonnell/virtual-memory.json +++ b/tools/perf/pmu-events/arch/x86/bonnell/virtual-memory.json @@ -121,4 +121,4 @@ "SampleAfterValue": "200000", "UMask": "0x3" } -] \ No newline at end of file +] diff --git a/tools/perf/pmu-events/arch/x86/mapfile.csv b/tools/perf/pmu-events/arch/x86/mapfile.csv index 2842f23db82a..dbd6bcbbca8b 100644 --- a/tools/perf/pmu-events/arch/x86/mapfile.csv +++ b/tools/perf/pmu-events/arch/x86/mapfile.csv @@ -1,13 +1,9 @@ Family-model,Version,Filename,EventType GenuineIntel-6-9[7A],v1.13,alderlake,core +GenuineIntel-6-(1C|26|27|35|36),v4,bonnell,core GenuineIntel-6-(3D|47),v26,broadwell,core GenuineIntel-6-56,v23,broadwellde,core GenuineIntel-6-4F,v19,broadwellx,core -GenuineIntel-6-1C,v4,bonnell,core -GenuineIntel-6-26,v4,bonnell,core -GenuineIntel-6-27,v4,bonnell,core -GenuineIntel-6-36,v4,bonnell,core -GenuineIntel-6-35,v4,bonnell,core GenuineIntel-6-5C,v8,goldmont,core GenuineIntel-6-7A,v1,goldmontplus,core GenuineIntel-6-3C,v24,haswell,core -- 2.37.1.359.gd136c6c3e2-goog