[oe-commits] Tom Rini : ust / userspace-rcu: Add recipes

git version control git at git.openembedded.org
Fri Dec 10 19:53:31 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 7ebbccee5eea68a1b7b5505aa8708e0eb547d135
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=7ebbccee5eea68a1b7b5505aa8708e0eb547d135

Author: Tom Rini <tom_rini at mentor.com>
Date:   Fri Dec 10 12:51:38 2010 -0700

ust / userspace-rcu: Add recipes

Based on Esben Haabendal's recipes.

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/lttng/userspace-rcu.inc      |   13 +++++++++++
 recipes/lttng/userspace-rcu_0.4.6.bb |    3 ++
 recipes/lttng/ust.inc                |   40 ++++++++++++++++++++++++++++++++++
 recipes/lttng/ust/ustd.init          |   22 ++++++++++++++++++
 recipes/lttng/ust_0.8.bb             |    3 ++
 5 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/recipes/lttng/userspace-rcu.inc b/recipes/lttng/userspace-rcu.inc
new file mode 100644
index 0000000..592b598
--- /dev/null
+++ b/recipes/lttng/userspace-rcu.inc
@@ -0,0 +1,13 @@
+DESCRIPTION = "Userspace RCU - liburcu is a userspace RCU (read-copy-update) library."
+SECTION = "libs"
+PRIORITY = "optional"
+PROVIDES = "liburcu"
+LICENSE = "LGPLv2.1"
+
+PR = "r1"
+
+SRC_URI = "http://lttng.org/files/urcu/userspace-rcu-${PV}.tar.bz2"
+
+S = "${WORKDIR}/userspace-rcu-${PV}"
+
+inherit autotools
diff --git a/recipes/lttng/userspace-rcu_0.4.6.bb b/recipes/lttng/userspace-rcu_0.4.6.bb
new file mode 100644
index 0000000..281becb
--- /dev/null
+++ b/recipes/lttng/userspace-rcu_0.4.6.bb
@@ -0,0 +1,3 @@
+require ${PN}.inc
+SRC_URI[md5sum] = "bd3403e7e5688d418bd0c778261c7782"
+SRC_URI[sha256sum] = "6ccf6c78bc8f825b94adf4976be77c194d98c2351d4a21e0cc7275e12a8a74d0"
diff --git a/recipes/lttng/ust.inc b/recipes/lttng/ust.inc
new file mode 100644
index 0000000..26e4d42
--- /dev/null
+++ b/recipes/lttng/ust.inc
@@ -0,0 +1,40 @@
+DESCRIPTION = "LTTng Userspace Tracer (UST)"
+SECTION = "devel"
+PRIORITY = "optional"
+LICENSE = "GPLv2 and LGPLv2.1"
+DEPENDS = "liburcu"
+
+PR = "r3"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "ustd"
+INITSCRIPT_PARAMS = "defaults 99 0"
+
+UST_BASEDIR = "/tmp/ust"
+
+SRC_URI = "http://lttng.org/files/ust/releases/ust-${PV}.tar.gz \
+	file://ustd.init"
+
+S = "${WORKDIR}/ust-${PV}"
+
+inherit autotools
+
+do_compile_append () {
+	sed -e 's|^#!/bin/bash$|#!/bin/sh|' \
+	    -e 's/^function \(.*() *{\)$/\1/' \
+	    -e 's|^\(BASE_TRACE_DIR\)=.*|\1="${UST_BASEDIR}"|' \
+	    -e 's/\(.*\)="$(<\(.*\))"/\1=`cat \2`/' \
+	    -e 's/^\(DATESTRING\)=.*/\1="$(date +%Y%m%d%H%M%S)"/' \
+	    -i ${S}/usttrace
+	sed -e 's|^\(TRACEDIR\)=.*|\1="${UST_BASEDIR}"|' \
+	    -i ${WORKDIR}/ustd.init
+}
+
+do_install_append () {
+        install -d ${D}${sysconfdir}/init.d/
+        install -m 0755 ${WORKDIR}/ustd.init ${D}${sysconfdir}/init.d/ustd
+}
+
+# Need the .so symlinks for preload to work
+FILES_${PN} += "${libdir}/libust*.so"
diff --git a/recipes/lttng/ust/ustd.init b/recipes/lttng/ust/ustd.init
new file mode 100644
index 0000000..c23372a
--- /dev/null
+++ b/recipes/lttng/ust/ustd.init
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+PIDFILE="/var/run/ustd.pid"
+TRACEDIR="/tmp/ust"
+
+case "$1" in
+
+    start)
+	mkdir -p $TRACEDIR
+	ustd -o $TRACEDIR -d --pidfile $PIDFILE
+	;;
+
+    stop)
+	kill `cat $PIDFILE`
+	;;
+
+    reload)
+	$0 stop
+	$0 start
+	;;
+
+esac
diff --git a/recipes/lttng/ust_0.8.bb b/recipes/lttng/ust_0.8.bb
new file mode 100644
index 0000000..16fc45b
--- /dev/null
+++ b/recipes/lttng/ust_0.8.bb
@@ -0,0 +1,3 @@
+require ${PN}.inc
+SRC_URI[md5sum] = "333ff7c8fef92b31dff85789865bb791"
+SRC_URI[sha256sum] = "802398bc2c3ad5c80bd236d1ee24968f4da8a1401695e8dc15cb396ac836abb4"





More information about the Openembedded-commits mailing list