Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3708715ybi; Tue, 18 Jun 2019 05:24:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOLxqxQRiTGan9vkGDkEBl+yjsvhqcOdWLr/rDv++fEm44zaODN6DJpeWzEEm8JICL/vF6 X-Received: by 2002:a17:90a:2305:: with SMTP id f5mr5122672pje.128.1560860673938; Tue, 18 Jun 2019 05:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560860673; cv=none; d=google.com; s=arc-20160816; b=T6ZRN7FWjdgDnUztuVkIyggsX0wWQI5cf2VpEt0a/CPfvH4WqR1e/6P8IZcIdYB+pg nljyuwgKqR40ZJKMs6YBg8YT2xHL8G6CQeOVsZ76R2d36d2h1Q0V66jkeVtsEBby7ux9 kaGGp4SX/7myprYXA+xZRWUP1qV6XaZFJ69pz1gDmihmqI4PfOi/XlE7GHrk3geg9L9R CZYLmtDrMF1QmTU3LAaeQWVsEwWOrKYXsH2Pi4uOtmC5LHguIGVR63KgpbwLjlw/MnZ3 SnszcdYI3Rtf07BnEwm6SJxwiBV75PGIbbk0uVyTwSI6h5sYP35v3w+AbTqpMzeYcpIF Y4mQ== 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=kNi3XQTa/+ngtDRDU/l4s27s4LRCp411GOAAso5qJSY=; b=GDDaJWE6aMbVEYgQuE4y8kGsC2rLNiEItXWnHrzWP88IFr2JK5xEIKM9YoBO8AcEbb GIt3YG68tRMgN0YkRp+FXMrjaCTXpFojWq5m+wteyCz9bqsVJt4+WTVmghNTtMOqxVIE vBQcrM+0gSvonJYb1+z4ne/aU2n4Yrt2koocXkEvwOwnvr8hUyxUrsYCWm67K4q9/Hg+ Ggti/K+hvgb4YauXQFdA9bcTOMmJEpqwlnv9c0YkAxh/feR6KBrpvXWnYJ7St9cOGa00 6fKH/pjeWyDukWtuizoul09zz7zk6NRabZMSsNa+LJNb8uSHjBrMq6cq27F1lKqJHPRB DVTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="F/I7R90c"; 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 t8si91868pgh.235.2019.06.18.05.24.17; Tue, 18 Jun 2019 05:24:33 -0700 (PDT) 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="F/I7R90c"; 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 S1729078AbfFRMXd (ORCPT + 99 others); Tue, 18 Jun 2019 08:23:33 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33800 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfFRMXd (ORCPT ); Tue, 18 Jun 2019 08:23:33 -0400 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=kNi3XQTa/+ngtDRDU/l4s27s4LRCp411GOAAso5qJSY=; b=F/I7R90ceFW+vmCgY+WJQOJbA pvhriAwL77+n2hr/V0SY5YVh+q6jxecKm0igOHx2o2ZXLcgUUe5AZaKu4Przn8gyt5lIOUx+H2PW2 bTH+beQOHI67CgnkH7JxSkMQSzaD1zf440yUCztXudXE14U52SBXNbdnzu7ZNjw+4a4Q881/0VSOC Jr8HGqVj2tMSqEhghpDjzVTNXJETzsInnYJ9afOnarjb3mIQNb0D1cnnGFpGKTAHlkYAD9SWSpakD tiMq3I6gpclW9GBKx8lzKnrz+N/n1h9tPgX9kUf9vdaXWEFlvZvHT2mGOX04TofqkeYY9R4OJa2ho BQXbBINNw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hdD99-0004ua-Ho; Tue, 18 Jun 2019 12:23:31 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4F8302076F70F; Tue, 18 Jun 2019 14:23:29 +0200 (CEST) Date: Tue, 18 Jun 2019 14:23:29 +0200 From: Peter Zijlstra To: Mukesh Ojha Cc: linux-kernel@vger.kernel.org, Raghavendra Rao Ananta , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Alexei Starovoitov Subject: Re: [PATCH V4] perf: event preserve and create across cpu hotplug Message-ID: <20190618122329.GE3419@hirez.programming.kicks-ass.net> References: <1560337045-13298-1-git-send-email-mojha@codeaurora.org> <1560848091-15694-1-git-send-email-mojha@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1560848091-15694-1-git-send-email-mojha@codeaurora.org> 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 Tue, Jun 18, 2019 at 02:24:51PM +0530, Mukesh Ojha wrote: > Perf framework doesn't allow preserving CPU events across > CPU hotplugs. The events are scheduled out as and when the > CPU walks offline. Moreover, the framework also doesn't > allow the clients to create events on an offline CPU. As > a result, the clients have to keep on monitoring the CPU > state until it comes back online. > > Therefore, That's not a therefore. There's a distinct lack of rationale here. Why do you want this?