kprobes_stack.patch

Ananth N Mavinakayanahalli amavin@redhat.com
Wed May 11 18:03:00 GMT 2005


Jim Keniston wrote:

Hi Jim,

> Per an AR from the 4/20/05 meeting, here is a patch that runs kprobes'
> pre_handlers on a separate kprobes_stack.  This code is i386-specific
> and is based on the CONFIG_4KSTACKS stack-switch code in do_IRQ().

I thought the idea was to see how necessary a separate stack would be in
a situation where we have hundreds of kprobes on a system. But, do we
need this feature right away?

Also, I think we should take this feature in on a per-arch basis. For
example, THREAD_SHIFT on ppc64 is 14 (with a 4k pagesize) that would
give 16k stacks by default. Additionally, ppc64 defconfig has
CONFIG_IRQSTACKS=y.

Ananth



More information about the Systemtap mailing list