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 954C9C7EE24 for ; Mon, 5 Jun 2023 09:28:00 +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: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=G8uTrp2YRvGiSDfw08otJ6vQP8YyD0LTL4pIDKZsNLs=; b=R5496d/iFcbbcA tIqZgQBr34Jt24qUEw8RBOXfS/70kcckWDLCvYYLfctOtrLdSsYDum67iPY3Fwi0AjBfrIJ79lSn8 RYlWvMguUT9+BEaayWvbzutlzTW+7gCLwGepqEzVpsc3h86PfUc+hRS/I0QPi5V/U2wWDfpK4ta+4 VdVNHv1oDKNy6U7RC9NyTWoEhhu2C+ZZvfVUO73rZSaqiD2sGnOtE+EhDH1I6T6YWkNzEjFGMflPX u3cuYp/BKqv7aWNeigTZOycyajjNh3ez5UAzNGag4GM+T58LK9OK4P3R3QJH+pMaaY2XfN5eufvtl mUgg9W/EvTYhgKBjNmDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q66V1-00ErB9-1O; Mon, 05 Jun 2023 09:27:39 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q66V0-00ErAm-1p for linux-arm-kernel@bombadil.infradead.org; Mon, 05 Jun 2023 09:27:38 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=edEp8QIKfJn6F2bGmfqREfiBWe5wjWDfn3SnYuov1ho=; b=hMGo4madH9axx65nVtWK4w0Exz 8RjTQuQmbuIc8CFPSu67CV8SL0uunWprHX4tPhUVj6K7FnEP5mcbF5W/xePTpdJef/Qf++CWa4vBv zo78SG5FslcPNSXzLwr8S56hXxj2ZVWolmYrPdb/xcCzB7GHBec3mb3qjLuqlB9Z4hbO2LjwR1SbM +W9Wl/MKylYHydp3M25TABQ6m5l8lMXbZfbR9egG2ra6obM9oY58xj9/HiGVH3IMQ9I8We+vEv10z olYpbbpuaOTruBWXF8+dQk+wGMHJ1UAr3wkgexjsB3h+NBqtMPFB8utd2fzUe+QN61ozvf0FH541h 0Zs5d1wA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1q66Uv-00BsA1-Nt; Mon, 05 Jun 2023 09:27:33 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id B7230300274; Mon, 5 Jun 2023 11:27:31 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 85CF8243CC1CF; Mon, 5 Jun 2023 11:27:31 +0200 (CEST) Date: Mon, 5 Jun 2023 11:27:31 +0200 From: Peter Zijlstra To: Mark Rutland Cc: Krzysztof Kozlowski , Ravi Bangoria , jolsa@kernel.org, irogers@google.com, bp@alien8.de, adrian.hunter@intel.com, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, "linux-samsung-soc@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "regressions@lists.linux.dev" Subject: Re: [REGRESSION][BISECT] perf/core: Remove pmu linear searching code Message-ID: <20230605092731.GZ4253@hirez.programming.kicks-ass.net> References: <3abd3693-ad87-9abf-a762-337076638fcc@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: 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 Mon, Jun 05, 2023 at 08:10:15AM +0100, Mark Rutland wrote: > How does this work on x86? Do you have pseudo-PMUs for PERF_TYPE_HARDWARE and > PERF_TYPE_RAW ? Generic code maps TYPE_HARDWARE and TYPE_HW_CACHE to TYPE_RAW for a first go, only if that fails it will try the actual type. And x86 has the (first) CPU PMU has TYPE_RAW, on hybrid, it will transparently pick the right actual PMU. That said; given that this commit has been tagged twice now, I suppose I should go revert it and we'll try again after a more thorough audit. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel