Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030239AbWISQlw (ORCPT ); Tue, 19 Sep 2006 12:41:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030240AbWISQlw (ORCPT ); Tue, 19 Sep 2006 12:41:52 -0400 Received: from mtagate6.uk.ibm.com ([195.212.29.139]:9620 "EHLO mtagate6.uk.ibm.com") by vger.kernel.org with ESMTP id S1030239AbWISQlv (ORCPT ); Tue, 19 Sep 2006 12:41:51 -0400 In-Reply-To: <4510151B.5070304@google.com> Subject: Re: [PATCH] Linux Kernel Markers To: Martin Bligh Cc: Andrew Morton , Alan Cox , "Frank Ch. Eigler" , Greg Kroah-Hartman , Christoph Hellwig , Jes Sorensen , Paul Mundt , linux-kernel , ltt-dev@shafik.org, Mathieu Desnoyers , Michel Dagenais , Ingo Molnar , systemtap@sources.redhat.com, Thomas Gleixner , William Cohen , Tom Zanussi X-Mailer: Lotus Notes Release 7.0.1 July 07, 2006 Message-ID: From: Richard J Moore Date: Tue, 19 Sep 2006 17:41:43 +0100 X-MIMETrack: Serialize by Router on D06ML065/06/M/IBM(Release 6.5.5HF607 | June 26, 2006) at 19/09/2006 17:44:01 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: 1332 Lines: 37 Martin Bligh wrote on 19/09/2006 17:04:43: > Frank Ch. Eigler wrote: > > Hi - > > > > On Tue, Sep 19, 2006 at 08:11:40AM -0700, Martin J. Bligh wrote: > > > > > >>[...] Why don't we just copy the whole damned function somewhere > >>else, and make an instrumented copy (as a kernel module)? Then > >>reroute all the function calls through it [...] > > > > > > Interesting idea. Are you imagining this instrumented copy being > > built at kernel compile time (something like building a "-g -O0" > > parallel)? Or compiled anew from original sources after deployment? > > Or on-the-fly binary-level rewriting a la SPIN? > > "compiled anew from original sources after deployment" seems the most > practical to do to me. From second hand info on using systemtap, you > seem to need the same compiler and source tree to work from anyway, so > this doesn't seem much of a burden. > If I'm not mistaken, this has been done before under the guise of dynamic patch. Doesn't Solaris have the capability? I'm certain that some UNIXes do as well as non-UNIX O/Ss. Richard - 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/