Re: powerpc/perf: hw breakpoints return ENOSPC

From
Peter Zijlstra <hidden>
Date
2012-08-16 07:40:32
Also in
lkml
Reply to
Michael Neuling, 2012-08-16
On Thu, 2012-08-16 at 14:23 +1000, Michael Neuling wrote:
=20
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=3D1), so we
return ENOSPC.
I think this comes from the ptrace legacy, we register a breakpoint on
all cpus because when we migrate a task it cannot fail to migrate the
breakpoint.

Its one of the things I hate most about the hwbp stuff as it relates to
perf.

Frederic knows more...
Thread (13 messages) 13 messages, 5 authors, last reply 2012-09-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help