Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp6028291rwb; Tue, 1 Aug 2023 11:09:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJg9Nsz2uFaRAYMN6NPoY0/GhZfVP+DIba4K+gN4jiqrD2xG6cteLXWlgIjDIZ6SXEz0ji X-Received: by 2002:a05:6a00:1a90:b0:641:3bf8:6514 with SMTP id e16-20020a056a001a9000b006413bf86514mr16384092pfv.10.1690913344388; Tue, 01 Aug 2023 11:09:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690913344; cv=none; d=google.com; s=arc-20160816; b=goJ93DSzQigGO8dbOLUm72mvulcPY6O+7KgVEhn4auZMwMUfmq6mizm15y7KVSPjI5 G9Q/bZsU5gCJaflyoQO3QfvetxDGBTkClXKVYxFGLMuVDt0bIa+eIs2x6hgL7WTwhugO sCsAOrmG8jTZRYG/jWlEK9DuF9vuPJqa/PVsw4ZiRcADFS/83xpvcZLuKpsWIqsSXjM3 tIPDMzFylqiZ7kWyjRk5CKcwk1SDBbzQLXa4CyjrtepTld6i71n91frMK0VCisJveE8g Q7H+9C5gIKHaFpZLYyBOng5qbG/vBoA+45i5bETz9sDJ9G5JkHlvGgBJMwdWnrAa83sD Q7EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=WIXmTzn29Ek75qD7JlLbn+jFUm6Q0bpCZMfNuqUL4go=; fh=rCNAW80Lj6gcrUwUe7Yvx4hEq8T+4YVJTouzO8NG6Cs=; b=PFOiEp1BoaRMV4zFHQ0xc27flc7qpAcMuOH5aBaicedfDfR3gy2M7AKqiBnV8XI4l5 LYiZ1M+sj+p06YjVzSHBO+xxoX+yxhKaHoXs64UDqDBZIsCH4gFStR/a2BUtyeNhZ6+2 n30gOziiWjgivq5HgjEYwCmOkB682Zw1dCNeeP5mMoAs5wftG1CrYPzgSB8Ye8LjKaDE 0WCRBjWN6Dph/uO8YYuZq+yIunKK6xWDYsvgK0/pp88DbjSrXmzvNHKDX1UyT/Yu9tzz ZuExtBCECONnelAgoyrUNvR7R8rNtV9lVWU1pv5JDKbhP+ayj5Fl6zXqi2Wu/A5ETQBS ydfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eliWFbbA; 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=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cv9-20020a056a0044c900b00687312950a1si4282827pfb.387.2023.08.01.11.08.51; Tue, 01 Aug 2023 11:09:04 -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=@intel.com header.s=Intel header.b=eliWFbbA; 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=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjHARs5 (ORCPT + 99 others); Tue, 1 Aug 2023 13:48:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbjHARst (ORCPT ); Tue, 1 Aug 2023 13:48:49 -0400 Received: from mgamail.intel.com (unknown [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 874581BF9; Tue, 1 Aug 2023 10:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690912128; x=1722448128; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=eFiu+chGOa/DVboePjsv2TCyJ6fcGyeJGuMw5oR1IRI=; b=eliWFbbAv5uEYQiVFHuDoO7LTawurhMXpo5SD96liOhaQ/C9aSYQNJAQ sUjj1xYXlVbWyiVHT1LJHLenOSvG+yAk6gwrjJF93loActh5gUe7OK7zO LUAIzKKk0FfSM2H2G3ULQn5ywfpsnhNZAWItUIL4eOuzOx9BdFeghMYiC q41/cdbUEGMEktyahqpTPdVbVNxy5Gu42aPNiMNKZqaxaRKokXPoD8iIX R8CMzDpFSXJKKw7pTCewLRfA+Dt9KeTCeB4aM+AexEtqFYERMs057CW+g mgUwEpNfv2+3Ap1Rub2mC1tlIyxXYytrdmIZ/wd5Ep/5/R1C1CZE5LOYm Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="455744170" X-IronPort-AV: E=Sophos;i="6.01,247,1684825200"; d="scan'208";a="455744170" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 10:48:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10789"; a="852570873" X-IronPort-AV: E=Sophos;i="6.01,247,1684825200"; d="scan'208";a="852570873" Received: from linux.intel.com ([10.54.29.200]) by orsmga004.jf.intel.com with ESMTP; 01 Aug 2023 10:48:47 -0700 Received: from [10.213.165.139] (kliang2-mobl1.ccr.corp.intel.com [10.213.165.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id E55A258068A; Tue, 1 Aug 2023 10:48:45 -0700 (PDT) Message-ID: Date: Tue, 1 Aug 2023 13:48:45 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1 0/4] Intel metric fixes and event updates Content-Language: en-US To: Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Ravi Bangoria , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Kleen , Weilin Wang References: <20230801053634.1142634-1-irogers@google.com> From: "Liang, Kan" In-Reply-To: <20230801053634.1142634-1-irogers@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On 2023-08-01 1:36 a.m., Ian Rogers wrote: > The metric tma_info_pipeline_retire contains uops_retired.slots with > perf metric events. Patch 1 fixes this event sorting so that > uops_retired.slots isn't made a group leader as that needs to be > topdown.slots. > > Patch 2 and 3 update the meteorlake and sapphirerapids events. > > Patch 4 addresses an issue with event grouping discussed in: > https://lore.kernel.org/lkml/20230719001836.198363-3-irogers@google.com/ > by adding and altering metric constraints. The constraints avoid > groups for metrics where the kernel PMU fails to not open the group > (the trigger for the weak group being removed). > > Ian Rogers (4): > perf parse-events x86: Avoid sorting uops_retired.slots > perf vendor events intel: Update meteorlake to 1.04 > perf vendor events intel: Update sapphirerapids to 1.15 > perf vendor events intel: Update Icelake+ metric constraints > Thanks Ian. Reviewed-by: Kan Liang Thanks, Kan > tools/perf/arch/x86/util/evlist.c | 7 +- > tools/perf/arch/x86/util/evsel.c | 7 +- > .../arch/x86/alderlake/adl-metrics.json | 11 +- > .../arch/x86/alderlaken/adln-metrics.json | 2 + > .../arch/x86/icelake/icl-metrics.json | 10 +- > .../arch/x86/icelakex/icx-metrics.json | 10 +- > tools/perf/pmu-events/arch/x86/mapfile.csv | 4 +- > .../pmu-events/arch/x86/meteorlake/cache.json | 165 ++++++++++++++++++ > .../arch/x86/meteorlake/floating-point.json | 8 + > .../arch/x86/meteorlake/frontend.json | 56 ++++++ > .../arch/x86/meteorlake/memory.json | 80 +++++++++ > .../pmu-events/arch/x86/meteorlake/other.json | 16 ++ > .../arch/x86/meteorlake/pipeline.json | 159 +++++++++++++++++ > .../arch/x86/rocketlake/rkl-metrics.json | 10 +- > .../arch/x86/sapphirerapids/other.json | 18 ++ > .../arch/x86/sapphirerapids/spr-metrics.json | 9 +- > .../arch/x86/tigerlake/tgl-metrics.json | 10 +- > 17 files changed, 549 insertions(+), 33 deletions(-) >