Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [ltt-dev] [PATCH RFC urcu 0/2] v2 allow multiple URCU flavors in one executable
@ 2011-04-13  3:51 Paul E. McKenney
  2011-04-13  3:52 ` [ltt-dev] [PATCH RFC urcu 1/4] Provide pthread_atfork-friendly interfaces Paul E. McKenney
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Paul E. McKenney @ 2011-04-13  3:51 UTC (permalink / raw)


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(-)




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-04-14  0:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-13  3:51 [ltt-dev] [PATCH RFC urcu 0/2] v2 allow multiple URCU flavors in one executable Paul E. McKenney
2011-04-13  3:52 ` [ltt-dev] [PATCH RFC urcu 1/4] Provide pthread_atfork-friendly interfaces Paul E. McKenney
2011-04-13 21:21   ` Mathieu Desnoyers
2011-04-13 21:26     ` Mathieu Desnoyers
2011-04-13  3:52 ` [ltt-dev] [PATCH RFC urcu 2/4] Map symbols to allow multiple RCU flavors to be used in one binary Paul E. McKenney
2011-04-13 21:24   ` Mathieu Desnoyers
     [not found]   ` <BLU0-SMTP10190BBFDDC955B267796E196AA0@phx.gbl>
2011-04-14  0:10     ` [ltt-dev] [rp] " Paul E. McKenney
2011-04-13  3:52 ` [ltt-dev] [PATCH RFC urcu 3/4] Allow taking address of rcu_read_lock() and rcu_read_unlock() Paul E. McKenney
2011-04-13  3:52 ` [ltt-dev] [PATCH RFC urcu 4/4] Make defer_rcu() usable from library using multiple URCU implementations Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox