[PATCH v2 0/4] uprobes/powerpc: Replace ptrace helpers for single stepping

2012-12-03 Thread Suzuki K. Poulose
The following series replaces the ptrace helpers used for single step
enable/disable for uprobes on powerpc, with uprobe specific code.

We reuse the kprobe code to enable single stepping by making it generic
and save/restore the MSR (and DBCR for BookE) across the single step.

This series applies on top of the patches posted by Oleg at :
https://lkml.org/lkml/2012/10/28/92 


Patches have been verified on Power6 and PPC440 (BookE).

Changes since V1: 

 * Don't disable external interrupts. (Sebastian)
 * Introduced routines for saving/restoring the context for sstep.
 * Restore the context in arch_uprobe_abort_xol() (Oleg)


---

Suzuki K. Poulose (4):
  kprobes/powerpc: Do not disable External interrupts during single step
  powerpc: Move the single step enable code to a generic path
  uprobes/powerpc: Introduce routines for save/restore context
  uprobes/powerpc: Make use of generic routines to enable single step


 arch/powerpc/include/asm/probes.h  |   25 +
 arch/powerpc/include/asm/uprobes.h |4 
 arch/powerpc/kernel/kprobes.c  |   21 +
 arch/powerpc/kernel/uprobes.c  |   32 +---
 4 files changed, 55 insertions(+), 27 deletions(-)

-- 
Suzuki

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v2 0/4] uprobes/powerpc: Replace ptrace helpers for single stepping

2012-12-03 Thread Suzuki K. Poulose
The following series replaces the ptrace helpers used for single step
enable/disable for uprobes on powerpc, with uprobe specific code.

We reuse the kprobe code to enable single stepping by making it generic
and save/restore the MSR (and DBCR for BookE) across the single step.

This series applies on top of the patches posted by Oleg at :
https://lkml.org/lkml/2012/10/28/92 


Patches have been verified on Power6 and PPC440 (BookE).

Changes since V1: 

 * Don't disable external interrupts. (Sebastian)
 * Introduced routines for saving/restoring the context for sstep.
 * Restore the context in arch_uprobe_abort_xol() (Oleg)


---

Suzuki K. Poulose (4):
  kprobes/powerpc: Do not disable External interrupts during single step
  powerpc: Move the single step enable code to a generic path
  uprobes/powerpc: Introduce routines for save/restore context
  uprobes/powerpc: Make use of generic routines to enable single step


 arch/powerpc/include/asm/probes.h  |   25 +
 arch/powerpc/include/asm/uprobes.h |4 
 arch/powerpc/kernel/kprobes.c  |   21 +
 arch/powerpc/kernel/uprobes.c  |   32 +---
 4 files changed, 55 insertions(+), 27 deletions(-)

-- 
Suzuki

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/