mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Add the userspace RCU library
@ 2011-12-25 19:33 Juergen Beisert
  2012-01-04  9:57 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Juergen Beisert @ 2011-12-25 19:33 UTC (permalink / raw)
  To: ptxdist

From its README:
This data synchronization library provides read-side access which scales
linearly with the number of cores. It does so by allowing multiples copies
of a given data structure to live at the same time, and by monitoring the data
structure accesses to detect grace periods after which memory reclamation is
possible.
    
Supported architectures are: x86, PPC and ARM.
    
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

diff --git a/rules/userspace-rcu.in b/rules/userspace-rcu.in
new file mode 100644
index 0000000..26bcdba
--- /dev/null
+++ b/rules/userspace-rcu.in
@@ -0,0 +1,25 @@
+## SECTION=system_libraries
+
+menuconfig USERSPACE_RCU
+	tristate
+	prompt "libuserspace-rcu              "
+	select GLIBC_PTHREAD
+	help
+	  liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This
+	  data synchronization library provides read-side access which scales
+	  linearly with the number of cores. It does so by allowing multiples
+	  copies of a given data structure to live at the same time, and by
+	  monitoring the data structure accesses to detect grace periods after
+	  which memory reclamation is possible.
+
+if USERSPACE_RCU
+
+config USERSPACE_RCU_SMP
+	bool
+	prompt "SMP support"
+	default y
+	help
+	  Provide SMP support. Warning: Disable this only on real uniprocessor
+	  systems.
+
+endif
diff --git a/rules/userspace-rcu.make b/rules/userspace-rcu.make
new file mode 100644
index 0000000..d896aa6
--- /dev/null
+++ b/rules/userspace-rcu.make
@@ -0,0 +1,73 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by Juergen Beisert <jbe@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_USERSPACE_RCU) += userspace-rcu
+
+#
+# Paths and names
+#
+USERSPACE_RCU_VERSION	:= 0.6.7
+USERSPACE_RCU_MD5	:= 2705dadd65beda8e8960472c082e44b3
+USERSPACE_RCU		:= userspace-rcu-$(USERSPACE_RCU_VERSION)
+USERSPACE_RCU_SUFFIX	:= tar.bz2
+USERSPACE_RCU_URL	:= http://lttng.org/files/urcu/$(USERSPACE_RCU).$(USERSPACE_RCU_SUFFIX)
+USERSPACE_RCU_SOURCE	:= $(SRCDIR)/$(USERSPACE_RCU).$(USERSPACE_RCU_SUFFIX)
+USERSPACE_RCU_DIR	:= $(BUILDDIR)/$(USERSPACE_RCU)
+USERSPACE_RCU_LICENSE	:= LGPLv2.1
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+USERSPACE_RCU_CONF_TOOL	:= autoconf
+USERSPACE_RCU_CONF_OPT	:= $(CROSS_AUTOCONF_USR) \
+	--enable-silent-rules \
+	--disable-dependency-tracking \
+	--enable-shared \
+	--disable-static
+
+ifdef PTXCONF_USERSPACE_RCU_SMP
+USERSPACE_RCU_CONF_OPT	+= --enable-smp-support
+else
+USERSPACE_RCU_CONF_OPT	+= --disable-smp-support
+endif
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/userspace-rcu.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, userspace-rcu)
+	@$(call install_fixup, userspace-rcu,PRIORITY,optional)
+	@$(call install_fixup, userspace-rcu,SECTION,base)
+	@$(call install_fixup, userspace-rcu,AUTHOR,"Juergen Beisert <jbe@pengutronix.de>")
+	@$(call install_fixup, userspace-rcu,DESCRIPTION,"Userspace RCU")
+
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-bp)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-cds)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-common)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-mb)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-qsbr)
+	@$(call install_lib, userspace-rcu, 0, 0, 0644, liburcu-signal)
+
+	@$(call install_finish, userspace-rcu)
+
+	@$(call touch)
+
+# vim: syntax=make

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2012-01-04  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-25 19:33 [ptxdist] [PATCH] Add the userspace RCU library Juergen Beisert
2012-01-04  9:57 ` Michael Olbrich

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