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 5682DC433F5 for ; Tue, 14 Dec 2021 14:04:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234713AbhLNOEx (ORCPT ); Tue, 14 Dec 2021 09:04:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234660AbhLNOEv (ORCPT ); Tue, 14 Dec 2021 09:04:51 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 841AAC061574; Tue, 14 Dec 2021 06:04:51 -0800 (PST) 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 246BC6150E; Tue, 14 Dec 2021 14:04:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22F62C34606; Tue, 14 Dec 2021 14:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639490690; bh=jD+hAXEJnh6UeOGOrFz3TYzQsO4CU3xfpx+9AcTlJko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JgPmF9hoseYABsDDYgAWN9QkYz0X27zT34P/gMG2Zxn3fADxaJ9XLgvdMchmHY2c1 kft8UacTk/5/vwUvYOxKfqy1pedpJjxXEcnV7/gQOEtx6lJHIH1nG7m8LQt8y1dv6G AtsNDmaGNM01F/NMjOFZa1zU5m3t07Z+DPmVnl2OfGc/UNHPrY3hYJejYZZUgfV+3h Lf2WKP4q+Nz/meKfuNFY1jSvzH2ig+E+lG0P59W/xLvaVAsJ4gKxSYRWtKfm3SbhEu DEp7QbLDoApzEhS8JljTI/2x0Ci6/WbGdBikF1ekXLSA9ZgxsT5ZmCBdLAkS6oOAvw fuVKS853ANugQ== From: Will Deacon To: Mark Rutland , Rob Herring , Peter Zijlstra Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Borislav Petkov , Vince Weaver , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Jonathan Corbet , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, Namhyung Kim , Jiri Olsa , Alexander Shishkin , linux-perf-users@vger.kernel.org Subject: Re: [PATCH v13 0/5] arm64 userspace counter support Date: Tue, 14 Dec 2021 14:04:35 +0000 Message-Id: <163948145564.2060329.17036263207999776606.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211208201124.310740-1-robh@kernel.org> References: <20211208201124.310740-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 8 Dec 2021 14:11:19 -0600, Rob Herring wrote: > Another version of arm64 userspace counter access support. No changes from > the last version except rebasing and rewriting a commit message. > > The arm64 support departs from the x86 implementation by requiring the user > to explicitly request user access (via attr.config1) and only enables access > for task bound events. Since usage is explicitly requested, access is > enabled at perf_event_open() rather than on mmap() as that greatly > simplifies the implementation. Rather than trying to lock down the access > as the x86 implementation has been doing, we can start with only a limited > use case enabled and later expand it if needed. > > [...] Applied to will (for-next/perf-user-counter-access), thanks! [1/5] x86: perf: Move RDPMC event flag to a common definition https://git.kernel.org/arm64/c/369461ce8fb6 [2/5] perf: Add a counter for number of user access events in context https://git.kernel.org/arm64/c/82ff0c022d19 [3/5] arm64: perf: Add userspace counter access disable switch https://git.kernel.org/arm64/c/e2012600810c [4/5] arm64: perf: Enable PMU counter userspace access for perf event https://git.kernel.org/arm64/c/83a7a4d643d3 [5/5] Documentation: arm64: Document PMU counters access from userspace https://git.kernel.org/arm64/c/aa1005d15d2a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id A2AF4C433EF for ; Tue, 14 Dec 2021 14:06:43 +0000 (UTC) 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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=MNgJSM53axJskPPISwoto2MwFB+Dtw+ethkRZym+qzM=; b=MSX/bRFW7dwWVh 7UsVp8zzO1hQRrUHbYlbcPdQb9M0HPYy+TQFCB08Qn7U9LcF6crYUPXRfDCxaiJE52yB6FpBynyI7 MGpfguf028IbDvEQpdPkLsWFEui6tSAspQ0kjN/raWrDPYmMFVeZy38Nw5YRKgsgiN3rvP7p2MBM0 mQSlBbv+0BMM4a6TY/Fr4PEHzexKLyYmjT7jHUznDXJ35zXzqASirQQ9aRSo1VfsSg2tE5g/tm6k6 kGxDFcT/LA1d05RWnxK218nuGBbt2iO1+TtYm3a5JtYGTiJfSdZmkrE5bRFK0Zf3HgZgSEc4LAoTC mivVHHxnyCfI/xeGQoOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx8Qq-00EGhK-9C; Tue, 14 Dec 2021 14:05:28 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mx8QF-00EGXz-P1 for linux-arm-kernel@lists.infradead.org; Tue, 14 Dec 2021 14:04:53 +0000 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 55C6561512; Tue, 14 Dec 2021 14:04:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22F62C34606; Tue, 14 Dec 2021 14:04:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1639490690; bh=jD+hAXEJnh6UeOGOrFz3TYzQsO4CU3xfpx+9AcTlJko=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JgPmF9hoseYABsDDYgAWN9QkYz0X27zT34P/gMG2Zxn3fADxaJ9XLgvdMchmHY2c1 kft8UacTk/5/vwUvYOxKfqy1pedpJjxXEcnV7/gQOEtx6lJHIH1nG7m8LQt8y1dv6G AtsNDmaGNM01F/NMjOFZa1zU5m3t07Z+DPmVnl2OfGc/UNHPrY3hYJejYZZUgfV+3h Lf2WKP4q+Nz/meKfuNFY1jSvzH2ig+E+lG0P59W/xLvaVAsJ4gKxSYRWtKfm3SbhEu DEp7QbLDoApzEhS8JljTI/2x0Ci6/WbGdBikF1ekXLSA9ZgxsT5ZmCBdLAkS6oOAvw fuVKS853ANugQ== From: Will Deacon To: Mark Rutland , Rob Herring , Peter Zijlstra Cc: catalin.marinas@arm.com, kernel-team@android.com, Will Deacon , Borislav Petkov , Vince Weaver , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Jonathan Corbet , x86@kernel.org, "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, Namhyung Kim , Jiri Olsa , Alexander Shishkin , linux-perf-users@vger.kernel.org Subject: Re: [PATCH v13 0/5] arm64 userspace counter support Date: Tue, 14 Dec 2021 14:04:35 +0000 Message-Id: <163948145564.2060329.17036263207999776606.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211208201124.310740-1-robh@kernel.org> References: <20211208201124.310740-1-robh@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211214_060451_892413_D0F846B9 X-CRM114-Status: GOOD ( 15.74 ) 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, 8 Dec 2021 14:11:19 -0600, Rob Herring wrote: > Another version of arm64 userspace counter access support. No changes from > the last version except rebasing and rewriting a commit message. > > The arm64 support departs from the x86 implementation by requiring the user > to explicitly request user access (via attr.config1) and only enables access > for task bound events. Since usage is explicitly requested, access is > enabled at perf_event_open() rather than on mmap() as that greatly > simplifies the implementation. Rather than trying to lock down the access > as the x86 implementation has been doing, we can start with only a limited > use case enabled and later expand it if needed. > > [...] Applied to will (for-next/perf-user-counter-access), thanks! [1/5] x86: perf: Move RDPMC event flag to a common definition https://git.kernel.org/arm64/c/369461ce8fb6 [2/5] perf: Add a counter for number of user access events in context https://git.kernel.org/arm64/c/82ff0c022d19 [3/5] arm64: perf: Add userspace counter access disable switch https://git.kernel.org/arm64/c/e2012600810c [4/5] arm64: perf: Enable PMU counter userspace access for perf event https://git.kernel.org/arm64/c/83a7a4d643d3 [5/5] Documentation: arm64: Document PMU counters access from userspace https://git.kernel.org/arm64/c/aa1005d15d2a Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel