Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2202162pxb; Tue, 12 Oct 2021 01:22:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIkCGhtAREEtnUuKcmKQRQEO+vKKmEs4q02ye+Pg9u8JBW0Xux/+RujO57O+iB+RYirnk7 X-Received: by 2002:a50:d8c2:: with SMTP id y2mr47956066edj.360.1634026930543; Tue, 12 Oct 2021 01:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634026930; cv=none; d=google.com; s=arc-20160816; b=mZNg4J3SnyWSOoRE0ELt/0UEWxTHDWh1GamT2kXHMzj6Or5jHaLWYHuTYjoCbbRsTN NgLar7oogmLO5jbYh0COQdtW/DanXOTA9lAcLIRcw3Yewux09gxytTMfZAaFta1MlYyu jZsT2nzxYRsFIg6xJtwaqY/yV6qUNt3SnjVUlCn9be+/ko2VSRVxDcovtybnanJeXiJa 3gpKmJAhgrrVuDWI/vmTDNq8nK7HfQcvR3kiWtXCrYyaElVRtIEHr46GT9NEg5lgvo9D HRrzyH4Qq5UMFmoxldrEr52JfxyXZ09APuofzU+WgtuJcDpoJIZCxKVqvbgzMH+m+sCS Ra5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Swx7wxenvZEVYIqTg/QltB0s5qb+Fl36Sv6yjgR3yek=; b=NM5mbobF89eUchV2wPtV3N780zPitZ0ZH83NDilQ2HPbG0d5oyrF4lx4p6ZVl86wLM SVFv/Y7IF1uA1bGvSC2Mzu4mtpVSTlQYUIA4g/UtpblS/xhjvbh/H3SggXo+zsb5T9xK Hz9bT9ubeQZqSh38wDuRhc+F/nzyXoS2zarwnoNIc0VJB2xB/8RlMVEypMKLk2MEIe2e Aa6wswMMSicQMc+54SPSaPSmabHFxNRJ2KLTbejvdYvY+FC053FGKuv1KiTLuKuKdjTV pLYSNsi0ZgLH2YC/jImYAjjMRwlQT1hNyGSRNItsdgJmXsUkDOHNDKy2IN/E+hRpOJbg 9Djw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EbhrCQT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kq16si14342217ejb.521.2021.10.12.01.21.47; Tue, 12 Oct 2021 01:22:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EbhrCQT6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234549AbhJLIWA (ORCPT + 99 others); Tue, 12 Oct 2021 04:22:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:52084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232541AbhJLIVz (ORCPT ); Tue, 12 Oct 2021 04:21:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5C27A6101D; Tue, 12 Oct 2021 08:19:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634026794; bh=lDPufYSiKyvGGDrYONfULzGOTQL591ZiKQDt8MPRrw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EbhrCQT6mNhvQPiAFl8cNGZj7me7jYjv8/NCbzUy/aKo5RfWSXhn4M4I78GlMhNRN pruhFBcjfGZcQkqF+4MPON1fwgpXBNmSoDzYF/fF4/0mYUDH3g6ZXPuATahOpCcOgq +q0S6w9teF4Kw+i2PtOTccVI0E/N4LIvGostQHdf+3j1mApKvEZyDRr7DlVJHOTpCE nx5qm85PGJTFzlTIBreR9gDbjD/K+a/s0oVk3UIkQOQh6bgoQImCGJ4ckusQxKlJ/D eAqfvgiMXVFt82AgIP8Y/awQPdli5FYtnaEAdAkxd4wg6pPT4RTUZVzqLF0EI5mlCy rDeHnI04DOUdw== Date: Tue, 12 Oct 2021 09:19:48 +0100 From: Will Deacon To: German Gomez Cc: Leo Yan , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, John Garry , Mathieu Poirier , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Mike Leach , linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, James Clark Subject: Re: [PATCH 4/5] perf arm-spe: Implement find_snapshot callback Message-ID: <20211012081948.GA5156@willie-the-truck> References: <20210916154635.1525-1-german.gomez@arm.com> <20210916154635.1525-4-german.gomez@arm.com> <20210923135016.GG400258@leoy-ThinkPad-X240s> <20210923144048.GB603008@leoy-ThinkPad-X240s> <1c6a3a73-27dc-6673-7fe7-34bc7fcb0a68@arm.com> <20211004122724.GC174271@leoy-ThinkPad-X240s> <6b092f13-832f-5d1d-a504-aea96c81bf17@arm.com> <20211006095124.GC14400@leoy-ThinkPad-X240s> <377b54ef-b9c0-9cfc-ef0c-0187d7c493cc@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <377b54ef-b9c0-9cfc-ef0c-0187d7c493cc@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 11, 2021 at 04:55:37PM +0100, German Gomez wrote: > Hi Leo, > > On 06/10/2021 10:51, Leo Yan wrote: > > On Wed, Oct 06, 2021 at 10:35:20AM +0100, German Gomez wrote: > > > > [...] > > > >>> So simply say, I think the head pointer monotonically increasing is > >>> the right thing to do in Arm SPE driver. > >> I will talk to James about how we can proceed on this. > > Thanks! > > I took this offline with James and, though it looks possible to patch > the SPE driver to have a monotonically increasing head pointer in order > to simplify the handling in the perf tool, it could be a breaking change > for users of the perf_event_open syscall that currently rely on the way > it works now. > > An alternative way we considered to simplify the patch is to change the > logic inside the find_snapshot callback so that it records the entire > contents of the aux buffer every time. > > What do you think? What does intel-pt do? Will