Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1359232pxy; Sun, 1 Aug 2021 22:39:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz02vZ+N8MMd1z5TdYN0a+vTXAdMIkgZfelB+zkKCUoIii+j58gqMlYeDr3xShY0XXMxAlE X-Received: by 2002:a05:6e02:1543:: with SMTP id j3mr131918ilu.308.1627882781412; Sun, 01 Aug 2021 22:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627882781; cv=none; d=google.com; s=arc-20160816; b=o0Ze4+wJ8HCXetmg8hfukxhSB3/biEw6FGkLiryquMddQvZVqorT+pg921CuN80ca0 oWosugUWDeEn+jfkWWiSRiNsfLvLOR/JHnwopTC2rx7bf4igaEgOiYogRWz8L4OnbHLX WukyKeSzbkVEwkMsq92ebnO0n83/E4aWTkS5KcW8JKa0ZTV017JQ/ObkWYCdEbHD6aZR VV3X5kyqlMW14G+KIo71j081e0lrGUjoZjGiAn54XmlhJwbYpq5ZLkUjDh3FKVI882J3 F1SchVCiICuL24u5UCczr9z5nRp78fQmWHUxJaM+N6S1HoiZZLeTykiZsjdlgZsSXF/e l/zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=VGGWu8yt/aHtduB9zv/bCXvsEdAaev8BXbbkq7yk7WM=; b=MR2NUtbnoqvV+Zz+A3OB6ctWra2CSuVix6czQFaJ6t5d1r8HunPPn8PQGT/SuP1OH9 srlZag2lsizudqHiA1hG55Pa35Dserxda6C3/9/ZO5cstOiEN3hcFmfV7Gfif9l/lz8m 1oTTtk+IA53a5ZE7V/EbS7ES6wTzrgxYG/DEAFfIy21IFqMcMLT8G+d52cL5vdNgC2ia RUj158r/FtP+hLWxMXRhJLzfjFRn4t8WcV5O5ZTxReR/yDtd4HVVwAZCXETPVeXnNpIT CHexa1d1X5b3jsCi5vQej+3qgogUWycagk+/uMS/hl+HOOsowH2utIJLsMX+gWanJ10Z +oug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x15si11785768ilv.107.2021.08.01.22.39.30; Sun, 01 Aug 2021 22:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbhHBFgd (ORCPT + 99 others); Mon, 2 Aug 2021 01:36:33 -0400 Received: from mga11.intel.com ([192.55.52.93]:50150 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbhHBFgb (ORCPT ); Mon, 2 Aug 2021 01:36:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10063"; a="210281240" X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="210281240" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2021 22:36:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,288,1620716400"; d="scan'208";a="457815949" Received: from kbl-ppc.sh.intel.com ([10.239.159.163]) by orsmga007.jf.intel.com with ESMTP; 01 Aug 2021 22:36:19 -0700 From: Jin Yao To: acme@kernel.org, jolsa@kernel.org, peterz@infradead.org, mingo@redhat.com, alexander.shishkin@linux.intel.com Cc: Linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com, Jin Yao Subject: [PATCH v2 2/2] perf vendor events intel: Add basic metrics for Elkhartlake Date: Mon, 2 Aug 2021 13:34:40 +0800 Message-Id: <20210802053440.21035-3-yao.jin@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210802053440.21035-1-yao.jin@linux.intel.com> References: <20210802053440.21035-1-yao.jin@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add JSON metrics for Elkhartlake to perf. Signed-off-by: Jin Yao Reviewed-by: Andi Kleen --- v2: - No change. .../arch/x86/elkhartlake/ehl-metrics.json | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 tools/perf/pmu-events/arch/x86/elkhartlake/ehl-metrics.json diff --git a/tools/perf/pmu-events/arch/x86/elkhartlake/ehl-metrics.json b/tools/perf/pmu-events/arch/x86/elkhartlake/ehl-metrics.json new file mode 100644 index 000000000000..b6f7126be1fd --- /dev/null +++ b/tools/perf/pmu-events/arch/x86/elkhartlake/ehl-metrics.json @@ -0,0 +1,57 @@ +[ + { + "MetricExpr": "INST_RETIRED.ANY / cycles", + "BriefDescription": "Instructions Per Cycle (per Logical Processor)", + "MetricName": "IPC" + }, + { + "MetricExpr": "1 / IPC", + "BriefDescription": "Cycles Per Instruction (per Logical Processor)", + "MetricName": "CPI" + }, + { + "MetricExpr": "cycles", + "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.", + "MetricName": "CLKS" + }, + { + "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES", + "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear)", + "MetricName": "IpMispredict" + }, + { + "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES", + "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)", + "MetricName": "IpBranch" + }, + { + "MetricExpr": "INST_RETIRED.ANY", + "BriefDescription": "Total number of retired Instructions", + "MetricName": "Instructions" + }, + { + "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1000000000 ", + "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]", + "MetricName": "L3_Cache_Fill_BW" + }, + { + "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@", + "BriefDescription": "Average CPU Utilization", + "MetricName": "CPU_Utilization" + }, + { + "MetricExpr": "(cycles / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 ", + "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]", + "MetricName": "Average_Frequency" + }, + { + "MetricExpr": "cycles / CPU_CLK_UNHALTED.REF_TSC", + "BriefDescription": "Average Frequency Utilization relative nominal frequency", + "MetricName": "Turbo_Utilization" + }, + { + "MetricExpr": "cycles:k / cycles", + "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode", + "MetricName": "Kernel_Utilization" + } +] -- 2.17.1