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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E624C7618D for ; Thu, 6 Apr 2023 18:47:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240344AbjDFSrp (ORCPT ); Thu, 6 Apr 2023 14:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240270AbjDFSra (ORCPT ); Thu, 6 Apr 2023 14:47:30 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69F55BB9A for ; Thu, 6 Apr 2023 11:46:56 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 205-20020a2503d6000000b00b7411408308so39246431ybd.1 for ; Thu, 06 Apr 2023 11:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; t=1680806815; h=content-transfer-encoding:to:from:subject:mime-version:message-id :date:from:to:cc:subject:date:message-id:reply-to; bh=bgbBef+rgcSx3D3j+g4z4teFI/QK+Um57kHM0es9MZw=; b=EryOl5EMERMfEO1w6B54WypRukMWHpiG4caNtol/REm0LzYQaM6tLPJTl5OCTCfN4e 1Ia1/dh9EHbQ8mCabb2LFL7WnqV/eTAOGSjhIwv4GsPRUK/G0MW26vszEz+151VMDDKd p5CWBx6TF5pSbSD/iysCRCQQ9hxnVsvpL2bqMOVU/ezBxO+Z4mg+TrvzwEMTZeqkk3GW M7ESge8DywwNHDvd9541JqMuL9LEzX6dcyJe5wdBtuRTiBKChoOK1pzxBra3MvVf9XZN qOdiOP/87xSezWmbt1MprqLtKdWjllKB1LFU4RovYD58jvEUZfyT/8W2AVuxkeyx9pOt +1JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680806815; h=content-transfer-encoding:to:from:subject:mime-version:message-id :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=bgbBef+rgcSx3D3j+g4z4teFI/QK+Um57kHM0es9MZw=; b=bD1zD7T2mJUZpUALmnHd1mwWNli8JxubshOsmKVZhFjb/XMXwv55LGsNCiNvRjNHm3 2GtGEgjHN4lL1/GlSPedEz4kMy/FvuUydrqu259EB5XLWLA7GhELlHpuRg7XEr+q7wi8 SJ3bbbf9EoI+O6cQhSh5tV2yFlEwHOyEb4/QEuqm7mWRvZ8KKDHMPcnEZCAvbhaYQ764 BRz9aAE3FAHKPYQuLcb0znQF6d8+4xMc1QXY0WAg3pXJ5aXVuLhJVrrTX7X6g5BOGhmf 6eIMsBulR5ymomR+7cwv1RsHEUwPJhItcXVt+Kwn8FPoLhtI1AmLM+5YIWmRjGM7X1ap cbnQ== X-Gm-Message-State: AAQBX9dTB6wLDIvK9b9ENPYSAi5Bl88i8n/85mjnZbQe48fnoVyTnexa FxRzhYFviLVJDnsinxj8DJN+UsHgxhJh X-Google-Smtp-Source: AKy350ZPxRIWgQpSFolIb05xhQVaJFwanIhAtjpLiDp/LTXrl43O66Kx/umQ4ok1pLk2BDvNywu9s7ld5+8h X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:939d:185a:97bb:59ee]) (user=irogers job=sendgmr) by 2002:a05:6902:909:b0:a27:3ecc:ffe7 with SMTP id bu9-20020a056902090900b00a273eccffe7mr2782013ybb.3.1680806815269; Thu, 06 Apr 2023 11:46:55 -0700 (PDT) Date: Thu, 6 Apr 2023 11:46:34 -0700 Message-Id: <20230406184638.2632300-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.40.0.577.gac1e443424-goog Subject: [PATCH v1 1/5] perf vendor events intel: Update free running alderlake events 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 , Zhengjun Xing , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the PMU name, event code and umask. These updates were generated by: https://github.com/intel/perfmon/blob/main/scripts/create_perf_json.py with this PR: https://github.com/intel/perfmon/pull/66 Signed-off-by: Ian Rogers --- .../arch/x86/alderlake/uncore-memory.json | 16 ++++++++++++---- .../arch/x86/alderlaken/uncore-memory.json | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/tools/perf/pmu-events/arch/x86/alderlake/uncore-memory.json b/= tools/perf/pmu-events/arch/x86/alderlake/uncore-memory.json index 2ccd9cf96957..ea25bb411f89 100644 --- a/tools/perf/pmu-events/arch/x86/alderlake/uncore-memory.json +++ b/tools/perf/pmu-events/arch/x86/alderlake/uncore-memory.json @@ -1,29 +1,37 @@ [ { "BriefDescription": "Counts every 64B read request entering the M= emory Controller 0 to DRAM (sum of all channels).", + "EventCode": "0xff", "EventName": "UNC_MC0_RDCAS_COUNT_FREERUN", "PerPkg": "1", "PublicDescription": "Counts every 64B read request entering the M= emory Controller 0 to DRAM (sum of all channels).", - "Unit": "iMC" + "UMask": "0x20", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B write request entering the M= emory Controller 0 to DRAM (sum of all channels). Each write request counts= as a new request incrementing this counter. However, same cache line write= requests (both full and partial) are combined to a single 64 byte data tra= nsfer to DRAM.", + "EventCode": "0xff", "EventName": "UNC_MC0_WRCAS_COUNT_FREERUN", "PerPkg": "1", - "Unit": "iMC" + "UMask": "0x30", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B read request entering the Me= mory Controller 1 to DRAM (sum of all channels).", + "EventCode": "0xff", "EventName": "UNC_MC1_RDCAS_COUNT_FREERUN", "PerPkg": "1", "PublicDescription": "Counts every 64B read entering the Memory Co= ntroller 1 to DRAM (sum of all channels).", - "Unit": "iMC" + "UMask": "0x20", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B write request entering the M= emory Controller 1 to DRAM (sum of all channels). Each write request counts= as a new request incrementing this counter. However, same cache line write= requests (both full and partial) are combined to a single 64 byte data tra= nsfer to DRAM.", + "EventCode": "0xff", "EventName": "UNC_MC1_WRCAS_COUNT_FREERUN", "PerPkg": "1", - "Unit": "iMC" + "UMask": "0x30", + "Unit": "imc_free_running" }, { "BriefDescription": "ACT command for a read request sent to DRAM", diff --git a/tools/perf/pmu-events/arch/x86/alderlaken/uncore-memory.json b= /tools/perf/pmu-events/arch/x86/alderlaken/uncore-memory.json index 2ccd9cf96957..ea25bb411f89 100644 --- a/tools/perf/pmu-events/arch/x86/alderlaken/uncore-memory.json +++ b/tools/perf/pmu-events/arch/x86/alderlaken/uncore-memory.json @@ -1,29 +1,37 @@ [ { "BriefDescription": "Counts every 64B read request entering the M= emory Controller 0 to DRAM (sum of all channels).", + "EventCode": "0xff", "EventName": "UNC_MC0_RDCAS_COUNT_FREERUN", "PerPkg": "1", "PublicDescription": "Counts every 64B read request entering the M= emory Controller 0 to DRAM (sum of all channels).", - "Unit": "iMC" + "UMask": "0x20", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B write request entering the M= emory Controller 0 to DRAM (sum of all channels). Each write request counts= as a new request incrementing this counter. However, same cache line write= requests (both full and partial) are combined to a single 64 byte data tra= nsfer to DRAM.", + "EventCode": "0xff", "EventName": "UNC_MC0_WRCAS_COUNT_FREERUN", "PerPkg": "1", - "Unit": "iMC" + "UMask": "0x30", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B read request entering the Me= mory Controller 1 to DRAM (sum of all channels).", + "EventCode": "0xff", "EventName": "UNC_MC1_RDCAS_COUNT_FREERUN", "PerPkg": "1", "PublicDescription": "Counts every 64B read entering the Memory Co= ntroller 1 to DRAM (sum of all channels).", - "Unit": "iMC" + "UMask": "0x20", + "Unit": "imc_free_running" }, { "BriefDescription": "Counts every 64B write request entering the M= emory Controller 1 to DRAM (sum of all channels). Each write request counts= as a new request incrementing this counter. However, same cache line write= requests (both full and partial) are combined to a single 64 byte data tra= nsfer to DRAM.", + "EventCode": "0xff", "EventName": "UNC_MC1_WRCAS_COUNT_FREERUN", "PerPkg": "1", - "Unit": "iMC" + "UMask": "0x30", + "Unit": "imc_free_running" }, { "BriefDescription": "ACT command for a read request sent to DRAM", --=20 2.40.0.577.gac1e443424-goog