Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2557241pxb; Sat, 6 Feb 2021 00:12:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyTGFzvGcknrc/g3bSvkzGOVIJ0YS9aJZXCJ0HfI8WJ7CPottKlWqZtIwfXmObVFTkqd2J X-Received: by 2002:aa7:dd4b:: with SMTP id o11mr7379309edw.303.1612599154311; Sat, 06 Feb 2021 00:12:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612599154; cv=none; d=google.com; s=arc-20160816; b=RMZ5Rido18aB6RJV6bDyDjXiKcHL91BYad6dUtcz8AMvpXFMwaVMu+92xWjQVMODzn LbrPdNH2DkURh5gCtkUM7oqkfAgLcJ5LutQx2Z0xGXzMSL1kRTtE33SKXotZK6psN7hb /sgwbVo0pd0CYZUud+V1/+tykw7S/TjLqP+DAc9PKQIhaabkDd1zadIbGBExnTbxLvSH yCauEBTeFteZukHrdrDFXogC/HKeMXgxJ1a/8dEq7wko69F0amz0kjglN0ZPNmJqOutt izvWumSbwKJH3gx3VYQHz4pSTndhJLkSjG9JVucAmLrt3SFzNNNx7Jydmn0JwWi0dGIH QIjA== 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=JdCKUOOvLRKqJGcBf3726MN35cQVH7doyHjReo+krxc=; b=DLRJwRCXpZrqrBslrOMnF5Q96FgLd8Y7U/xn9/Ow2laFZBP9FilrJXSecl04zNrfnu u0zI4+qjrzLeHyc0MHH9QCJRV3ZjsOArMruafd9a/lFnb7glALk9SgAV/u8RbBxQMv8Z LOlNKZHMBi84iE+2b2leMChLeuReyq/E8o5ry0mpL7gjzcbypU18bN8Z/5/gE6P+Et1S /DNiUHij23km0vYLs3keL3hh3r8kq6voj0yQ/InvDjAKcL5fxQKEKOgWhsZNc8QzAm3X xCgwpCGzkhXhVzSG9+1zgsrODEOWufeZWzmYbTzlTNDFwuQPY8+mMn/HeDWSLulwVMxB tlYw== 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 l9si7003592edb.610.2021.02.06.00.12.09; Sat, 06 Feb 2021 00: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 S229572AbhBFIK2 (ORCPT + 99 others); Sat, 6 Feb 2021 03:10:28 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:38445 "EHLO mail-lf1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhBFIK0 (ORCPT ); Sat, 6 Feb 2021 03:10:26 -0500 Received: by mail-lf1-f50.google.com with SMTP id m22so13888725lfg.5 for ; Sat, 06 Feb 2021 00:10:10 -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=JdCKUOOvLRKqJGcBf3726MN35cQVH7doyHjReo+krxc=; b=FjoyiF1iT0zPW38EBJssMC7qZbCId+n8lZc3uWgSAJ1XXVIBKUCpz/0ExEsysKosvv Dyfn+d9SaadIOyA3Mrjb6YqrPo8FCEjwrWJ6xvEyujugbtXYLRGkx2L43/STejG3vCZ3 7co28H0Vk7BjN8A7AMbE0JSDAulnWkyRqCvaXMlaQtUeeQixHMtlDmoLdhJkaDEc3gr8 PYc7UWTb2HwNe7inq7IP1GTUY+1bpxp+pejPSfCZscQ57MUilSIk3fqvAxxZxbj9yEED VC/Zob5ywB527yFXEaZQP5t9dpIjNrrjOybcce8k+ZQ5B6MBE39EJCvMaP6hDQckri/3 M2gw== X-Gm-Message-State: AOAM532ezLnMPw1EfTSJ4NO9Ji+hQS0ABjlh886lquU7/vZQivZhehVo M8PBVr16atZ2bggQ0EdsXWzqq/ujcBFJs+6YklKMGoDw X-Received: by 2002:a05:6512:a8b:: with SMTP id m11mr4524653lfu.112.1612598984926; Sat, 06 Feb 2021 00:09: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: From: Namhyung Kim Date: Sat, 6 Feb 2021 17:09:33 +0900 Message-ID: Subject: Re: [PATCH 6/9] perf report: Support instruction latency To: "Liang, Kan" 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 Fri, Feb 5, 2021 at 11:38 PM Liang, Kan wrote: > > On 2/5/2021 6:08 AM, Namhyung Kim wrote: > > 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? > > > > The global means the total latency. > The local means average latency, aka total / number of samples. Thanks for the explanation, but I think it's confusing. Why not call it just total_latency and avg_latency? Thanks, Namhyung