Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2495316lqt; Mon, 22 Apr 2024 12:18:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtbtp8HYwTJrpFpy/5LMmTKO3GtzG+NAFwUq/fplr/z5kC0JpAgs2hWG2NjyYCjCs1ej59xOaLNdI4lralQXi7j1YhxFtefySAHX4Ufw== X-Google-Smtp-Source: AGHT+IFq9N1hvse2ULDosYi1UUIGsoQ/vHgpWgo8hO94oE37wO/4+AVzRwI9rN6QuWMoJdsjur1B X-Received: by 2002:a17:902:bb98:b0:1e3:f6dd:b04b with SMTP id m24-20020a170902bb9800b001e3f6ddb04bmr11243654pls.26.1713813531845; Mon, 22 Apr 2024 12:18:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713813531; cv=pass; d=google.com; s=arc-20160816; b=u/kqyna/AFf74H7R1ydLMbJxDU4hzT3NWnUnY7pNCgsRymjFbEe1y8niKr2n4ix62i uSh2cz5d+SD0cxS/rREWi7mtIfCGYV5TMd2vky9wz9TLUypN16xv0sJFzszWFSax0bmE YWydD2SVqwaHMPWbblrog3ADOA6ePd43Dk8iuawIv4Lr8R6kAA20rJq+OYvt896kNkVm xi8/v1vQw7N+8NEx6918/GYW1KtQAcI6QptZOgOCKEWFm5qUl53G9IYoyrEJJFHRfj8Q sQX86cVkJjRBXk0sD263Nn0daQ1OU8rlDFR2B1toEN1c94lSybmw37zKdh6hrgVvl2m+ nDLg== 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=n3vvI5G4jLdBOt6Q70+4BFyCFpg5vWoLy3HN5IdjI8A=; fh=nlNNdmg+VEU6cun3mHPY7bBBUIOsgEbytvjEd68wI8c=; b=bk3UJb0C9/JQD3PIPYpVoMeffl27r789BZIyyKhPt00uHg23boTTUSm5x08f58qNdt q65uMowojJi3ozAzhdCe1tsF9HnGOxz4Bm6bawDTvpBfW0MF0U2ONFHMucm4UGdmS67l EsU1IGwzLVR/ZXRKNSTgO0k8oPnVjwoRBBZBCAq1g1z2XuO5gcN0ixeIVDleWwqDMzxf 5ePdOSl48PkZqfZvj2rUuclGfVr7ItCU6FTF1UkCe3C0FMpM1KwzfI9ANOEN6ITdmQgF fMGTqUmgQCz6F/Hn+KRzLwOUXmztQdu7h4/roHxeMSa/SI+xB1yIUvpYiHJUMCl3ljjF uCoQ==; 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-153899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b005dc927ee2fasi7870119pgp.710.2024.04.22.12.18.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 12:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-153899-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153899-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0BB63B21D3B for ; Mon, 22 Apr 2024 19:13:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B9446155325; Mon, 22 Apr 2024 19:13:23 +0000 (UTC) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) (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 EC43F154432; Mon, 22 Apr 2024 19:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.217.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713813203; cv=none; b=Z2/DJkg0ur5NzNxt3lbQh0SnYsc18bdGYdiSWmH+BDt9UEVuGi34UiXH8YDgve+VpKVSdUxk5N75g2X8nZugfzkMZk1/Qm+msXFFmaXCVKWvtOw5jP/WcON+g9NavlDvDZ/N0THfAXzyS/iCu1LAqG9LdTuW+/VkLYZvB+TsCIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713813203; c=relaxed/simple; bh=n3vvI5G4jLdBOt6Q70+4BFyCFpg5vWoLy3HN5IdjI8A=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Qq5NPgzRpquX5L4mcSbtROVDRKu2UZYGJpPWPZ3BLhI/uGEUn7I6D3WTFLwYFzk11bJDeOTbbrBRK5oomXxXAvnGGyVpqn74/AKsxqkv914TT5g40mOUOA5KH7Xd2OAZ9OmZ4AhH6gpq57GQbFox1+KFOelO0IYAxBWS+6v7vlo= 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.217.42 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-vs1-f42.google.com with SMTP id ada2fe7eead31-47a1a2c4c7cso708327137.2; Mon, 22 Apr 2024 12:13:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713813201; x=1714418001; 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=n3vvI5G4jLdBOt6Q70+4BFyCFpg5vWoLy3HN5IdjI8A=; b=erU26spRavHaTcSu3glp8TrTlowQt2+f6PBNB0EGoAryMi9hLItRBqaI6a9GHdOoV7 Ya7ipKYSYin24A+cVCVzINXA+dRkZkPkVUkRnus66U69ny+lK7AxGRw3t+YTfJ33D+qG Zm2luALcxTPSIdtm7M7aYdEmCOWJ+OCZ2kHA9+KGixdZtIidMxcVFvrs9Ysr+QGzZYJE GCrI0uqmRkZFE1KryhcTcgecC3r0fv7b/78rQ/xfOgLtLjDnV4QLpTVKnxuR4m41KKtc V676yaEMINjs3IFf/HaT5Yzwmo+T1vyoFSJ/iXw6d2wAlfq88eNveJHczjexPTpasJxR 6QaA== X-Forwarded-Encrypted: i=1; AJvYcCVBhIhO3RudXUaGdUUFHqoLLk7jV/AbLrFY6bWaUhUXE5YdSqLkLZD3L1C0Nls0oXGEcoYmp6/ezR0ZpWLub0wLa971mGsvuR8lxHsZwKt3DsyseucS8E69kqPBbyY2eDG7upwiD8ejDKRc9TJasw== X-Gm-Message-State: AOJu0YyPifj944jDGpP8zHx4vW4oduYCp+GGEumy8EYZheMuUz7QKapC rqqNwWIopXSMGT5FuzIOYx6jsxwMs+BL8oOoJq7rgVuAnvFIk/mBGTh7JFUyw3GHuRs0UsDp9NQ NxQjVSOSVXtJYit7DozxsjKcW6Vw= X-Received: by 2002:a67:efc3:0:b0:47b:9290:f903 with SMTP id s3-20020a67efc3000000b0047b9290f903mr7592305vsp.35.1713813200897; Mon, 22 Apr 2024 12:13:20 -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-2-weilin.wang@intel.com> In-Reply-To: <20240402214436.1409476-2-weilin.wang@intel.com> From: Namhyung Kim Date: Mon, 22 Apr 2024 12:13:08 -0700 Message-ID: Subject: Re: [RFC PATCH v7 1/6] perf stat: Parse and find tpebs events when parsing metrics to prepare for perf record sampling 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:45=E2=80=AFPM wrote: > > From: Weilin Wang > > Metrics that use tpebs values would use the R as retire_latency modifier = in Can you please add this to documentation so that others can refer? I'm not sure if we have a doc for the JSON metric format. Thanks, Namhyung > formulas. We put all these events into a list and pass the list to perf > record to collect their retire latency value. > > Signed-off-by: Weilin Wang > Reviewed-by: Ian Rogers