[ltt-dev] [PATCH RFC urcu 0/2] allow multiple URCU flavors in one executable

Paul E. McKenney paulmck at linux.vnet.ibm.com
Wed Mar 23 14:36:35 EDT 2011


Hello!

The following pair of patches permits a single executable to use
multiple flavors of URCU without resorting to linker tricks.  The
approach is to map each flavor to a different namespace.  The patches
are as follows:

1.	Provide pthread_atfork-friendly interfaces.
2.	Map symbols to allow multiple flavors of URCU to be mixed.

This does not yet centralize pthread_atfork() handling, nor does it
yet map defer_rcu() and friends.

Thoughts?

							Thanx, Paul

 a/urcu-call-rcu.c      |  620 -------------------------------------------------
 b/Makefile.am          |    3 
 b/README               |    4 
 b/tests/Makefile.am    |   33 +-
 b/tests/rcutorture.h   |    1 
 b/tests/urcutorture.c  |   13 -
 b/urcu-bp.c            |    4 
 b/urcu-bp.h            |    8 
 b/urcu-call-rcu-impl.h |  618 ++++++++++++++++++++++++++++++++++++++++++++++++
 b/urcu-call-rcu.c      |   29 ++
 b/urcu-qsbr.c          |   36 +-
 b/urcu-qsbr.h          |   18 -
 b/urcu.c               |    5 
 b/urcu.h               |   20 +
 14 files changed, 736 insertions(+), 676 deletions(-)




More information about the lttng-dev mailing list