All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: "David S. Miller" <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org,
	Takashi Ikebe <ikebe.takashi@lab.ntt.co.jp>
Subject: Re: [PATCH] i386 & x86_64: Live Patching Funcion on 2.6.11.7
Date: Sat, 23 Apr 2005 18:10:09 +0200	[thread overview]
Message-ID: <m13bthzd7i.fsf@muc.de> (raw)
In-Reply-To: <20050416234439.5464e188.davem@davemloft.net> (David S. Miller's message of "Sat, 16 Apr 2005 23:44:39 -0700")

"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

      parent reply	other threads:[~2005-04-23 16:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-17  3:47 [PATCH] i386 & x86_64: Live Patching Funcion on 2.6.11.7 Takashi Ikebe
2005-04-17  6:44 ` David S. Miller
2005-04-17 18:51   ` Daniel Jacobowitz
2005-04-17 20:32     ` David S. Miller
2005-04-18  1:41       ` Takashi Ikebe
2005-04-18  4:41         ` Daniel Jacobowitz
2005-04-18  5:20           ` Takashi Ikebe
2005-04-23 16:10   ` Andi Kleen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m13bthzd7i.fsf@muc.de \
    --to=ak@muc.de \
    --cc=davem@davemloft.net \
    --cc=ikebe.takashi@lab.ntt.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.