Received: by 10.223.185.116 with SMTP id b49csp405092wrg; Wed, 14 Feb 2018 00:33:47 -0800 (PST) X-Google-Smtp-Source: AH8x226rhKGWarxKTwtfn0S/48M8Gkodose8bCcMfyevhzX8f3N5/hFrcv2pr5m0Nk89k+ok/iY5 X-Received: by 2002:a17:902:ab8d:: with SMTP id f13-v6mr3814345plr.215.1518597227332; Wed, 14 Feb 2018 00:33:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518597227; cv=none; d=google.com; s=arc-20160816; b=c7LmvEOM95rxEdmwfm8ZUeJgMNsMMm+G8I5gE5lm5V9dX32WXHrld8oKPiNdIEJkXg gyN+UfGgUWVM6/S+EbcCCMpqkPoRsxK0mBzUt/5nd9dVOztIHdWs2KCDYCxOTqrFyfPO PDw0eVwR1qLIolKG29MuE3I0PY0z9/azLfQpPla4ffun2wb86nS7nNOv9sOx6bMZlPen ktPMBzsGQV+dZN9I73trqKzsVFFSeZm70jK7FwsTaCeBPuwjMq1QNhIf+hyPcSEzAdBB 6E2aPQbdlJCB2IgiAN/VEQ1OlMjB+8oHW2SD7Mp5WydphONs2G54VyRwvqh8+der1VxT ntcA== 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:arc-authentication-results; bh=U6wJ8OQ0UUyt7XbexG3CF31cHql8VE/RUliU+18tQB0=; b=n6oofp6x426eXy5x+mxZxcOPBYxfSgIJ/ithY9KfPx5pxRFWwXL9wZp6ObRL8/vqwt oVS9NV1cV3pAZ9JWXixvj9swyCCbp3UH9P0tM0iMUfjj3XvHcuyz/POZtfnj9lE8yyRR jg0HuoTfkWzHTNdrSQXLwejb2zN5MXmiO+pA0nGmMzak+kdeqU6wFS+1PYBLlYh89zDo 1542VP4KnfSF+mU2HWiuJIlyJe69HMkEZfeAsPIUi2enEMH2XvNTKwi3viI0U8hKlcZg T+xt/e6Fj70z/TGhbVjgIv3wU4e5QguFBI5ZXQ34wGhOTqwUoXXN/+OJ3TZP8HbMeHQV DYug== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Ti0bjlnh; 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 y20-v6si2656133pll.773.2018.02.14.00.33.32; Wed, 14 Feb 2018 00:33:47 -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=Ti0bjlnh; 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 S1754664AbeBNIcS (ORCPT + 99 others); Wed, 14 Feb 2018 03:32:18 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35316 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754492AbeBNIcR (ORCPT ); Wed, 14 Feb 2018 03:32:17 -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=U6wJ8OQ0UUyt7XbexG3CF31cHql8VE/RUliU+18tQB0=; b=Ti0bjlnh8eZpdpD2wSIRB0Kjo Tz/f1DK8IPm8/Pc4hNaZEJIhdkQjjzkGAzRsZhSOCyCErTpMAvaW78NuppURAL0g+KeijZ48OV347 zfsEiY9rCRxoHO2H/zSkPwI7lVPL4TIqN3AF4aWR4/tBmD9OrpyJI3eH2mLaqnJsNzAnmEb5ryiGJ lfMkAuoORp1YLDFpB34ZM+zPeP66pgPG8o6Xh2q3gX4fUvI3P8DDf0TJEjPCi69FjBEkNVUZ9OMtK RXZuLjIkKBgeRIDXg8YuUMZYX25aLhMvr7BvuUpn5haoM21MKdJf4pV6B0vGqRM6xUbJLLFejfOgl 0cBAbedTg==; 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.89 #1 (Red Hat Linux)) id 1elsUB-0003jB-TP; Wed, 14 Feb 2018 08:32:16 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4A750201FB4F4; Wed, 14 Feb 2018 09:32:13 +0100 (CET) Date: Wed, 14 Feb 2018 09:32:13 +0100 From: Peter Zijlstra To: Sodagudi Prasad Cc: Raghavendra Rao Ananta , mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org Subject: Re: [PATCH] perf: Add support for creating offline events Message-ID: <20180214083213.GS25181@hirez.programming.kicks-ass.net> References: <1518217620-28458-1-git-send-email-rananta@codeaurora.org> <20180213182351.GQ25201@hirez.programming.kicks-ass.net> <7d3d97fafa654c30b4ca776180760cb3@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7d3d97fafa654c30b4ca776180760cb3@codeaurora.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 02:17:07PM -0800, Sodagudi Prasad wrote: > > This is horrible.. and you seem to have forgotten to explain why you > > care about offline CPUs. > > Up to 4.9 kernel, drivers can register cpu hotplug notfiters and drivers are > able to create perf events dynamically based cpu notifies callback events. > As cpu hot plug is converted to state machine approach from hot plug > notifiers, every driver need to define a cpuhp state and registers with cpu > hotplug state machine for creating perf events dynamically. > > Qualcomm have use cases to monitor the cpu cycles and other hw events > continuously on all cpus from kernel and profiling tools. > So we are thinking that there could be other soc vendors, who are interested > in perf events preserving across cpu hot plug and perf events creation on > hot plugged cores. But _why_ are you hotplugging to begin with? Just don't do that.