From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753945AbZBQRC5 (ORCPT ); Tue, 17 Feb 2009 12:02:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752160AbZBQRCr (ORCPT ); Tue, 17 Feb 2009 12:02:47 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:33658 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752686AbZBQRCr (ORCPT ); Tue, 17 Feb 2009 12:02:47 -0500 Date: Tue, 17 Feb 2009 12:02:44 -0500 (EST) From: Steven Rostedt X-X-Sender: rostedt@gandalf.stny.rr.com To: Masami Hiramatsu cc: Nick Piggin , Mathieu Desnoyers , Peter Zijlstra , akpm , linux-kernel , Ingo Molnar , Ananth N Mavinakayanahalli , Jim Keniston Subject: Re: irq-disabled vs vmap vs text_poke In-Reply-To: <499AEA72.9090702@redhat.com> Message-ID: References: <20090213141839.GA31922@Krystal> <4995A0B7.1030705@redhat.com> <20090213165555.GA4684@Krystal> <4995B88C.2090900@redhat.com> <20090213185725.GC7124@Krystal> <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> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 17 Feb 2009, Masami Hiramatsu wrote: > > Thanks, I think text_poke() doesn't need high performance currently, > because it's not called so frequently, nor from the normal operation. > > However, Would dynamic ftrace need performance? Are you talking about replacing what dynamic ftrace does now with text_poke? Well, It takes just under a second right now to do all the conversions. Looking at the list on my booted box, it converts 19805 locations. It takes care to run stop machine, and it also has code to handle NMIs on the other CPUS while it runs. Changing text must be done extremely carefully on a running box. If the code being changed is also executed on another CPU then you will most likely take a GPF on that CPU. Also, every arch must do things a bit different, due to the way modules are handled. -- Steve