Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4428581ioa; Wed, 27 Apr 2022 03:46:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+17/ZmhEYQR9jFsxWf6zcOIJvDR4uiJ8b0gsdHI+uF0eN9I6RcA2G1tVP9qmEErVhUiPY X-Received: by 2002:a05:6a00:2148:b0:4fa:92f2:bae3 with SMTP id o8-20020a056a00214800b004fa92f2bae3mr29481283pfk.69.1651056416323; Wed, 27 Apr 2022 03:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651056416; cv=none; d=google.com; s=arc-20160816; b=MzTrSyimM64FOdUhc7GNs8E5/zHFMt5CL8STVUY1UG7bVfH1jGmMGntYlq8gTa/qlL ordWhJiGVT0qAIwMP+UjqCIBsUtEh7uMzoYhcMJ1rvD+z7tW4XhFMSbDJzkgnzBM7/nX LPeTN1uUvmxMMvKq8ZFA8n9VTSADjidt4tvwBvJQIMb2+A9eaVXewsU2tkbkEGwhDlA+ 8IMGXBSWv0W6ekV3V9F8JUs3bcpa0FvjE1pbSeLh+uBl5H8twF1pUrUika3PpeF3O/1J 5vspO25WlHX9Ws1HG32dacBWIfcGlrALTAty/diRslQGaN6+G6jOX1p+/1w6A0/25PPv adgg== 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=VGnoxD5rzACVe+3l6+YuwuvIIlnJnn4xr0sHd4LqIpRFxQqYIfG0i8uRla2w/yNpCM 82AzLJOCfY0ETsOBVV1dtzVI3ezPpClgiVrjD+1QMakOx271zeTkwZC1S2aFpBLGZBE5 J0SH74fgBB0Xm61EpjEkmdp7+tRVNXRzPEq0oIXzPDIx3wxbpJZZjQds8fZYQY/OXPZz bLhJ2JyFJ3NYVEqU984XOACmirQtnXSiqJnfWzzUaiRHrxgoXBwULCWFy6N8LKjzlX6C tUPNSm1//NBCLmjQiwHPCgHTju5kFuckKfknJeDi/aezc+oLVIlIB6JTjLXkRdl6oXZ/ Pm6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IlLlD5D2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y15-20020a056a00190f00b0050d26055211si1182669pfi.154.2022.04.27.03.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:46:56 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=IlLlD5D2; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B032C86ACF; Wed, 27 Apr 2022 02:59:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351345AbiDZODF (ORCPT + 99 others); Tue, 26 Apr 2022 10:03:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351323AbiDZODC (ORCPT ); Tue, 26 Apr 2022 10:03:02 -0400 Received: from smtp-fw-2101.amazon.com (smtp-fw-2101.amazon.com [72.21.196.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BCAD1906A4; Tue, 26 Apr 2022 06:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1650981595; x=1682517595; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=g7YWa84Ggc9PbBc2yEEwZ6f7hUrSoU1ylmKnDzAKmLc=; b=IlLlD5D2LcOFJm5d3IPKQcxs7zgwIxbnWkG+rse82zgbwH5qLlEEGfy0 xrCkZ95LLvEfntZPnqjy2IdGa1VEjUcq1bi1p4y8DSVsdV5kC1S9/8wzH w8C7pgUX9K5x576kXip5LrRdcfyVuWb0l7fFntGZ/MC608YbxCB+sHaDg M=; X-IronPort-AV: E=Sophos;i="5.90,291,1643673600"; d="scan'208";a="193119156" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-2101.iad2.amazon.com with ESMTP; 26 Apr 2022 13:59:53 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-10222bbc.us-east-1.amazon.com (Postfix) with ESMTPS id 664101A0008; Tue, 26 Apr 2022 13:59:47 +0000 (UTC) Received: from EX13D02UWB002.ant.amazon.com (10.43.161.160) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 26 Apr 2022 13:59:46 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX13D02UWB002.ant.amazon.com (10.43.161.160) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 26 Apr 2022 13:59:46 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Tue, 26 Apr 2022 13:59:46 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 4E9A920EC; Tue, 26 Apr 2022 13:59:45 +0000 (UTC) From: Ali Saidi To: , , , , , CC: , , , , , , , , , , , , , , , Subject: [PATCH v7 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER Date: Tue, 26 Apr 2022 13:59:34 +0000 Message-ID: <20220426135937.18497-3-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220426135937.18497-1-alisaidi@amazon.com> References: <20220426135937.18497-1-alisaidi@amazon.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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