From patchwork Thu Aug 11 06:24:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 12941176 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8A45C19F2D for ; Thu, 11 Aug 2022 06:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YarDPNjOjRGnX1bWJ2yvJSDVZo2vZwByn4e2Q9Eanyw=; b=LWBNuU3OdS+gb3 oQ1Ul8KfwIlj3eUHMDiAIN0NL1DFQPvf3CM0/QoxOvptawXS+DWYbQFTbPfJVdy6ouQ2qzb3/rDzU Y1PxC3T8k++PR9T5HvvcQ5eDK6YkQVD8wn6QjH6fbmKS/3A061EUmGIpK/EDXHnvLN9BLyxT+BpdL bUrZWMMm8t5JxqiRH3ih6oPTISpWBgiFq6jO2oyb12FmHTQlI9uS2MSR7mVoDScZ/jx+wkyfPyLG9 4hF3DvdN53wdGiu5IksMcSHQI0HoOtGV6q0XcL7TNiwutz5krojP8P3dJeZYmy1gTlJg8O3DHCFTn fTt4HDlcVbeMwZqch+Eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM1eb-006uti-Hj; Thu, 11 Aug 2022 06:26:49 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM1dU-006rYT-Io for linux-arm-kernel@lists.infradead.org; Thu, 11 Aug 2022 06:25:42 +0000 Received: by mail-pf1-x429.google.com with SMTP id g12so15716677pfb.3 for ; Wed, 10 Aug 2022 23:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=f67DxDkxHroZMFoZK6mrn4q4D5M0LO9oUzI+oIec9yQ=; b=qK3HT8xhLBHFCpfpcVLl/L8H6NnAg4OC//TLPKwHr7xnBDeGvgZTa89cPs899T8Ubs UP9EwbnO0UqAuI2X1JXJ7qE9nPXdghVgw3O7ua3SfIj0f0pVASW8j7xR4XcbMe7b9TZs OMtCDDIaBljKwDKpgmqVNaj4E/Bm5lS7Hv90gHk4Cnlthib3KZEA0F0HpOcvdtwLLkoq eExUZUVlnyOSptqm1PRdegFSJXUZ6QaaLgtBUTftJbxA9GqO5yElbQ/V97n0VraBhpzD XJq+VG2+H52CdHYf4pxoW8Hx36Y0lAU2JnASQhJNg4lUyGKt+xV071tEUc3F5w/2tSKl +Csw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=f67DxDkxHroZMFoZK6mrn4q4D5M0LO9oUzI+oIec9yQ=; b=ziKiGSEZmQXUdFN/Njc4N2gkWO4PZxNv6EGefN0mR++QYI6+qmodhIWzPNVeaW7xEn Je1zRmpc9jP0nSd0VU6lONLnTjP1WY29MFdb5HtcNH78yznBrbQvp5c28K/iz25zw9qR iM+xhkiHntKP59XWiXSa8Jgz9bZBCaiRGqc8Ziq7pEZLcyk1c0w5bZfSYja3m01CuIkj Evj5VVmP67dLzvFK6vbsv6S3rKdtOC13ZeWVT08gbxS2HeBCwZtlT8sx6gEoXH7jYI66 5H4FqNgDdlqedUmE/Ay+hWGhrvK04kZJT98B5rLg0ZpgGu08vejBJoSbrXY8d20yWzdi 6PQw== X-Gm-Message-State: ACgBeo2Ue+8lAC8GEAp8HLqNs9+5gk1sYw+pJ+9T6tUppZmyPlIoFqJJ AZpTdschLgyYZNQOjPjzRk5DUw== X-Google-Smtp-Source: AA6agR5H8e/YFsEUshvz95pOP1ghFED8hJp8f6oiA4F3LawcEpDj00ACfx61/jM76yBJPIJTfmvz4A== X-Received: by 2002:a63:6587:0:b0:41b:dacc:1826 with SMTP id z129-20020a636587000000b0041bdacc1826mr25165361pgb.142.1660199138517; Wed, 10 Aug 2022 23:25:38 -0700 (PDT) Received: from leoy-yangtze.lan (n058152077182.netvigator.com. [58.152.77.182]) by smtp.gmail.com with ESMTPSA id o12-20020a17090a55cc00b001f506009036sm2766926pjm.49.2022.08.10.23.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Aug 2022 23:25:38 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , John Garry , Will Deacon , James Clark , Mike Leach , Kajol Jain , Ali Saidi , Adrian Hunter , "Gustavo A. R. Silva" , Anshuman Khandual , Ian Rogers , Like Xu , German Gomez , Timothy Hayes , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Leo Yan Subject: [PATCH v6 06/15] perf c2c: Add dimensions for peer load operations Date: Thu, 11 Aug 2022 14:24:42 +0800 Message-Id: <20220811062451.435810-7-leo.yan@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220811062451.435810-1-leo.yan@linaro.org> References: <20220811062451.435810-1-leo.yan@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220810_232540_646319_988787A7 X-CRM114-Status: GOOD ( 12.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patch adds three dimensions for peer load operations of 'lcl_peer', 'rmt_peer' and 'tot_peer'. These three dimensions will be used in the shared data cache line table. Signed-off-by: Leo Yan Acked-by: Ian Rogers Tested-by: Ali Saidi Reviewed-by: Ali Saidi --- tools/perf/builtin-c2c.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 37bebeb6c11b..99c0c7307a4a 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -650,6 +650,9 @@ __f ## _cmp(struct perf_hpp_fmt *fmt __maybe_unused, \ STAT_FN(rmt_hitm) STAT_FN(lcl_hitm) +STAT_FN(rmt_peer) +STAT_FN(lcl_peer) +STAT_FN(tot_peer) STAT_FN(store) STAT_FN(st_l1hit) STAT_FN(st_l1miss) @@ -1360,6 +1363,30 @@ static struct c2c_dimension dim_rmt_hitm = { .width = 7, }; +static struct c2c_dimension dim_tot_peer = { + .header = HEADER_SPAN("------- Load Peer -------", "Total", 2), + .name = "tot_peer", + .cmp = tot_peer_cmp, + .entry = tot_peer_entry, + .width = 7, +}; + +static struct c2c_dimension dim_lcl_peer = { + .header = HEADER_SPAN_LOW("Local"), + .name = "lcl_peer", + .cmp = lcl_peer_cmp, + .entry = lcl_peer_entry, + .width = 7, +}; + +static struct c2c_dimension dim_rmt_peer = { + .header = HEADER_SPAN_LOW("Remote"), + .name = "rmt_peer", + .cmp = rmt_peer_cmp, + .entry = rmt_peer_entry, + .width = 7, +}; + static struct c2c_dimension dim_cl_rmt_hitm = { .header = HEADER_SPAN("----- HITM -----", "Rmt", 1), .name = "cl_rmt_hitm", @@ -1672,6 +1699,9 @@ static struct c2c_dimension *dimensions[] = { &dim_tot_hitm, &dim_lcl_hitm, &dim_rmt_hitm, + &dim_tot_peer, + &dim_lcl_peer, + &dim_rmt_peer, &dim_cl_lcl_hitm, &dim_cl_rmt_hitm, &dim_tot_stores,