Re: powerpc/perf: hw breakpoints return ENOSPC

From
Peter Zijlstra <hidden>
Date
2012-08-16 14:15:31
Also in
lkml
Reply to
Michael Ellerman, 2012-08-16
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?=20
That's not how regular perf works.. regular perf can overload hw
resources at will and stuff is strictly per-cpu.

So the regular perf record has perf_event_attr::inherit enabled by
default, this will result in it creating a per-task-per-cpu event for
each cpu and this will succeed because there's no strict reservation to
avoid/detect starvation against perf_event_attr::pinned events.

For regular (!pinned) events, we'll RR the created events on the
available hardware resources.

HWBP does things completely different and reserves a slot over all CPUs
for everything, thus stuff completely falls apart.
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