Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751124AbWITLUG (ORCPT ); Wed, 20 Sep 2006 07:20:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751125AbWITLUF (ORCPT ); Wed, 20 Sep 2006 07:20:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:35500 "EHLO mx2.suse.de") by vger.kernel.org with ESMTP id S1751124AbWITLUE (ORCPT ); Wed, 20 Sep 2006 07:20:04 -0400 To: Ingo Molnar Cc: Mathieu Desnoyers , "Frank Ch. Eigler" , Paul Mundt , linux-kernel , Jes Sorensen , Andrew Morton , Tom Zanussi , Richard J Moore , Michel Dagenais , Christoph Hellwig , Greg Kroah-Hartman , Thomas Gleixner , William Cohen , ltt-dev@shafik.org, systemtap@sources.redhat.com, Alan Cox , mbligh@google.com Subject: Re: [PATCH] Linux Kernel Markers References: <20060918234502.GA197@Krystal> <20060919081124.GA30394@elte.hu> <451008AC.6030006@google.com> <20060919153107.GA16414@elte.hu> From: Andi Kleen Date: 20 Sep 2006 13:19:29 +0200 In-Reply-To: <20060919153107.GA16414@elte.hu> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 804 Lines: 13 Ingo Molnar writes: > > yeah, this would be nice - if it werent it for function pointers, and if > all kernel functions were relocatable. But if you can think of a method > to do this, it would be nice. x86-64 did it for some time statically to replace mem copies and some other functions. Basically it just patches the beginning of the other function to a jump. However this assumes that the code doesn't contain absolute addresses (e.g. no switches). In the x86-64 it's easy because only assembly functions are threated this way. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/