Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1854435pxb; Fri, 5 Feb 2021 03:12:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWrqHs5rMvc+c8U6s9GierTbXv/noqKJy3vQLS1V8Cf06uEZztufPjozSPZDRPs/dAS0xW X-Received: by 2002:aa7:c7d8:: with SMTP id o24mr3079997eds.328.1612523554663; Fri, 05 Feb 2021 03:12:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612523554; cv=none; d=google.com; s=arc-20160816; b=Vt2sthf2GflNLpSt5reF2JBbk017vAH2p6WLyvH1VSYUTqBk/FD9xr6wCRhMbOC+cb 0fyAkvIYoyReZDLeEB4DM4fGSmAEac3MORoiFEtoJS8BKonHQn1jYjnH7eeLO8QJCcxy K0nBnT0n16O7FA870AETtCQH6LXPrfAqx7FiTtGaZD2tzg/mdGNF83gohQJA8YROTKwK kkmaX39n8jF+9jkUxrP/O3gyZWiCug+6TGHgOjKmDdhSNEAqWXuJ2LYi9fZAmfFgjiTi 67dBpTOjlaZdHnSaABu55tc//BIdGGw7G2M85bbfeRVl4YMpOcHvQp0RsemqPsNTPNAg 3uZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=tmQbZfgniFPVo4cnL/FxCHbKgto6MyJ0Gub2LwVH6po=; b=beTOLHSnyN4z5mIVjLKGBofBfa1jICeySdzC0Jbw16c6Zogen8aNu1/5CiUlRE1HNx OpvXWY5idoAKu65gGe8vKozFFvwvXEUWQ4U1NAWeH1s6Rg+qtDBjRFof6RY8Jye4Tcbj a7eVNtQeEPv0htw5E9mSLAkql11D5WFo6Zu6do58mjoB8DPvogTqnGiTCJcpmx6VB0We UfXRS7SeFKEb70RZAW/DZNim5R9Z7gZnqnLo+lBrWxftQJ7pep3aKXotpF7NC9Dia5Pa 8f2Ltqgq32bY5Te+ykJfi/PQbZx35+XZ6SSm6V1FENTyFzqcm9cTeAGSjOCTxSZCrohP 1cBA== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f22si4857213ejc.22.2021.02.05.03.12.09; Fri, 05 Feb 2021 03:12:34 -0800 (PST) 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231857AbhBELLh (ORCPT + 99 others); Fri, 5 Feb 2021 06:11:37 -0500 Received: from mail-lf1-f52.google.com ([209.85.167.52]:43852 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232008AbhBELJ1 (ORCPT ); Fri, 5 Feb 2021 06:09:27 -0500 Received: by mail-lf1-f52.google.com with SMTP id d3so9267738lfg.10 for ; Fri, 05 Feb 2021 03:09:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tmQbZfgniFPVo4cnL/FxCHbKgto6MyJ0Gub2LwVH6po=; b=QMvxP+GsgxdnW3Y2Kh8inaWNXQ0Bdhpjl+hDWVsZw1ZJLIj0uKBb2PCAtEhFFZhaqq xjeS8SAz6TUCndupnowwxVgkiYQdsONtkEGfV9Kmhyj7SukERZ+JyeCljmvAHXsSaVzr N7oxTK7WUGbRvz5Zdz0jp62S3gbivI+cQbjFjBKBU29569pJMMf4DcnmdJCTxkwBCUbS hH/YsDax7NDfMh6nXps6vljMqOKwR9Xl8x/8kcDizQg03esx3Tc2XwXMVtcTBNaxnKIP 2t55SUiJs/vJK6V3bj2enEXvpLhje/vFt2GVM5aJhp6ZOM7jZlppAs3FMB9vzzYhPGN2 lxwg== X-Gm-Message-State: AOAM532Y2GAYeNcwvgOVfD8Jj2xlpdNUyiwBfKpA5jh8gWjDAdqtvLvY K/n06iRiLR8QfEReO9yFNOgfXkMeiiJLHxQ/508= X-Received: by 2002:a05:6512:2342:: with SMTP id p2mr2270439lfu.509.1612523324921; Fri, 05 Feb 2021 03:08:44 -0800 (PST) MIME-Version: 1.0 References: <1612296553-21962-1-git-send-email-kan.liang@linux.intel.com> <1612296553-21962-7-git-send-email-kan.liang@linux.intel.com> In-Reply-To: <1612296553-21962-7-git-send-email-kan.liang@linux.intel.com> From: Namhyung Kim Date: Fri, 5 Feb 2021 20:08:33 +0900 Message-ID: Subject: Re: [PATCH 6/9] perf report: Support instruction latency To: Kan Liang Cc: Arnaldo Carvalho de Melo , Ingo Molnar , linux-kernel , Peter Zijlstra , Stephane Eranian , Jiri Olsa , Andi Kleen , Yao Jin , maddy@linux.vnet.ibm.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 3, 2021 at 5:14 AM wrote: > > From: Kan Liang > > The instruction latency information can be recorded on some platforms, > e.g., the Intel Sapphire Rapids server. With both memory latency > (weight) and the new instruction latency information, users can easily > locate the expensive load instructions, and also understand the time > spent in different stages. The users can optimize their applications > in different pipeline stages. > > The 'weight' field is shared among different architectures. Reusing the > 'weight' field may impacts other architectures. Add a new field to store > the instruction latency. > > Like the 'weight' support, introduce a 'ins_lat' for the global > instruction latency, and a 'local_ins_lat' for the local instruction > latency version. Could you please clarify the difference between the global latency and the local latency? Thanks, Namhyung > > Add new sort functions, INSTR Latency and Local INSTR Latency, > accordingly. > > Add local_ins_lat to the default_mem_sort_order[]. > > Signed-off-by: Kan Liang