From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754471AbZBQR3T (ORCPT ); Tue, 17 Feb 2009 12:29:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752960AbZBQR27 (ORCPT ); Tue, 17 Feb 2009 12:28:59 -0500 Received: from tomts20-srv.bellnexxia.net ([209.226.175.74]:58384 "EHLO tomts20-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752692AbZBQR27 (ORCPT ); Tue, 17 Feb 2009 12:28:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtoEANV8mklMQWt2/2dsb2JhbACBbtFEhBMG Date: Tue, 17 Feb 2009 12:28:50 -0500 From: Mathieu Desnoyers To: Steven Rostedt Cc: Masami Hiramatsu , Nick Piggin , Peter Zijlstra , akpm , linux-kernel , Ingo Molnar , Ananth N Mavinakayanahalli , Jim Keniston Subject: Re: irq-disabled vs vmap vs text_poke Message-ID: <20090217172850.GB14435@Krystal> References: <4995E925.3080506@redhat.com> <4999808B.5080505@redhat.com> <20090216153145.GB19182@wotan.suse.de> <20090216172441.GA12576@Krystal> <499A1A43.6000009@redhat.com> <20090217030353.GA31504@wotan.suse.de> <499AEA72.9090702@redhat.com> <20090217171845.GA14435@Krystal> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.21.3-grsec (i686) X-Uptime: 12:28:10 up 47 days, 17:26, 4 users, load average: 0.41, 0.33, 0.23 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Steven Rostedt (rostedt@goodmis.org) wrote: > > On Tue, 17 Feb 2009, Mathieu Desnoyers wrote: > > > > > > > Anyway dynamic ftrace only need to do code patching at early boot, > > right? Or do you need also to patch the call sites a bit later too ? > > Because there is a text_poke_early for that purpose : modifying code > > when it is still writable. > > It modifies the code both at early boot up, and when it is enabled later > on at run time. > > -- Steve > OK, so without text_poke, how does it deal with kernel with text pages marked read-only after boot ? Mathieu -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68