[PATCH] powerpc/perf: hw breakpoints return ENOSPC

2012-10-26 Thread Frederic Weisbecker
From: Michael Neuling I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on device). /bin/dmesg may provide additional

[PATCH] powerpc/perf: hw breakpoints return ENOSPC

2012-10-26 Thread Frederic Weisbecker
From: Michael Neuling mi...@neuling.org I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on device). /bin/dmesg may provide

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-27 Thread Frederic Weisbecker
2012/9/25 Michael Neuling : > Michael Neuling wrote: > >> Frederic Weisbecker wrote: >> >> > On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: >> > > Hi, >> > > >> > > I've been trying to get hardware breakpoints with perf to work on POWER7 >> > > but I'm getting the following: >>

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-27 Thread Frederic Weisbecker
2012/9/25 Michael Neuling mi...@neuling.org: Michael Neuling mi...@neuling.org wrote: Frederic Weisbecker fweis...@gmail.com wrote: On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-26 Thread Jovi Zhang
On Thu, Aug 16, 2012 at 12:23 PM, Michael Neuling wrote: > Hi, > > I've been trying to get hardware breakpoints with perf to work on POWER7 > but I'm getting the following: > > % perf record -e mem:0x1000 true > > Error: sys_perf_event_open() syscall returned with 28 (No space left on

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-26 Thread Jovi Zhang
On Thu, Aug 16, 2012 at 12:23 PM, Michael Neuling mi...@neuling.org wrote: Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-25 Thread Michael Neuling
Michael Neuling wrote: > Frederic Weisbecker wrote: > > > On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: > > > Hi, > > > > > > I've been trying to get hardware breakpoints with perf to work on POWER7 > > > but I'm getting the following: > > > > > > % perf record -e

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-09-25 Thread Michael Neuling
Michael Neuling mi...@neuling.org wrote: Frederic Weisbecker fweis...@gmail.com wrote: On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-17 Thread Michael Neuling
Frederic Weisbecker wrote: > On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: > > Hi, > > > > I've been trying to get hardware breakpoints with perf to work on POWER7 > > but I'm getting the following: > > > > % perf record -e mem:0x1000 true > > > > Error:

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-17 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: > Hi, > > I've been trying to get hardware breakpoints with perf to work on POWER7 > but I'm getting the following: > > % perf record -e mem:0x1000 true > > Error: sys_perf_event_open() syscall returned with 28 (No space

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-17 Thread Frederic Weisbecker
On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-17 Thread Michael Neuling
Frederic Weisbecker fweis...@gmail.com wrote: On Thu, Aug 16, 2012 at 02:23:54PM +1000, Michael Neuling wrote: Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error:

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Ellerman
On Thu, 2012-08-16 at 16:15 +0200, Peter Zijlstra wrote: > On Fri, 2012-08-17 at 00:02 +1000, Michael Ellerman wrote: > > You do want to guarantee that the task will always be subject to the > > breakpoint, even if it moves cpus. So is there any way to guarantee that > > other than reserving a

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Neuling
> > > > On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, > > > > despite there being no breakpoint on this CPU. This is because the call > > > > the task_bp_pinned, checks all CPUs, rather than just the current CPU. > > > > POWER7 only has one hardware breakpoint per CPU

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Fri, 2012-08-17 at 00:02 +1000, Michael Ellerman wrote: > You do want to guarantee that the task will always be subject to the > breakpoint, even if it moves cpus. So is there any way to guarantee that > other than reserving a breakpoint slot on every cpu ahead of time? That's not how regular

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Ellerman
On Thu, 2012-08-16 at 13:44 +0200, Peter Zijlstra wrote: > On Thu, 2012-08-16 at 21:17 +1000, Michael Neuling wrote: > > Peter, > > > > > > On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, > > > > despite there being no breakpoint on this CPU. This is because the call > >

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Thu, 2012-08-16 at 21:17 +1000, Michael Neuling wrote: > Peter, > > > > On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, > > > despite there being no breakpoint on this CPU. This is because the call > > > the task_bp_pinned, checks all CPUs, rather than just the

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Neuling
Peter, > > On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, > > despite there being no breakpoint on this CPU. This is because the call > > the task_bp_pinned, checks all CPUs, rather than just the current CPU. > > POWER7 only has one hardware breakpoint per CPU (ie.

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Thu, 2012-08-16 at 14:23 +1000, Michael Neuling wrote: > > On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, > despite there being no breakpoint on this CPU. This is because the call > the task_bp_pinned, checks all CPUs, rather than just the current CPU. > POWER7 only

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Thu, 2012-08-16 at 14:23 +1000, Michael Neuling wrote: On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, despite there being no breakpoint on this CPU. This is because the call the task_bp_pinned, checks all CPUs, rather than just the current CPU. POWER7 only has

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Neuling
Peter, On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, despite there being no breakpoint on this CPU. This is because the call the task_bp_pinned, checks all CPUs, rather than just the current CPU. POWER7 only has one hardware breakpoint per CPU (ie. HBP_NUM=1),

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Thu, 2012-08-16 at 21:17 +1000, Michael Neuling wrote: Peter, On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, despite there being no breakpoint on this CPU. This is because the call the task_bp_pinned, checks all CPUs, rather than just the current CPU.

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Ellerman
On Thu, 2012-08-16 at 13:44 +0200, Peter Zijlstra wrote: On Thu, 2012-08-16 at 21:17 +1000, Michael Neuling wrote: Peter, On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, despite there being no breakpoint on this CPU. This is because the call the

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Peter Zijlstra
On Fri, 2012-08-17 at 00:02 +1000, Michael Ellerman wrote: You do want to guarantee that the task will always be subject to the breakpoint, even if it moves cpus. So is there any way to guarantee that other than reserving a breakpoint slot on every cpu ahead of time? That's not how regular

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Neuling
On this second syscall, fetch_bp_busy_slots() sets slots.pinned to be 1, despite there being no breakpoint on this CPU. This is because the call the task_bp_pinned, checks all CPUs, rather than just the current CPU. POWER7 only has one hardware breakpoint per CPU (ie. HBP_NUM=1),

Re: powerpc/perf: hw breakpoints return ENOSPC

2012-08-16 Thread Michael Ellerman
On Thu, 2012-08-16 at 16:15 +0200, Peter Zijlstra wrote: On Fri, 2012-08-17 at 00:02 +1000, Michael Ellerman wrote: You do want to guarantee that the task will always be subject to the breakpoint, even if it moves cpus. So is there any way to guarantee that other than reserving a breakpoint

powerpc/perf: hw breakpoints return ENOSPC

2012-08-15 Thread Michael Neuling
Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on device). /bin/dmesg may provide additional information. Fatal: No

powerpc/perf: hw breakpoints return ENOSPC

2012-08-15 Thread Michael Neuling
Hi, I've been trying to get hardware breakpoints with perf to work on POWER7 but I'm getting the following: % perf record -e mem:0x1000 true Error: sys_perf_event_open() syscall returned with 28 (No space left on device). /bin/dmesg may provide additional information. Fatal: No