Thread (96 messages) 96 messages, 15 authors, 2013-11-08

RE: perf events ring buffer memory barrier on powerpc

From: David Laight <hidden>
Date: 2013-11-01 16:27:30
Also in: lkml

But "broken" compiler is much wider issue to be deeply discussed in =
this
thread. I'm pretty sure that kernel have tons of very subtle
code that actually creates locks and memory ordering. Such code
usually just use the "barrier()"  approach to tell gcc not to combine
or move memory accesses around it.
gcc will do unexpected memory accesses for bit fields that are
adjacent to volatile data.
In particular it may generate 64bit sized (and aligned) RMW cycles
when accessing bit fields.
And yes, this has caused real problems.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help