Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2517749lqt; Mon, 22 Apr 2024 13:03:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSYZUjBTDLVsqPjmu3iM5wEJkSv74M1Sc8zfhaH16PZYpgwkdOsuqlYwj3sGFusZQA9tijPpKaYpLmJywdgW0SRDnl42MKi2Pi7bhVVA== X-Google-Smtp-Source: AGHT+IGAFvJWvOSkQJN0iUzZoPZO6CBGx/9QfVV+vDqLJWbHzw6zfv0R1blX1SR34aXgKidJOE+a X-Received: by 2002:a05:6a00:1992:b0:6ed:e1c:102e with SMTP id d18-20020a056a00199200b006ed0e1c102emr16066888pfl.24.1713816189294; Mon, 22 Apr 2024 13:03:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713816189; cv=pass; d=google.com; s=arc-20160816; b=hVRBk/5hsw8u/RLyIP/RO/xfO+Z6XPPDt6zFKLwOEBexjD+dnFSihls70Xq2lFcsWQ MYVCQBf0g/nUItV5MNnAMPc7DYwPJg7W5+WnV3zyXIxfaPkM7nOqzygKsCNmWLCKv4Q7 j4EO3zIAHw6Iae+AfeZuj/nXnpwMnCrXCfX4eK1z+1uf+GCsBaVn3w4dtHoP+RjMs0Aw X9g19ZjzycfogZwQpBHcRdo0/Wn4YgBW+62PKf86XBXP9phJp+ZJIcmEIb+IZxhK2qLK S21/f9L4hbPFgkzpXWDEF6N4+491yKVCkOULPnzEzlDaOSuMNdfBpFOdfRPBVxcPHBJ5 ZNsA== 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=ZJ75A/8OgSdYaiyjnSCmItzI6PsJdpDOfLZO1MOPoYU=; fh=mGBFNbH/c6mvB90TupgSt6o15jG0hLfe/dzXa4IhAB4=; b=FjNERjzkZzF3XXMxszZyK2PoV7+fnh2vu/Hx96zd1eEN9T/vzAJnJDyirvAeakG3w0 YiYv3QExXOn4zsIOmXyMA/ijqtMD6YpAYIt89ad7Ip9XHBjcxccAjjaFxazcU7y1z1dJ /wKDj5urG6kLTJlT+vkcclZWVkiA6X/BSxK5Y5WEy3sWN9OLi6rA90Il4UDGAWAvB3+q XJJ9roJFVXYglrd6/2uYoDDFJaT75QBobMOb9LAKnF2JiwouXyEVYd/ntjL9xoFZOa83 znscZvijAPQMAgPB/Kf1T+DVHIIOLCEA7hCe9QPRt0WlTOYlDPq6COrAzNB5jMZLCKhu XQHw==; 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-153975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153975-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 u11-20020a056a00098b00b006ee1d680d44si3864150pfg.395.2024.04.22.13.03.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 13:03:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153975-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-153975-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153975-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 5E7DC281B03 for ; Mon, 22 Apr 2024 20:02:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB7C15573B; Mon, 22 Apr 2024 20:02:17 +0000 (UTC) Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (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 266271553B8; Mon, 22 Apr 2024 20:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713816137; cv=none; b=P+IPnDUWWVsdlOq30MqvXQy31p7yMiB0cPNQbP53yoV1aGluSkhaO9i8owDz58JwKe++UIXWN10WO1+SPVCyejCsEQ5z5FDSE7QiI1ZijNrCic/Fs5NP+XL7/tvIgbece2+sWt277I7zsAQESZyAIovLHREqQZryJOilxXbYfCo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713816137; c=relaxed/simple; bh=kyPGFrRjogg7eballx/psAJp/i0GSsb1eEhvh4VJrCE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jykpOEAxS+CEis6Zfk1ngJNVGek7I9liI0m/LwE0+KNfnZ2OHuRubrmDLK5c6Ma1hYP8NGAuJywaH9G5tUPzHAzEgwxcidI8kMm2Wh428+KUDiX2hxyCgpJFLWldtFp16PwI9WpsRaSqutZHplAzGKO2rHOqYrONHiYRPBmA4ks= 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.48 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-f48.google.com with SMTP id 98e67ed59e1d1-2a484f772e2so3144650a91.3; Mon, 22 Apr 2024 13:02:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713816135; x=1714420935; 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=ZJ75A/8OgSdYaiyjnSCmItzI6PsJdpDOfLZO1MOPoYU=; b=d65JgKJzbo19p0HPeYAfJNHALO7gcnhlCetPQvUMzatIw326wgPAYPKWsavwJbu707 Qamb4y1MocHo/S2Yr9pnLFTkfg77L+mberTs4YuLS9onDWIE9HcgYJfy9VWXr8PaNit4 3lZlJzynLoiXUpjpT5d6Jb/ad5RdgR1qF5p8sgXy2m5+NwxtqeIfpTr4ywXS54Lc5mQO mc35NhUpqjHsnao8OxNL1Vt4UdiES7CegMW2e+IDiiy6rtZHIVkUnV7NTFQWm3yZugKu DosacvsdgBJswriE53Swupb4Y/Xa30BMoqw8/cwgHSncUAgY17QzScRIxexeGhyXwBt4 SXOA== X-Forwarded-Encrypted: i=1; AJvYcCXx0hue7sqQ7fTLb5aYfNdSRBMeGi67Pl5KmYoHnjqW/M6B28tQIOdQfE5ZqVFeyO8GSISILy9s5FCa6k4GUSuKJJOCo2PANicoXBFNInVbjMXAmfhbLaQANHiCw4j9nNATZlfkMLSRQ2LH5nNSBQ== X-Gm-Message-State: AOJu0YxEaOnludd3SB2Q6A2YjOvTjSo2On4uHZ5dXtCfaP1KwlnIr+ZI pn/6EojBoa3+Rra/QGOh8xBroyvLiwJmKEF4rRNMrusqSVmlOvPVf/08cxB9yM1PtovFW6mrP3i A3zSzsasm+qBlKrLHaAucxHPkoX8= X-Received: by 2002:a17:90b:3781:b0:2ae:9138:6d8e with SMTP id mz1-20020a17090b378100b002ae91386d8emr517966pjb.16.1713816135335; Mon, 22 Apr 2024 13:02: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: From: Namhyung Kim Date: Mon, 22 Apr 2024 13:02: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 Mon, Apr 22, 2024 at 12:55=E2=80=AFPM Namhyung Kim = wrote: > > 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 % = tma_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 Sorry for the line wrapping. They should be in the same line. Thanks, Namhyung