Re: [RFC Patch 2/6] Introduce PPC64 specific Hardware Breakpointinterfaces

2009-05-21 Thread K.Prasad
On Mon, May 18, 2009 at 12:30:41PM -0400, Alan Stern wrote: On Mon, 18 May 2009, K.Prasad wrote: +int __kprobes hw_breakpoint_handler(struct die_args *args) +{ + int rc = NOTIFY_STOP; + struct hw_breakpoint *bp; + struct pt_regs *regs = args-regs; +

Re: [RFC Patch 2/6] Introduce PPC64 specific Hardware Breakpointinterfaces

2009-05-18 Thread Alan Stern
On Mon, 18 May 2009, K.Prasad wrote: +int __kprobes hw_breakpoint_handler(struct die_args *args) +{ + int rc = NOTIFY_STOP; + struct hw_breakpoint *bp; + struct pt_regs *regs = args-regs; + unsigned long dar; + int cpu, stepped, is_kernel;

Re: [RFC Patch 2/6] Introduce PPC64 specific Hardware Breakpointinterfaces

2009-05-14 Thread K.Prasad
On Fri, May 15, 2009 at 12:50:11AM +1000, Michael Ellerman wrote: On Thu, 2009-05-14 at 19:14 +0530, K.Prasad wrote: plain text document attachment (ppc64_arch_hwbkpt_implementation_02) Introduce PPC64 implementation for the generic hardware breakpoint interfaces defined in

Re: [RFC Patch 2/6] Introduce PPC64 specific Hardware Breakpointinterfaces

2009-05-14 Thread Alan Stern
On Fri, 15 May 2009, K.Prasad wrote: I see that you're referring to this code in __switch_to() : if (unlikely(__get_cpu_var(current_dabr) != new-thread.dabr)) set_dabr(new-thread.dabr); arch_install_thread_hw_breakpoint()--switch_to_thread_hw_breakpoint()