From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC5F8C433EF for ; Tue, 10 May 2022 16:29:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244311AbiEJQdX (ORCPT ); Tue, 10 May 2022 12:33:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347432AbiEJQdU (ORCPT ); Tue, 10 May 2022 12:33:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61F322A3BDF; Tue, 10 May 2022 09:28:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EFCF0617C5; Tue, 10 May 2022 16:28:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D3D5C385A6; Tue, 10 May 2022 16:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652200120; bh=hxcdzfKkDLB5odNeZaFjLWqGqbaPzGqoWYKSEwGhhXI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lg38lYOdAdX1XlvgihDfPkR/m2cUdaQLY7GAaobb/XeEyQe1tL8ecIYS3EbAAmeyF +mWShc2K6lilVCko/8w1q6cjmOiJ5f+UrLrfTC2LVc3tuqgeLDFubLPSkzLSPW0Y7y Kvgqj4CNqM6tx0rQWe46uPnaVxmGu4afgGFzBOF51AIPCLKDydsKYeFqKkMVMmuyuC KsEUpEXqU3bnqwgmNyxRDg3dT1dBsStDlGz1D/yvuQ+6pz0KVfTN+LVAkHnksOpDiM J8vzeZNRp9UJfCogrTpIB2SdmklKDFB58Z7RPZFynX8/3BHVapRpnqXLel2jpqA3Wx rscwEZQkNt+Wg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1B7C6400B1; Tue, 10 May 2022 13:28:38 -0300 (-03) Date: Tue, 10 May 2022 13:28:38 -0300 From: Arnaldo Carvalho de Melo To: Ali Saidi Cc: 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, 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 Subject: Re: [PATCH v8 2/5] perf tools: sync addition of PERF_MEM_SNOOPX_PEER Message-ID: References: <20220504184850.24986-1-alisaidi@amazon.com> <20220504184850.24986-3-alisaidi@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220504184850.24986-3-alisaidi@amazon.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@vger.kernel.org Em Wed, May 04, 2022 at 06:48:47PM +0000, Ali Saidi escreveu: > 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 Was this already merged on the ARM kernel tree? - Arnaldo > --- > 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 -- - Arnaldo