From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mo-p00-ob.rzone.de (mo-p00-ob.rzone.de [81.169.146.160]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E74A9B6FF7 for ; Fri, 15 Apr 2011 17:22:53 +1000 (EST) From: Stefan Roese To: Joakim Tjernlund Subject: Re: FTrace on MPC8xx Date: Fri, 15 Apr 2011 09:22:42 +0200 References: <201104131632.21350.ml@stefan-roese.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Message-Id: <201104150922.43093.ml@stefan-roese.de> Cc: Scott Wood , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Joakim, On Thursday 14 April 2011 21:21:23 Joakim Tjernlund wrote: > > hmm, I guess 8xx really maps kernel RO as RO :) Try > > > > changing in pte-8xx.h: > > - #define _PAGE_KERNEL_RO (_PAGE_SHARED) > > + #define _PAGE_KERNEL_RO (_PAGE_RW |_PAGE_SHARED) > > hmm, I wonder if not this is the problem(in pte-common.h) > #if defined(CONFIG_KGDB) || defined(CONFIG_XMON) || > defined(CONFIG_BDI_SWITCH) ||\ defined(CONFIG_KPROBES) > #define PAGE_KERNEL_TEXT PAGE_KERNEL_X > #else > #define PAGE_KERNEL_TEXT PAGE_KERNEL_ROX > #endif > > What is PAGE_KERNEL_TEXT for you? > I think it must be PAGE_KERNEL_X, otherwise kernel text will be readonly. Yes, that's it! Its PAGE_KERNEL_ROX right now. We need to add CONFIG_FTRACE or at least CONFIG_DYNAMIC_FTRACE to the #if statement above. Do you want to send a patch (since you detected the real problem)? Or should I do this? Thanks. Best regards, Stefan