Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6671396iob; Wed, 11 May 2022 02:48:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgpNxNPZPNYOgcNdfzZ4/GFkAbY/uKzoIwr7dphYXyJLGDqem5AZ6F7cBtTF+6M3w8SLfy X-Received: by 2002:a05:6a00:22c6:b0:510:3c78:638d with SMTP id f6-20020a056a0022c600b005103c78638dmr24543511pfj.54.1652262518758; Wed, 11 May 2022 02:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262518; cv=none; d=google.com; s=arc-20160816; b=S8PR/MMMQPGH91LwljzItuR91r3eASrR/oZeJLpsnnPeGd1ECEhZcbhFkkRQ0jXMu0 moKLCB0jb4sSs/ixtaVSh05stquiUjJB2ZHXofSQAczqOkslaml33QLGtwexJ69HHJKI nESbpmb2+7AAepiiyWT+EwOFMs6LhEfX2I8ByDCSx1XLJ9EZybONRLkn4gyHvTo4A4P9 DVb2+jcXd/ZnObb4PREjJobwPsyNjxGv49z8VWXDr2lUfDHKy0LSKbJAH0v0svMyP2YK U6oc1AtBG7jxXlIEuP/9tZWi4ah10911WP8u5VOU0m50CUxnDsSOBXcJ2hlMGgXm9Mjs ZVug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IZihMvTZxLEvEn/T42ljcSuxs433WB3J2v0ydnxX9FI=; b=WNWeRF8EYMTmWCXhMUGU9fD0iFFyOiohY/Nh4ofVgD/RBJBRyxaBVNPBvle8Z344P7 P2nAy4/TMFvzl46sQXickcKOw3Rh19ZM6ugoheWyLYzfSszQaEaeJ/Q46uRCUokEPjSH 9w88wvt6nssNIN5I3Pil/NMb/EBUJJRjZVP/mgmLemxk113DCEsntjQJn0F1msonu0x1 WNGU/b6BVek/Ru997rh1Hzkp6p6RPI0jlodCsV+wSnWXSoHtf6ga8SuBtIUhlXslJhRB RU+zhvIgB/83TB6AYPINF1QX9lMWyMc7y0Po40newrTn0o+3a8OrcI4KXGBvyjuh5iKM GvMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=XlqSsN52; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a056a00228e00b0050e128eef5csi2126555pfe.154.2022.05.11.02.48.24; Wed, 11 May 2022 02:48:38 -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=@ibm.com header.s=pp1 header.b=XlqSsN52; 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=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241988AbiEKFnN (ORCPT + 99 others); Wed, 11 May 2022 01:43:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242006AbiEKFnG (ORCPT ); Wed, 11 May 2022 01:43:06 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8539F244F30; Tue, 10 May 2022 22:43:05 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24B5JCv6014860; Wed, 11 May 2022 05:42:44 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=IZihMvTZxLEvEn/T42ljcSuxs433WB3J2v0ydnxX9FI=; b=XlqSsN52VPE9AQVymdYv4/VGSx8+n2oQRFgcaqgJSpaKN9iyVGwT8N3maO2nHxfKhDAr 0MROew8CJfck2SOnALzZPQL5z0YzqLl8++EQzvQ80HVJT4DHXd/lua1Q1bptygneh51x gde0SB99LHu2kHF2kX1IcyAdtzFzbLnupXwtUzRgh3QsDdg75Dz7B2SHIQNJ41DwChPN 5OiT7EIIs0eEUSQypY539Y1Tz952JHzG0ag08GA18+IoPIgK88U/fb4t7B73quA1SOD4 OVjy6dJP5q1TImrKUVtcR6yKEk1pOohs380LOg/f/vj1gUNCoWIA/IXD/W2PE9Bk2SG+ Ow== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g06w3rb01-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:44 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24B5KhtC019439; Wed, 11 May 2022 05:42:43 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g06w3rayj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:43 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24B5XYg8018231; Wed, 11 May 2022 05:42:41 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma01fra.de.ibm.com with ESMTP id 3fwgd8kuj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 05:42:41 +0000 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24B5gKPP33423862 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 05:42:20 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1AA3F4C044; Wed, 11 May 2022 05:42:39 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9FE2E4C040; Wed, 11 May 2022 05:42:32 +0000 (GMT) Received: from [9.43.104.77] (unknown [9.43.104.77]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 11 May 2022 05:42:32 +0000 (GMT) Message-ID: Date: Wed, 11 May 2022 11:12:30 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v8 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER Content-Language: en-US To: Ali Saidi , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, german.gomez@arm.com, leo.yan@linaro.org, acme@kernel.org Cc: benh@kernel.crashing.org, Nick.Forrington@arm.com, alexander.shishkin@linux.intel.com, andrew.kilroy@arm.com, james.clark@arm.com, john.garry@huawei.com, jolsa@kernel.org, lihuafei1@huawei.com, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org References: <20220504184850.24986-1-alisaidi@amazon.com> <20220504184850.24986-3-alisaidi@amazon.com> From: kajoljain In-Reply-To: <20220504184850.24986-3-alisaidi@amazon.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: _9mkWQ9OzGZ0jaqtLz89LX6uvyRAVDyR X-Proofpoint-GUID: qHlb0WGRz-hGJEzR43LJmjs0udLtB7qA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-11_01,2022-05-10_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 suspectscore=0 impostorscore=0 mlxscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 adultscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205110025 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 5/5/22 00:18, Ali Saidi wrote: > 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 */ Patch looks good to me. Reviewed-By: Kajol Jain Thanks, Kajol Jain