Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp122127ybl; Mon, 2 Dec 2019 08:25:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwNTCVI/X8K+u950sMHH3VkOdVKNFXVxPZ2eI8fIHO/dPMzIrIgSxeiZIeQRsQDL14HsO/s X-Received: by 2002:a17:906:5606:: with SMTP id f6mr14151955ejq.179.1575303923800; Mon, 02 Dec 2019 08:25:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575303923; cv=none; d=google.com; s=arc-20160816; b=H9/h07xKkeK6JDMT0spyRrIzlOSLwTDEeVKsSC/83DOGczllHOUTL2uPBZSgBoQlh5 6tdD4uEkmG3iAGmI+JQkcXYI81Y7IPJrxgMIvgSuP8oiX+UkCjMCiWWUOt1EJKZjo38U JVsq+KerWMLP8w22qNxwSaScVpHBzKdmqbe+FKeTyXoFMURT0P694JHYc7ryTGQLcboH Ri86li1qeJdGmYjNNzUJRQccfeOCVp0FIxXP9bsm/MNhrqdWI39IUcbVNxTxRKB5WmsF 5gw7ngHG/Wg55suIHnGfO0zl3jHYyY9S6k+YKv48DAeIZXa1Y53/yArUflR2YfaXDPjo SFJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KrIeoB6eXu5dDlRf2wZt+U1dAygcO/BvD5fSXChJq8E=; b=XIxNtdppGRuzTEFi69IO8d5sFp8OdJhIXEiM+Sk5QEDPiKynXQqt8rhopqI+HcPcW+ pwhjZ4dVR02ejgITDmIKVJepNS9ddtHrnDuxH1Lds6ZwCRQx8si2nofJhcjOi62Tc/Bt 4Nraklkn8Fx9pTPFvokmZQGXLkeCLJt0GwQwRPj2B+O+2JfBgEWnvCqAHPyrC243Tbqn IqV8qVl9ZKqKZ5ZVl72PZ7IECcbz3ZQW9kZ9blW0Ukv7KoT2vvKH/yPtFRaO2vRgaNIk /Q//tvAbk5gAiFIMZKoO2HKvi1IOFg7V1+QpeImzUdKWZTRx3U3xGS6kQmwlcSa9LXR+ aD7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DjHY3bPV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si5773629ejx.158.2019.12.02.08.24.58; Mon, 02 Dec 2019 08:25:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=DjHY3bPV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727718AbfLBQWC (ORCPT + 99 others); Mon, 2 Dec 2019 11:22:02 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:54354 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727555AbfLBQWC (ORCPT ); Mon, 2 Dec 2019 11:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=KrIeoB6eXu5dDlRf2wZt+U1dAygcO/BvD5fSXChJq8E=; b=DjHY3bPVJwmIxla70oxFpA88U WCVuYqWRGQ4t+VO9BfpjnUVA19Vt3nmVaCLOrQmRnLGAxicdwmaT/BGjsjvf76hQX1iXjn9CykVVR J7Ive523K9vDAe5kp1n/zPWeheWFv2HY5wleFQQwTVUvu8c8R4T2XNV9Vk3r6fWCNanUfHZp2JviA 8SYg7c1aSy1z6J6es6jTux57HPRuYSVKgxvnRfCNS71Em267s2NMBxONRWyg0H/VTVHkkymk3N6Ix SKG5VaIdgvE8msrJw9y7qQj9nhwIKMaRkcMTVSGByGc49F3KjcYd8V11O+aCICeAiUXMMtjca+2S4 3sLoDBV/Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iboSQ-0003YR-Ol; Mon, 02 Dec 2019 16:21:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 78A9B305E42; Mon, 2 Dec 2019 17:20:36 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6D064201A401D; Mon, 2 Dec 2019 17:21:52 +0100 (CET) Date: Mon, 2 Dec 2019 17:21:52 +0100 From: Peter Zijlstra To: Andi Kleen Cc: kan.liang@linux.intel.com, mingo@redhat.com, acme@kernel.org, tglx@linutronix.de, bp@alien8.de, linux-kernel@vger.kernel.org, eranian@google.com, alexey.budankov@linux.intel.com, vitaly.slobodskoy@intel.com Subject: Re: [RFC PATCH 3/8] perf: Init/fini PMU specific data Message-ID: <20191202162152.GG2827@hirez.programming.kicks-ass.net> References: <1574954071-6321-1-git-send-email-kan.liang@linux.intel.com> <1574954071-6321-3-git-send-email-kan.liang@linux.intel.com> <20191202124055.GC2827@hirez.programming.kicks-ass.net> <20191202145957.GM84886@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191202145957.GM84886@tassilo.jf.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 02, 2019 at 06:59:57AM -0800, Andi Kleen wrote: > > > > This is atricous crap. Also it is completely broken for -RT. > > Well can you please suggest how you would implement it instead? I don't think that is on me; at best I get to explain why it is completely unacceptible to have O(nr_tasks) and allocations under a raw_spinlock_t, but I was thinking you'd already know that.