Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2325634rdh; Tue, 26 Sep 2023 21:55:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQDVUULJ91JoQQaGPvHPzcIkc4oxFTvUcyNVdx90mP7mfDjp6Ib+PgEirnTr/qfv6uAugi X-Received: by 2002:a05:6870:80ca:b0:1b0:18e8:9536 with SMTP id r10-20020a05687080ca00b001b018e89536mr1493534oab.52.1695790513905; Tue, 26 Sep 2023 21:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695790513; cv=none; d=google.com; s=arc-20160816; b=HQiiPHXsiFh1ytYuofZ1F3iAwpZxE6sadxnkQNy9jmES9LbY3wzXsvlLUSCM2QH9yJ /7bbLQtVFOL6EoEzks8bekSKlCrNIGkz5YrChMw/Ah0RaWVLoo/jugFuBakF1dotGfJ2 7M1PFSl45s1K7KTc0fARtfw1oIHlcg4rfk38eThs7K09bjGSr6fQ3SeVgGYKURA3N/DM zxelEI585xqg7b7qrWv0vPSNXLawP+GV8//w1/dVIBDEVRXYOo6XIv/YwcDxcEP4pdon 6g0Wzu7t7qWtIxHTfXhoeog3yKozaBEMmcNSSTqIRJTBqDoYnmxcPPjkrZOlG0FPTSwQ TOGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:mime-version:message-id:date :dkim-signature; bh=qgojMLtTPS7ALj3bYas//tFq8eo4J8/6f82zm1IrmKo=; fh=fNEyvxJJR5FMzc39O/BbvY8CT06yhnZo8WiZNmmXtXo=; b=j+40ETaHuo0BZtS9I/BKTveDdpNSkivaTn8AJosJ8htKbymp/Zrp1hmr4/Z77wivHp P8fBX+le8/oeKTPuexE/c9Bm3axmgW2aZ3Bsr1a7Dxe6Y9wGHseDxT7wBZ0RaVEUkwZn KkHoFief7RjbMnWgwkBCCQtmPsnR1UHiGB2vnNUGbO3rSnApS5tnBlHntc5WA3uB9qbD sdLduoD2QMKVs4KLq2RQACDsJUlMTu95x0y04M1dBkfARj5CVy6KqG8Y7fegpLo8l0Xh HFNzTpgLNzKA1x2PdBeFt++uM5K9qkJKwuHNOZrZ8RP7rNml9RzWuEWX4ehBLoU60dXF +4DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=w2Ft1LXA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id w8-20020a63f508000000b00565e92e8734si4076446pgh.769.2023.09.26.21.55.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 21:55:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=w2Ft1LXA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 1481B8182EDB; Tue, 26 Sep 2023 16:02:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231597AbjIZXB4 (ORCPT + 99 others); Tue, 26 Sep 2023 19:01:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231955AbjIZW7z (ORCPT ); Tue, 26 Sep 2023 18:59:55 -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 D0B121BD7 for ; Tue, 26 Sep 2023 13:59:59 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d868842eda1so10617907276.0 for ; Tue, 26 Sep 2023 13:59:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1695761999; x=1696366799; darn=vger.kernel.org; h=to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=qgojMLtTPS7ALj3bYas//tFq8eo4J8/6f82zm1IrmKo=; b=w2Ft1LXAEmSLtC9q/HcLLlEk76TP801HJSIg3VEL3ncr98RNDUSNqCAXcOBcO6X4tI npSopTtiUAjNoIpCqSJySjDJgTjSXiAed4tM/2fxZClUbaRtzU+jj83GtGMxfi5NQD/B nMfjX2KjTH/FqCfssGStKhx2ON1a8h/DhSJJL4Pfel4W4QdY9DZE1KPYkaVxLZxv3Img Dpoyk2d38CYWak/iWz5zn4I+OPhdCxBIC69uUckjeof3dZvZTMRmEIA87MoySlRx+HMF 5xHfGA22vpLsSbrWF6hxX6+73ONZGYgqaAvwuCbgNwE3dhrDCzo6hmbZAUJny3IdY6tu 6tMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695761999; x=1696366799; h=to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qgojMLtTPS7ALj3bYas//tFq8eo4J8/6f82zm1IrmKo=; b=Wj7TMuyfmgZyzJ7c2rMxo2Dn96PmWhnd3Js73X2b/QSd6NpGF+Pe9BVaduBnVF0zm7 zcucaH8X1SdZqJL2/TR0GBUaHVfNLGHaxT4NM77TRJUvB9VS6sPlNEN8HzI+ZqZdVhhq 6A7eoNKsOPEateLZDiqUvQDOotAUjjkylakR01f9wxjea4RlnGcu7e30E8x9KQffxL0Y Pl1Yz7JoIMQ7twjtr923L2LGq/Z56O715ireeeBsuvz90gZlhoOcfg66PgjReYdl3Gfb sVyCXH24+Evct9WMSlPOrmafol2iWT6qpAXG8jYxpwO4+RwpfYA3Ng1VWGgjUskDkFKq RRcQ== X-Gm-Message-State: AOJu0YzRFtdRQ4wVen2hMS5dB7cjxJoi7Y5vJF+PnkdqkuJMxRLI2Vdi J3ZIa+ODX/hWBYyzyqQxJScEYjkUP4+9 X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:8ff0:2e1:80b2:e4a]) (user=irogers job=sendgmr) by 2002:a25:b0c:0:b0:d89:4382:6d14 with SMTP id 12-20020a250b0c000000b00d8943826d14mr413ybl.6.1695761999020; Tue, 26 Sep 2023 13:59:59 -0700 (PDT) Date: Tue, 26 Sep 2023 13:59:46 -0700 Message-Id: <20230926205948.1399594-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.515.g380fc7ccd1-goog Subject: [PATCH v2 1/3] perf vendor events intel: Fix broadwellde tma_info_system_dram_bw_use metric From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Perry Taylor , Caleb Biggers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 16:02:11 -0700 (PDT) Broadwell-de has a consumer core and server uncore. The uncore_arb PMU isn't present and the broadwellx style cbox PMU should be used instead. Fix the tma_info_system_dram_bw_use metric to use the server metric rather than client. The associated converter script fix is in: https://github.com/intel/perfmon/pull/111 Fixes: 7d124303d620 ("perf vendor events intel: Update broadwell variant events/metrics") Signed-off-by: Ian Rogers --- tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json index 8fc62b8f667d..d0ef46c9bb61 100644 --- a/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json +++ b/tools/perf/pmu-events/arch/x86/broadwellde/bdwde-metrics.json @@ -652,7 +652,7 @@ }, { "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]", - "MetricExpr": "64 * (arb@event\\=0x81\\,umask\\=0x1@ + arb@event\\=0x84\\,umask\\=0x1@) / 1e6 / duration_time / 1e3", + "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time", "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW", "MetricName": "tma_info_system_dram_bw_use", "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full" -- 2.42.0.515.g380fc7ccd1-goog