Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: paulmck@linux.vnet.ibm.com (Paul E. McKenney)
Subject: [ltt-dev] [PATCH RFC urcu 0/2] v2 allow multiple URCU flavors in one executable
Date: Tue, 12 Apr 2011 20:51:10 -0700	[thread overview]
Message-ID: <20110413035110.GA26549@linux.vnet.ibm.com> (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(-)




             reply	other threads:[~2011-04-13  3:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13  3:51 Paul E. McKenney [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110413035110.GA26549@linux.vnet.ibm.com \
    --to=paulmck@linux.vnet.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox