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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 554A5C433F5 for ; Wed, 6 Oct 2021 09:54:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1E97261058 for ; Wed, 6 Oct 2021 09:54:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1E97261058 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MIE9aaV8eS8ax/JHw/3N7RQv2k6wWFS8kuVq7Cg/8bg=; b=4ao7zk1+jUWvCH TfJnjgggDzWcUnedCu5sev0nrx8GcfuSyigDUUOi0V5K77KBxUAX8XJGKR5gjgpYcPPTcmM9sh16S vZ3C+zuDKIOAfsSlinkKvxp5f5kNY4LHkbeEa9JwUTCDVWXRQwqYOOx8VfpxKcJI4FTP494kXZwSG suHL7/SKSL3C8tEzTzez5LefsuZDBqEL4x9HGvnbc9SXp+gmj0a1KH0EjpdQ0kM4clsp4lE91kqyq 3cH8ryng6XAmxg1roFTBCKOq3vBr81Agu5DBoUH8IAwLIjnFmJfH1qhhJwYuUuICf0gzioHCqzZ6q NRbtgg2Mqp8ORFGyGdoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mY3bz-00DiDj-Jf; Wed, 06 Oct 2021 09:53:20 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mY3aF-00Dgt4-Vl for linux-arm-kernel@lists.infradead.org; Wed, 06 Oct 2021 09:51:33 +0000 Received: by mail-pf1-x42e.google.com with SMTP id k26so1893945pfi.5 for ; Wed, 06 Oct 2021 02:51:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xY1wsjX3U9J+vby4z0tgc9K9/jXmFxDsS0cLl5E86uY=; b=ANb47Ig3qYsLdrRAHPmoVR7LSbJ5LeLfmpO6W2110v5rUWkXmo+MW53cdnzNPyLkQx 7vexeBQlLHwD3vmxquJZCVwpkcICKDhUSHNNbblbTdeLhZcZg1GWTTo+JAEPVPCtfyD+ pXq+tRjitdrJpnVDboG9Y4NcHSBwXYLKm03/RkFoEKkuEb/220+HpkR5RnJzeEg351FS aezW3H7otz3MwMh20B6I0y3wZd9t+F4fzbWe74yMNMUKDLUXFtPHAr33GM+YoF1XMErx 4eYKcARMFcwIPYKMYTz6jvtO7zmgbktB2JGKX/wbekbfGmyQwNIq167TiLYIZuCt42Sc GdYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xY1wsjX3U9J+vby4z0tgc9K9/jXmFxDsS0cLl5E86uY=; b=wm9Y6VK+bxIPQKm6U+zdH/dYWaoC4uahTeIAqgM6cIC4KbleMY80xOIXQj4yQy1LJE 9jX1hXlbJXJKShMhZfe9M6SJXVhD6Kxz3nJX3ZeZIzRjTtGvShuMnHBl9Q558pNzB5C/ TYbcp9jANyw7iet6lKkxeUrcFFRYvpEG4SWcD3mKRGNDaNj3G8TnxEZL7J+z6G0qJb1x DOfWq7zK3WJBPlZ+mFO9IW5s+H8wabjHLVTFxTFPumv07X5Fpdtegq37aw5k+Ekw1Dze 9CyF3fR5hQWIr20pohVvZDoumWX6Nf7T51DuqXH3TOzmBT7LPUyTN2q/3RoLkB7wbyRN wFLQ== X-Gm-Message-State: AOAM5335tVtHQ4xq8XEG0LRC+Lw6pnwYRpI+PGSyQ+y53qsBrYp3Li47 ERBdOk9Ort/RTIlYVbCquGOb8A== X-Google-Smtp-Source: ABdhPJyGC3VxxHFgXMt8iQ5UX29PMW144cZFgpYFwARgshb7Sw0gJxoVOb8zQ4xK6RRx+3NI55Eqsg== X-Received: by 2002:a65:6107:: with SMTP id z7mr19756459pgu.43.1633513890524; Wed, 06 Oct 2021 02:51:30 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([204.124.181.210]) by smtp.gmail.com with ESMTPSA id t3sm20529834pgo.51.2021.10.06.02.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Oct 2021 02:51:30 -0700 (PDT) Date: Wed, 6 Oct 2021 17:51:24 +0800 From: Leo Yan To: German Gomez Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, John Garry , Will Deacon , Mathieu Poirier , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Mike Leach , linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org Subject: Re: [PATCH 4/5] perf arm-spe: Implement find_snapshot callback Message-ID: <20211006095124.GC14400@leoy-ThinkPad-X240s> 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <6b092f13-832f-5d1d-a504-aea96c81bf17@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211006_025132_054460_375987E5 X-CRM114-Status: GOOD ( 16.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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! > >> (note that the patch will skip the wrap-around detection if this is the > >> case, > >> in order to handle both cases in the userspace perf tool). > > Almost agree, I read multiple times but have no idea what's the > > "both cases" in the last sentence. > > Apologies for the later part was not clear. What I meant to say was that > in the original patch for cs-etm, it seemed to handle both cases where > AUX head might be monotonically and non-monotonically increasing, so we > applied the same for the Arm SPE patch. No worries, thanks for explanation. Leo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel