Generic Linux architectural discussions
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: linux arch <linux-arch@vger.kernel.org>,
	"David S. Miller" <davem@davemloft.net>
Subject: Re: Do we use runtime patching of function calls somewhere?
Date: Sun, 13 May 2012 13:44:54 -0400	[thread overview]
Message-ID: <201205131344.55427.vapier@gentoo.org> (raw)
In-Reply-To: <20120513121600.GA15708@merkur.ravnborg.org>

[-- Attachment #1: Type: Text/Plain, Size: 462 bytes --]

On Sunday 13 May 2012 08:16:00 Sam Ravnborg wrote:
> Do we have any archs that does runtime patching of function calls?

Matthew already mentioned the x86 altinstruction support (which helps with 
building smp kernels which run well on UP setups), but in case it helps, 
there's the ftrace stuff that runtime patches calls to mcount.  there's 
HAVE_FTRACE_MCOUNT_RECORD and HAVE_DYNAMIC_FTRACE which 
Documentation/trace/ftrace-design.txt covers.
-mike

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2012-05-13 17:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-13 12:16 Do we use runtime patching of function calls somewhere? Sam Ravnborg
2012-05-13 14:29 ` Matthew Wilcox
2012-05-13 18:28   ` David Miller
2012-05-13 17:44 ` Mike Frysinger [this message]
2012-05-13 18:32 ` David Miller
2012-05-13 18:45   ` Sam Ravnborg
2012-05-13 20:01     ` David Miller
2012-05-14 16:56 ` Sam Ravnborg

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=201205131344.55427.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=davem@davemloft.net \
    --cc=linux-arch@vger.kernel.org \
    --cc=sam@ravnborg.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox