Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp824670pxr; Mon, 11 Apr 2022 08:07:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUw/bWtZwJmFONYnrb4TA3Ed99Vxeay46T4QH+bj9Jl7uwFkoJChxmNmfQJi8GhJ6hBCjm X-Received: by 2002:a17:906:730c:b0:6e6:c512:49c8 with SMTP id di12-20020a170906730c00b006e6c51249c8mr30583598ejc.405.1649689655152; Mon, 11 Apr 2022 08:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649689655; cv=none; d=google.com; s=arc-20160816; b=RHAmvTh75+j1TLCas2HiECMNwdqo9oqHEA+6l5U2Gd0aY1gnksd9h8msG1hBJBByyC M/DCBCT2+yarbYfulOv8FX7xPCybhiqW0xQ8u/dP/dY2vofpoWYuEc5BJy4c5f/qKw5K m/mfWsE87YGKiYZMlbsvahozz9vB5cdG02B7aTIlDyIYDAHqaCcO0Z3OJ7L3KoXFrokV VTDIaHH/M665T6ckgYyRyAzEHOSy/zXkA+ZjYtr26utzSiDjPz1bzidDuij5w90u20DX DW3owdcRsbcV7RHo01xTfo+/8fIhzuDLHhvDV9wHVQNoFGvGxPm9ML5Ac3dYlF0MO930 KVsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=/A3XfYpDWNcoo8FB4oWCsW10zZB9prydpoqqV9I+mNA=; b=KOWKLVKmq5hiewodS2oSkIMWScstuilnJzfkZ1BSTupseJtKusiw3QmYneRELOIGRR MA2VwkG++9GhrD8ANd9jHerb46Jy8mXoNXa0zEZZUs6H7GUrS7byO0ULUQIGG2NOV5s8 KHPPK6vHr1+CjXkGAlgjV82cKsX4ZbQiyNw3A3xuh290HcdtH7n6y1Q2g2CUd78POKVT wqXDVCJBICWDwCGF4rTtvEfAwDj0XtBoBdpqv+s3hXGVxjMZ9J3NWlkckNMATmsvSgYM OV9qOCS4oz1bBhbgd55J+thrr64xSZYjUVpApGCln70sqiteyQQnkP4bYHJ1zh0CmH95 XIAg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf23-20020a1709077f1700b006e0a9ef7a80si7839920ejc.793.2022.04.11.08.07.08; Mon, 11 Apr 2022 08:07:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231203AbiDKK3H (ORCPT + 99 others); Mon, 11 Apr 2022 06:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240659AbiDKK26 (ORCPT ); Mon, 11 Apr 2022 06:28:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AFFD22CCB0; Mon, 11 Apr 2022 03:26:44 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6CCF2169C; Mon, 11 Apr 2022 03:26:44 -0700 (PDT) Received: from [10.1.30.132] (e127744.cambridge.arm.com [10.1.30.132]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B34E3F5A1; Mon, 11 Apr 2022 03:26:40 -0700 (PDT) Subject: Re: [PATCH v5 3/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER To: Ali Saidi , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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, kjain@linux.ibm.com, lihuafei1@huawei.com, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org References: <20220408195344.32764-1-alisaidi@amazon.com> <20220408195344.32764-4-alisaidi@amazon.com> From: German Gomez Message-ID: <39448754-adf5-f1ba-25e7-8ee3d76f0159@arm.com> Date: Mon, 11 Apr 2022 11:26:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <20220408195344.32764-4-alisaidi@amazon.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,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 08/04/2022 20:53, 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. I think it's fine to merge this and the previous commit rather than have two commits with the same msg. > > Signed-off-by: Ali Saidi > --- > 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 82858b697c05..c9e58c79f3e5 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -1308,7 +1308,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 */