Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2513426lqt; Mon, 22 Apr 2024 12:55:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4629/+xYTQM1Dk7/8VrHzaXSVIvqFbMNmxheFLXwXlexpTLxpzWK04ory9HJ73n7yfLWFCnJknAuLq2yiKDrkG2fol8nd++Z/UJdJXQ== X-Google-Smtp-Source: AGHT+IEJEFoPUFWfvtKmw2rcVcP2HonPQfPCkWRr4flYeP9rb6h6nm7mfFgVojRB7d5c9eig6BwN X-Received: by 2002:a17:902:e5cd:b0:1e4:c959:2b65 with SMTP id u13-20020a170902e5cd00b001e4c9592b65mr14324323plf.41.1713815725273; Mon, 22 Apr 2024 12:55:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713815725; cv=pass; d=google.com; s=arc-20160816; b=frHspne/LpHjmDSXLUTLs/WMtQFwGLE0lDUwUTMtYUFgyFyv/20kHOrQCG+sc9A29U UlI0BFH2oHl/9u9VGg/+ZEr89ctudUWE/ohOscWvafZFmslLxqXZjVPQn5VHDyF22vVF Xwd/VUMJyXZ3aQJ4OcJBYhgbk1rdzbdsAu8j7la3xIN4fXEmMfXnWaxyxUPFzFS6u765 sb58ByulljAwXeGEIrnfQ4nw1w1v6WAGYIAOjR2rAti6OKtEM8QXRqVqGMskCa8p4fBo J3CGcPS+g2aqcVo9PovONQPMmpkco2XdHf0vuxNSF+5hW+OMLZ/bcZYoRgTku4duBqZI QahA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=ROr3UNU3503DzaF7LIBVFzJGvqS0DJu8N802BmfVcVQ=; fh=L7AsADRDv4vImlNJAtP7qD92UVh8GzbsrdPCNOaXqkM=; b=wVZvL724DcrZoDLwnYERfLv1YVl2hXLcjB6D7qod4nmdPAkFbbrB0dOa7MtdDrGrls C3C5FVI4tn/nK1oRKu5BxQp9kOYfCoDBiZaUGW1fcuzxjxtIkFAWL53/VNnTDG1llfC6 2a3SJPKB23VQi6muXAo6RwYRfHtp+PURN2XNXeVy2NZRahOy6EWzXOwJ/SMh1hFih/Kr edR8CAM+4ZHFz2rusglL7XVCaCyB+BpjSP12I9sK9ytfcuN/HlCnDX1cOHC1LoLxMcG8 PHXUTsf0kZlFrjoLlYmHVrw7jt2kPSiqgBSOSWD/UEAE9FcIueuVujTWaoViRjYa26LS XMMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i18-20020a170902cf1200b001ddbab57f3dsi8522198plg.234.2024.04.22.12.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:55:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153957-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153957-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E4022280FB5 for ; Mon, 22 Apr 2024 19:55:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3B448155393; Mon, 22 Apr 2024 19:55:18 +0000 (UTC) Received: from mail-pj1-f45.google.com (mail-pj1-f45.google.com [209.85.216.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 835E7153837; Mon, 22 Apr 2024 19:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815717; cv=none; b=ZzKBtdeeuC2yWpP5+J4GpJT+P26DlPFc8GgldlPjj1P95+luKMK3Z2sCkfKjthQcUdgBJCDUOaAXjGtj2pasPQhg18OA654V2W4vMWwAl8lKwHzgNkNd0IyfPSk5IDtMufH8nBDBPHTujy/DApw4SGHRSoDIOGZhTjEQ5VosXZI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815717; c=relaxed/simple; bh=dbUuQjU2jGCOnAG004o8j90d7W0DvjwGFjx2+mLeMFA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NB4o+/JZ/Zyv5gAXJJCfolP46WnN+GhRdGPxdczEQSqXlvncbwIPRNirmntxQ2cQJKgGXfQ+XOolRRx/uQNjAPvWUQbb08hmV1SyAwk9kcDXzWP1vdQylNzbSayy2QksbzHKNZLsoCgG51pqx/33xiih0g9aKZjscoHZZ8dg72M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.216.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-f45.google.com with SMTP id 98e67ed59e1d1-2ac9b225a91so2424607a91.2; Mon, 22 Apr 2024 12:55:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713815716; x=1714420516; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ROr3UNU3503DzaF7LIBVFzJGvqS0DJu8N802BmfVcVQ=; b=MDsl0UF5rOcEOHyiQwZqpZt5viID8h3fmjTsWrmgE+aIv51mj2ayRgJGj+8B0oEMkv j/QrP0Tg4z3WCFlmkyt9n/vQhDxDespTp1C1HjbyXVDJO877f+7HI1CvNEDEVN5ACzKP vBLhaBIEqNN2X3/pUs8ytfu0XyvH+qLjNO5XLYDc+l5M6vo+haC+uGceYw7ITluHNSbP ufH5J1G6bC/1jifrDguqk+wJIJEK1hbzcep6TcbaaugBR2TAA7m4HGYPfobgvXcWMVO/ gxFV9USeuj78uCCNIu7ZMAumN2q8GeMs9FrSP5R0cbulzP9oOTpPhK30McpSz1KCI0z6 trgg== X-Forwarded-Encrypted: i=1; AJvYcCUbu03YyLvhnaNzESDgdy1l304FqRSfs54fkmbgdhaJM9W/Hsmf5PpWTh8RYOrp270rDGFK/yW96EOu8MccQGaQZ/XgzgQejHAsK15tVzMOmUrb20/C+T4x8/6lZ/nQkkyTGuDQ5rZ4kgUG7XnXYg== X-Gm-Message-State: AOJu0YyKvhFqCoF7ghU6MF72XiEaymoXyJTywNEu3e86lAhX3J7+sioc JgUkhxlGQk9WO5NEv56VROZIALWRzMasfZ8W/fqd6od8YXLiK3nmzCNFKkhEDwPfmOUIWZ++AGF T/boeMSZq3olnXbEJ+UBRYAuviFI= X-Received: by 2002:a17:90b:24d:b0:2a7:7cae:8ec9 with SMTP id fz13-20020a17090b024d00b002a77cae8ec9mr8940854pjb.7.1713815715629; Mon, 22 Apr 2024 12:55:15 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240402214436.1409476-1-weilin.wang@intel.com> <20240402214436.1409476-6-weilin.wang@intel.com> In-Reply-To: <20240402214436.1409476-6-weilin.wang@intel.com> From: Namhyung Kim Date: Mon, 22 Apr 2024 12:55:04 -0700 Message-ID: Subject: Re: [RFC PATCH v7 5/6] perf stat: Add retire latency print functions to print out at the very end of print out To: weilin.wang@intel.com Cc: Ian Rogers , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Perry Taylor , Samantha Alt , Caleb Biggers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Apr 2, 2024 at 2:46=E2=80=AFPM wrote: > > From: Weilin Wang > > Add print out functions so that users could read retire latency values. > > Example output: > > Performance counter stats for 'system wide': > > 25,717 MEM_INST_RETIRED.SPLIT_STORES # 2.2 % tm= a_split_stores > 28,365,080 CPU_CLK_UNHALTED.THREAD > 24.00 MEM_INST_RETIRED.SPLIT_STORES:p # 96 = 4 > > 2.054365083 seconds time elapsed > > This output of retire latency data is in format: > # . Nop, please follow the perf stat output format. It'd be # ... Hmm.. maybe you don't need this at all as it'll have the event anyway (probably without the 'p' modifier like in the example above). Then I think you can just add a metric value saying the average latency in the comment area. Performance counter stats for 'system wide': 25,717 MEM_INST_RETIRED.SPLIT_STORES # 2.2 % tma_split_stores # 24.0 average latency 28,365,080 CPU_CLK_UNHALTED.THREAD Thanks, Namhyung > > Signed-off-by: Weilin Wang > Reviewed-by: Ian Rogers