[ltt-dev] [PATCH RFC urcu 0/2] v2 allow multiple URCU flavors in one executable
Paul E. McKenney
paulmck at linux.vnet.ibm.com
Tue Apr 12 23:51:10 EDT 2011
Hello!
The following set 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.
3. Apply feedback from v1 review.
4. Extend symbol mapping to include defer_rcu().
This does not yet centralize pthread_atfork() handling, nor does it
combine all the binaries into a single dynamic library. This latter
is enabled by the name mapping.
Further thoughts?
Thanx, Paul
Makefile.am | 4
README | 20 -
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-map.h | 61 ++++
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-defer-impl.h | 450 +++++++++++++++++++++++++++++++++++
b/urcu-map.h | 117 +++++++++
b/urcu-qsbr-map.h | 63 ++++
b/urcu-qsbr.c | 36 +-
b/urcu-qsbr.h | 18 -
b/urcu.c | 5
b/urcu.h | 20 +
tests/Makefile.am | 2
urcu-bp-map.h | 6
urcu-bp.c | 1
urcu-bp.h | 5
urcu-defer-static.h | 108 --------
urcu-defer.c | 385 ------------------------------
urcu-map.h | 26 ++
urcu-qsbr-map.h | 6
urcu-qsbr.c | 1
urcu-qsbr.h | 11
urcu.c | 1
urcu.h | 13 -
32 files changed, 1497 insertions(+), 1195 deletions(-)
More information about the lttng-dev
mailing list