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 ABBB1C76196 for ; Thu, 6 Apr 2023 18:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240487AbjDFSro (ORCPT ); Thu, 6 Apr 2023 14:47:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbjDFSra (ORCPT ); Thu, 6 Apr 2023 14:47:30 -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 69DF6BB99 for ; Thu, 6 Apr 2023 11:46:56 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-54c23fab905so8679237b3.14 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=ILTY9jLSyRBImeONxsZPTH7ykf9cc1zmqyKcY/bDPDs6KrUnvLOfTkz2TLLknWHOyb Iui0j3Z+I4jmpGYMwE5Lj/H3NZh/Yy56krXzluTmRy5jpcTPhHiSRSrswlkzMIO0zbwA ZaJ0Qm2Isu62gLW7l0r08JmTQ0yyW/2XLzCGqjeWFt+SNorm9nl0H9Sm6FAOTVkxXrZh lkF1CaS+8IrCWZWthIo2L3kiCWBLNKS+uMUXgUxxEaf54LLorVUx0FVUlbbgxHtDyblM C5CPT21W2X2KqKxsu16O7NTXuQ8nemPNLCEy2isYOmsDUK2klX0A1wWo9vbI+P88Dt7A XSUw== X-Gm-Message-State: AAQBX9eFaouk88E2kY25ZQfczQ6Ft04bg8yyETLcM+/y4dKbSRf50vbn Ed5z8EKkvoNpHVK80zsT6n5CcktHWDu9 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-perf-users@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