[lttng-dev] Alternative to signals/sys_membarrier() in liburcu
Michael Sullivan
sully at msully.net
Thu Mar 12 12:04:07 EDT 2015
On Thu, Mar 12, 2015 at 10:57 AM, Mathieu Desnoyers <
mathieu.desnoyers at efficios.com> wrote:
>
> Even though it depends on internal behavior not currently specified by
> mprotect,
> I'd very much like to see the prototype you have,
>
>
I ended up posting my code at
https://github.com/msullivan/userspace-rcu/tree/msync-barrier.
The interesting patch is
https://github.com/msullivan/userspace-rcu/commit/04656b468d418efbc5d934ab07954eb8395a7ab0
.
Quick blog post I wrote about it at
http://www.msully.net/blog/2015/02/24/forcing-memory-barriers-on-other-cpus-with-mprotect2/
.
(I talked briefly about sys_membarrier in the post as best as I could piece
together from LKML; if my comment on it is inaccurate I can edit the post.)
-Michael Sullivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150312/00c9bb81/attachment.html>
More information about the lttng-dev
mailing list