Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp943190ybp; Fri, 11 Oct 2019 06:49:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXOVXShvSVXLqziuYaIdvASIOY5Vahj6OcjgQ8nIgPf6Yn0WYTbKLhCF4EIs4yKj67X0Y4 X-Received: by 2002:a05:6402:1252:: with SMTP id l18mr13657244edw.64.1570801751910; Fri, 11 Oct 2019 06:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570801751; cv=none; d=google.com; s=arc-20160816; b=BxuocLSvMYkEQysv7LmBo0FIvyatSxdwbwe1cQ4PeicolbLqgklX2+HVaiRvjAS6ws e+HEccprU+ZrOZ34wmzvM3ZIeyjUVuC6V214kMb/vCglPAxg6cgJGXEdTKBlyOrtdWrr 1pPQt67c9yrICrtywXIlUtsqCrDL3YygHD4TET2+nKNMZlKUYEyMaTB2aQUoHKGF/IW6 maRtDLdZreOqcE82Hk3ChEqCcwkmjA9xIG6jTlt+jfK7zGSpkJQVQwIQNVlelYXYemeR CX2Ieda5VHzwhbJ9uuyaoPmkCWd3GpZqDR7Ih5npCatiGuZnte4er3ReGzvwbbyORZ8p l7/Q== 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=o4jbsb4dvBaig8ml694biSsHKSjMvj0oSSgRKxIGaNM=; b=CmK6eh3Ixs3VTI3Ta5TSyl6WT05VG0DGqNYD1ImwSuK0PPMYvwZg2oUq7IRGrmqzd/ Krk2vxJaoI/ea4O8fJlw4PvkjnjK7A2YvU92u/o202nrLFMWNUoBo+DndOIQ5SJ3nc4f SM3sGC/X8tsoBMW/lbQH/2G88gx//C2kdj6OvFOzrC3sBSX5x5TaLsGuWtDiuJBLNIe1 OmcKnGmQckikhHTtYiNyhuWosb0/bcMISWAw1U5eImyUev7rWTPwEC3pIRleB1vHaTbJ e2Ix8cyEuveZwpTZU6KiP00QM80CJfkuROUXY/5MH8NuKIn4dHbcM22hkKgX2lENUWwU dXpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=NjyCqK9J; 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 b9si5346561eju.269.2019.10.11.06.48.48; Fri, 11 Oct 2019 06:49:11 -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=NjyCqK9J; 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 S1728722AbfJKNpt (ORCPT + 99 others); Fri, 11 Oct 2019 09:45:49 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40446 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728684AbfJKNpr (ORCPT ); Fri, 11 Oct 2019 09:45:47 -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=o4jbsb4dvBaig8ml694biSsHKSjMvj0oSSgRKxIGaNM=; b=NjyCqK9JzeRx63f1aRHVCfzAQ ZC0YXxu70t1zyu6LTbgBhYVuxgbO7FMmz44S3RcUCf9EakR84KRhnocUf2TzvkAhB1FKC2B8xpouo mSfF9e8wIaYA8xlg1Wf3oVw+WXx147TIKCLoASPw77O5qbHEwpUbBeLeh8utzS1efhNCJ9jzqMzWl lvvl64cQ+q7+SYAiZk69lwhF6CJ4z1NpJURPMP8M+q2SS682fZd+P+Cg3XnNdGwlAZw9fYV1lqrzU yMKThrW0G26Qs8coQwAuXQXnUicJPYUhd8RcN92W95PUYBrRsda3X6ZNpq7yPpqzBcf+21M/9x+4u kVavsxVuw==; 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 1iIvEf-0002b5-TE; Fri, 11 Oct 2019 13:45:38 +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 5C52C305DE2; Fri, 11 Oct 2019 15:44:43 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 08B942026F768; Fri, 11 Oct 2019 15:45:36 +0200 (CEST) Date: Fri, 11 Oct 2019 15:45:36 +0200 From: Peter Zijlstra To: Steven Rostedt Cc: x86@kernel.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, bristot@redhat.com, jbaron@akamai.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, namit@vmware.com, hpa@zytor.com, luto@kernel.org, ard.biesheuvel@linaro.org, jpoimboe@redhat.com, jeyu@kernel.org Subject: Re: [PATCH v3 5/6] x86/ftrace: Use text_poke() Message-ID: <20191011134535.GZ2328@hirez.programming.kicks-ass.net> References: <20191007081945.10951536.8@infradead.org> <20191008104335.6fcd78c9@gandalf.local.home> <20191009224135.2dcf7767@oasis.local.home> <20191010092054.GR2311@hirez.programming.kicks-ass.net> <20191010091956.48fbcf42@gandalf.local.home> <20191010140513.GT2311@hirez.programming.kicks-ass.net> <20191010115449.22044b53@gandalf.local.home> <20191010172819.GS2328@hirez.programming.kicks-ass.net> <20191011125903.GN2359@hirez.programming.kicks-ass.net> <20191011093319.3ef302ff@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191011093319.3ef302ff@gandalf.local.home> 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 Fri, Oct 11, 2019 at 09:33:19AM -0400, Steven Rostedt wrote: > On Fri, 11 Oct 2019 14:59:03 +0200 > Peter Zijlstra wrote: > > > On Thu, Oct 10, 2019 at 07:28:19PM +0200, Peter Zijlstra wrote: > > > > > Really the best solution is to move all the poking into > > > ftrace_module_init(), before we mark it RO+X. That's what I'm going to > > > do for jump_label and static_call as well, I just need to add that extra > > > notifier callback. > > > > OK, so I started writing that patch... or rather, I wrote the patch and > > started on the Changelog when I ran into trouble describing why we need > > it. > > > > That is, I'm struggling to explain why we cannot flip > > prepare_coming_module() and complete_formation(). > > > > Yes, it breaks ftrace, but I'm thinking that is all it breaks. So let me > > see if we can cure that. > > For someone that doesn't use modules, you are making me very nervous > with all the changes you are making to the module code! ;-) Hey, today I build a kernel with modules just for you :-) And whatever it takes right, I just want to clean this crap up.