lkml.org 
[lkml]   [2005]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] i386 & x86_64: Live Patching Funcion on 2.6.11.7
From
Date
"David S. Miller" <davem@davemloft.net> writes:

> Takashi-san, have you ever investigated using kprobes to
> implement this feature? It seems a perfect fit, and would
> allow support on several architectures other than just x86
> and x86_64.
>
> If kprobes does not meet your needs completely, it could
> be trivially extended to do so.

kprobes would require an exception for each patchpoint because
it uses an trap instruction.

Probably a bit too costly for commonly used functions. Especially
on a P4 exceptions are quite costly.

But you could add lightweight kprobes that just use jmp
for it in the kprobes framework, that might be useful for other stuff too

-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/

\
 
 \ /
  Last update: 2005-04-23 18:14    [W:0.155 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site