Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3716783iog; Tue, 28 Jun 2022 00:50:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t/En5sURTRRc1+oZKsdiIKrDL1TcpCN71Pk9jDXZXcjhLMmf1p7dwKdymfvjspuka1JGNX X-Received: by 2002:a05:6402:1741:b0:433:4e4d:bfb4 with SMTP id v1-20020a056402174100b004334e4dbfb4mr21314022edx.7.1656402617665; Tue, 28 Jun 2022 00:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656402617; cv=none; d=google.com; s=arc-20160816; b=ZGWeYO3w1+YmJRtv6mhmciCchlk/CVfzyJ3MVs7vWGRFlf3MN+ilp1jkw2IQboImMV 8Sr8FFX11LzpgpTPtUDY4CvCn7RWiCeef+VhWzAvRTU5+mR6jHnCQjWUkDMvXPlND8IO BaoFz0sByWPQTLxkhQomPyu8B0x90ykjrivNIOnG+Qd9ImcVVOAV66Kl/8XWmk20fGu+ 7U8NydhkHa6nRF1AV1qFKUMuRhCy0u2ldMppOXXYwVTYgTL5Rs4+7e4a81hhlwEli1RJ 0T0wWzx6nxmOCph62ISX5eT+6Em8durs2xA+/19FLfzqVxDKYKGnVyfoBl2uIexM70Nx R3wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=fc2I9WiJcW44uLLEYdBOAtvQ8einpph1fRB/sTcjcZI=; b=Cqz/HJXdBjUJq8XNnsmxH0hUd8ezCQuhmnvBCATq+QV7X5mBPoP6cbd/IcJ9eFh1la seWD6WHnDy2nSGhkumwtOxIZqwVFsW/YdhloiHT8YcoDnv7MF43uXekuEEY6VgMXeRp0 VdgaDM+h3OIVpTRE8TTf9PyICO0P6MniluvZCc5e+iheydf8I/+lQPlDWTzGEMLqyk80 GiH6GlxuGG4zfvLw5CO7g+vmhVT2ldR7VG3xJh5luY0lQYnalaghs3jvxnSvaqGaSaCH R0jQaFDNqnMZcx8xhzek57qYnyZ20LkRpaqNwUrKNttTzuABEprX05VYGySjEH+U6Rs5 zRwA== 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 v17-20020a50f091000000b00435b21ec9f7si3527555edl.409.2022.06.28.00.49.52; Tue, 28 Jun 2022 00:50:17 -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 S242721AbiF1HkP (ORCPT + 99 others); Tue, 28 Jun 2022 03:40:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229896AbiF1HkO (ORCPT ); Tue, 28 Jun 2022 03:40:14 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B3B802A413; Tue, 28 Jun 2022 00:40:11 -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 73B0D152B; Tue, 28 Jun 2022 00:40:11 -0700 (PDT) Received: from [10.162.42.7] (unknown [10.162.42.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C95CD3F66F; Tue, 28 Jun 2022 00:40:07 -0700 (PDT) Message-ID: <967c0a4f-c864-21ec-33f1-5e3943a42409@arm.com> Date: Tue, 28 Jun 2022 13:10:05 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 0/8] arm64/perf: Enable branch stack sampling Content-Language: en-US To: Will Deacon Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, peterz@infradead.org, acme@kernel.org, mark.rutland@arm.com, Catalin Marinas , James Clark , Rob Herring , Marc Zyngier , Ingo Molnar , linux-perf-users@vger.kernel.org References: <20220613100119.684673-1-anshuman.khandual@arm.com> <20220627110105.GF22095@willie-the-truck> From: Anshuman Khandual In-Reply-To: <20220627110105.GF22095@willie-the-truck> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,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 6/27/22 16:31, Will Deacon wrote: > On Mon, Jun 13, 2022 at 03:31:11PM +0530, Anshuman Khandual wrote: >> This series enables perf branch stack sampling support on arm64 platform >> via a new arch feature called Branch Record Buffer Extension (BRBE). All >> relevant register definitions could be accessed here. >> >> https://developer.arm.com/documentation/ddi0601/2021-12/AArch64-Registers >> >> This series applies on v5.19-rc2 after the BRBE related perf ABI changes series >> (V6) that was posted earlier. >> >> https://lore.kernel.org/linux-arm-kernel/20220610035101.424112-1-anshuman.khandual@arm.com/ >> >> Following issues remain inconclusive >> >> - Jame's concerns regarding permission inadequacy related to perfmon_capable() >> - Jame's concerns regarding using perf_event_paranoid along with perfmon_capable() > > afaict, the capability stuff remains unresolved with the SPE driver, so I'd > really like to see it fixed there first before we add more broken drivers. > > https://lore.kernel.org/r/20220118100702.GB16547@willie-the-truck Hello Will, I did go through the above mentioned thread, but could not understand (clear enough) - what needs to be done. Could you please help summerize the problem and possible solutions which I can start looking into. Thank you. - Anshuman