[PATCH 081/199] Documentation/powerpc/mpc52xx.txt: Checkpatch cleanup

2010-05-23 Thread Andrea Gelmini
Documentation/powerpc/mpc52xx.txt:5: ERROR: trailing whitespace Documentation/powerpc/mpc52xx.txt:13: ERROR: trailing whitespace Documentation/powerpc/mpc52xx.txt:18: ERROR: trailing whitespace Documentation/powerpc/mpc52xx.txt:24: ERROR: trailing whitespace Documentation/powerpc/mpc52xx.txt:25:

[RFC Patch 0/5] PPC64-HWBKPT: Hardware Breakpoint interfaces - ver XIX

2010-05-23 Thread K.Prasad
Hi All, Please find a new version of the patches that implement hw-breakpoints for PowerPC Book III S. This patchset has some major additions to hw-breakpoint exception handling that help reliable restoration of breakpoints + increased coverage of breakpoints for signal handlers. The

[RFC Patch 1/5] Allow arch-specific cleanup before breakpoint unregistration

2010-05-23 Thread K.Prasad
Certain architectures (such as PowerPC Book III S) have a need to cleanup data-structures before the breakpoint is unregistered. This patch introduces an arch-specific hook in release_bp_slot() along with a weak definition in the form of a stub funciton. Signed-off-by: K.Prasad

[RFC Patch 2/5] PPC64-HWBKPT: Implement hw-breakpoints for PowerPC Book III S

2010-05-23 Thread K.Prasad
Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. Signed-off-by: K.Prasad pra...@linux.vnet.ibm.com --- arch/powerpc/Kconfig |1

[RFC Patch 3/5] PPC64-HWBKPT: Handle concurrent alignment interrupts

2010-05-23 Thread K.Prasad
An alignment interrupt may intervene between a DSI/hw-breakpoint exception and the single-step exception. Enable the alignment interrupt (through modifications to emulate_single_step()) to notify the single-step exception handler for proper restoration of hw-breakpoints. Signed-off-by: K.Prasad

[RFC Patch 4/5] PPC64-HWBKPT: Enable hw-breakpoints while handling intervening signals

2010-05-23 Thread K.Prasad
A signal delivered between a hw_breakpoint_handler() and the single_step_dabr_instruction() will not have the breakpoint active during signal handling (since breakpoint will not be restored through single-stepping due to absence of MSR_SE bit on the signal frame). Enable breakpoints before signal

[RFC Patch 5/5] PPC64-HWBKPT: Enable proper distinction of per-task and per-cpu breakpoints

2010-05-23 Thread K.Prasad
Per-task and per-cpu breakpoints have to be unambiguously identified for proper restoration of hw-breakpoints. The notion of pure user- and kernel- space breakpoints is antiquated. Store 'pid' of the process against which the perf-counter was requested to help proper distinction. This helps

Re: [RFC Patch 2/5] PPC64-HWBKPT: Implement hw-breakpoints for PowerPC Book III S

2010-05-23 Thread K.Prasad
On Mon, May 24, 2010 at 09:32:25AM +0530, K.Prasad wrote: Implement perf-events based hw-breakpoint interfaces for PowerPC Book III S processors. These interfaces help arbitrate requests from various users and schedules them as appropriate. snipped +/* + * Handle debug exception