All of lore.kernel.org
 help / color / mirror / Atom feed
* Do we use runtime patching of function calls somewhere?
@ 2012-05-13 12:16 Sam Ravnborg
  2012-05-13 14:29 ` Matthew Wilcox
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Sam Ravnborg @ 2012-05-13 12:16 UTC (permalink / raw)
  To: linux arch; +Cc: David S. Miller

Do we have any archs that does runtime patching of function calls?

On sparc32 we have infrastructure to do so but this
requires an additional step after the final link
that I like to get rid of.

Basically what is required is to locate all
call-sites that for example call:

     cache_flush_all();

and replace this with a

    srmmu_cache_flush_all();

sparc32 has ~30 calls that is eligble for runtime patching.
sparc-next has seen some nice cleanup in this area,
so your regular kernel has much more.

We know early on the what to patch with as the only
paramters involved are platform and MMU type.

I could try to come up with something myself - but if we already
have it somewhere maybe there is something to be inspired by.

	Sam

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-14 16:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.