Re: [Patch][hw-breakpoint] Use generic hw-breakpoint interfaces for new PPC ptrace flags

2012-05-14 Thread K.Prasad
On Mon, May 14, 2012 at 10:53:42AM +1000, Benjamin Herrenschmidt wrote: On Fri, 2012-05-11 at 14:13 +0530, K.Prasad wrote: +#ifdef CONFIG_HAVE_HW_BREAKPOINT + int ret, len = 0; + struct thread_struct *thread = (child-thread); + struct perf_event *bp; + struct perf_event_attr

Re: [Patch][hw-breakpoint] Use generic hw-breakpoint interfaces for new PPC ptrace flags

2012-05-14 Thread Benjamin Herrenschmidt
On Mon, 2012-05-14 at 15:54 +0530, K.Prasad wrote: On Mon, May 14, 2012 at 10:53:42AM +1000, Benjamin Herrenschmidt wrote: On Fri, 2012-05-11 at 14:13 +0530, K.Prasad wrote: +#ifdef CONFIG_HAVE_HW_BREAKPOINT + int ret, len = 0; + struct thread_struct *thread = (child-thread); +

Re: [Patch][hw-breakpoint] Use generic hw-breakpoint interfaces for new PPC ptrace flags

2012-05-13 Thread Benjamin Herrenschmidt
On Fri, 2012-05-11 at 14:13 +0530, K.Prasad wrote: +#ifdef CONFIG_HAVE_HW_BREAKPOINT + int ret, len = 0; + struct thread_struct *thread = (child-thread); + struct perf_event *bp; + struct perf_event_attr attr; +#endif /* CONFIG_HAVE_HW_BREAKPOINT */ ret is unused in that

[Patch][hw-breakpoint] Use generic hw-breakpoint interfaces for new PPC ptrace flags

2012-05-11 Thread K.Prasad
Hi Ben, Please find a patch that introduces generic hw-breakpoint interfaces for a couple of ptrace flags used by server-class processors. This patch has been reviewed by the community and acked-by David Gibson last year