[PATCH] powerpc ptrace block-step
Benjamin Herrenschmidt
benh at kernel.crashing.org
Fri May 29 15:03:49 EST 2009
On Wed, 2009-04-01 at 14:59 -0700, Roland McGrath wrote:
> Maynard asked about user_enable_block_step() support on powerpc.
> This is the old patch I've posted before. I haven't even tried
> to compile it lately, but it rebased cleanly.
>
> AFAIK the only reason this didn't go in several months ago was waiting
> for someone to decide what the right arch_has_block_step() condition was,
> i.e. if it needs to check some cpu_feature or chip identifier bits.
>
> I had hoped that I had passed the buck then to ppc folks to figure that out
> and make it so. But it does not appear to have happened.
>
> Note you can drop the #define PTRACE_SINGLEBLOCK if you want to be
> conservative and not touch the user (ptrace) ABI yet. Then Maynard
> could beat on it with internal uses (utrace) before you worry about
> whether userland expects the new ptrace request macro to exist.
So the patch had some issues, such as missing clearing of DBCR0 bits,
missing changes to code in traps.c to properly identify the new cause
of debug interrupts, etc...
I've spinned a new version, I'll post it as soon as I got to do some
quick tests. It will then go into the next merge window hopefully.
Note: I've verified, blockstep seems to be implemented by all the core
variants -except- the old 601.
Cheers,
Ben.
More information about the Linuxppc-dev
mailing list