Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1938905iob; Thu, 5 May 2022 11:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbaBN8w7jgzLFD7uIa6Vj5djf39N68GuEuypjdFpIsoJwiNnsy67qpz9iexdTvrpL7VvCX X-Received: by 2002:a17:902:9b94:b0:156:2c08:14a5 with SMTP id y20-20020a1709029b9400b001562c0814a5mr28529063plp.60.1651774740112; Thu, 05 May 2022 11:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651774740; cv=none; d=google.com; s=arc-20160816; b=S4/98X4TWN4H/7yTfmyXrJKd/lpTg/cg57E4poiNdKbxgS2/nRF7mSLL4OYrZSF1tD 5H8UOPEtQ0xnIFql0YbqIuzSWYe/JVkQvF7KkZsUBGXWXy+SEpXKk3uK2+z366h7kwWm 7KlVtwiYevcT2nJ+fQR1n0ySQO2t4S7IGS9I/Dd3aZDiM9LY1V3zxHSjJseh19lyDGiA RvLCvc6rTByoKImtcoYiCenV0jzZmxOCZTp/14/FjnOiaD3pMZV+ujYRXZxxtZNZztME KpcRU58CgJDXgjRPrmoc0sp8PB1NB44gk98st64tEVoN21JjqX/r+ECBgoQCCGRkkcPh GgDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g7YWa84Ggc9PbBc2yEEwZ6f7hUrSoU1ylmKnDzAKmLc=; b=VsKdrPPGtHzDS9lm+N5cRTNj9SKjUM2xRXVRkmzO0IWozR6jLIRBLHduxfuoTYSU6c 3FER89JnelQajZ/xunTz2fTcioRFZ7fFxpDwn8+Q/TNGUAKA4ag7t9yFXFQdzFYJJfHU PBl4jkfUkBJx9eBjZ43U/i6XVNN5tGT+29ObwUjYdxLDP4yYYyGuwVB8UffysW3F6j5Y j6R0YyOJn46VX8PDqB0r5sCNyTROA97ipzj8RBhErELmNAeC7bXsrqpzoX7yWjP+q76g QDtcfdWPKOPFkU84GEDCCVNCvZZAyMtxbJzkZkPnxhjM5Bghr5Mf+BGZuYcpHa0QgHxC huzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=h1Jyue9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u10-20020a170902e5ca00b001581fe9b317si2986916plf.43.2022.05.05.11.18.42; Thu, 05 May 2022 11:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=h1Jyue9W; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377339AbiEDSwj (ORCPT + 99 others); Wed, 4 May 2022 14:52:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377329AbiEDSwh (ORCPT ); Wed, 4 May 2022 14:52:37 -0400 Received: from smtp-fw-9103.amazon.com (smtp-fw-9103.amazon.com [207.171.188.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9CF718E10; Wed, 4 May 2022 11:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1651690140; x=1683226140; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g7YWa84Ggc9PbBc2yEEwZ6f7hUrSoU1ylmKnDzAKmLc=; b=h1Jyue9WmAQ2MfnLE4gcS0lFIdYAkAl+c4xNbYbUYBWS0D19HKgM3AKM B2lqdlBXooYiPooXEVCbGEeAqQIilBVGxwmx6nIHdxq6Xwwa6V8biBxjm jnZsXkgSuW75Caiok4MiEuhoJUv7Xgu9he6ZisBRNUrJDWnRX6HTghK9B E=; X-IronPort-AV: E=Sophos;i="5.91,198,1647302400"; d="scan'208";a="1012911869" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2c-7d0c7241.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9103.sea19.amazon.com with ESMTP; 04 May 2022 18:48:59 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2c-7d0c7241.us-west-2.amazon.com (Postfix) with ESMTPS id 30E3C41AFE; Wed, 4 May 2022 18:48:59 +0000 (UTC) Received: from EX13D02UWB003.ant.amazon.com (10.43.161.48) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 4 May 2022 18:48:59 +0000 Received: from EX13MTAUWA001.ant.amazon.com (10.43.160.58) by EX13D02UWB003.ant.amazon.com (10.43.161.48) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 4 May 2022 18:48:58 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.160.118) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Wed, 4 May 2022 18:48:58 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 766BD17AC; Wed, 4 May 2022 18:48:57 +0000 (UTC) From: Ali Saidi To: , , , , , CC: , , , , , , , , , , , , , , , Subject: [PATCH v8 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER Date: Wed, 4 May 2022 18:48:47 +0000 Message-ID: <20220504184850.24986-3-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220504184850.24986-1-alisaidi@amazon.com> References: <20220504184850.24986-1-alisaidi@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a flag to the perf mem data struct to signal that a request caused a cache-to-cache transfer of a line from a peer of the requestor and wasn't sourced from a lower cache level. The line being moved from one peer cache to another has latency and performance implications. On Arm64 Neoverse systems the data source can indicate a cache-to-cache transfer but not if the line is dirty or clean, so instead of overloading HITM define a new flag that indicates this type of transfer. Signed-off-by: Ali Saidi Reviewed-by: Leo Yan --- tools/include/uapi/linux/perf_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h index d37629dbad72..7b88bfd097dc 100644 --- a/tools/include/uapi/linux/perf_event.h +++ b/tools/include/uapi/linux/perf_event.h @@ -1310,7 +1310,7 @@ union perf_mem_data_src { #define PERF_MEM_SNOOP_SHIFT 19 #define PERF_MEM_SNOOPX_FWD 0x01 /* forward */ -/* 1 free */ +#define PERF_MEM_SNOOPX_PEER 0x02 /* xfer from peer */ #define PERF_MEM_SNOOPX_SHIFT 38 /* locked instruction */ -- 2.32.0