Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp928403ybp; Fri, 11 Oct 2019 06:36:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxiYMKq09UzuG1axcoVDDrec331eZJ7lV2hXFJlalWRl7H7HYhzf/M/rDofrjAwBto913Bw X-Received: by 2002:a17:906:fcac:: with SMTP id qw12mr13684763ejb.31.1570800986031; Fri, 11 Oct 2019 06:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570800986; cv=none; d=google.com; s=arc-20160816; b=X1U+PcZ1m/Dj0Mn3QcdXta7SAYQNZPRr9Z2JtjBabsl+H/TJnOkMO0DzrHG2PSBP0b 1sv7hx5JVBavp/vfcKFTPHusYs2LquSSMVVW4bl0s6lqd8d8JRcp34TNdUPExX8RDR1t Fb0lAtb3dHrCbKIpOGfoT3YfOy+xHml4g2WwAsIB84+eqIwqh4QHEBwPIsiryaKJ7Fbg xQ4rZYm74g6/u3tbVzq6jQfONQ8zgTNj+6xY1vPXFLmdDbsYMaKeyvibVzDzkhveDoMW nn0mGRATuA6s/OKh/miou5IjD8ibj41UYHqqwEOhXDeaITNU3KlfvsA/q9rHWPFo8zUV D02g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=oR9n+sboa+Rwebk2HLgknAXXV8837MFw2WJl9LNc/UQ=; b=Ha8+G6YqPM6E7UirnKR648C8A7eqx+Y1NxokGdJaL7vOdY1O29xFV4GMeozgMvSgQZ yt7hCuk5aFieCw6wSGTCcOmRml/ObBoiyGEuYKYUOeoqiBo2MMBTQhudEk5rqnMKjJPj aDc5TPBS7LeBCEB9BTUAO/bycxL4lWqCSLV51Ry+ONkb/sIOlQediDl/xmJGcAFqWApi Y9scxTQfhz7AmZMfWDuD8lCIcIXKIPMJ0SHgqBpqtxgjUGQHWd8k1K7kip7TWxEcMdLK uq2N8Z7I5nBR1e4CcS1COvIzYnSK7Jmp3AU5aZrkHJ3kZ6/ASiqQNreZGP01wdTxalkV E2vA== ARC-Authentication-Results: i=1; mx.google.com; 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 l54si6138483edb.206.2019.10.11.06.36.00; Fri, 11 Oct 2019 06:36:26 -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; 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 S1728179AbfJKNdX (ORCPT + 99 others); Fri, 11 Oct 2019 09:33:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:51242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727709AbfJKNdW (ORCPT ); Fri, 11 Oct 2019 09:33:22 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1F95D2084C; Fri, 11 Oct 2019 13:33:21 +0000 (UTC) Date: Fri, 11 Oct 2019 09:33:19 -0400 From: Steven Rostedt To: Peter Zijlstra 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: <20191011093319.3ef302ff@gandalf.local.home> In-Reply-To: <20191011125903.GN2359@hirez.programming.kicks-ass.net> References: <20191007081716.07616230.8@infradead.org> <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> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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! ;-) -- Steve