aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/lttng/ust
diff options
context:
space:
mode:
authorTom Rini <tom_rini@mentor.com>2010-12-10 12:51:38 -0700
committerTom Rini <tom_rini@mentor.com>2010-12-10 12:52:43 -0700
commit7ebbccee5eea68a1b7b5505aa8708e0eb547d135 (patch)
tree1d361f23d0815067f1e3b87f5508dbf72da5e376 /recipes/lttng/ust
parentb9539b9e75aabbb6f2f99b35abaf6aa9e5e388fc (diff)
downloadopenembedded-7ebbccee5eea68a1b7b5505aa8708e0eb547d135.tar.gz
ust / userspace-rcu: Add recipes
Based on Esben Haabendal's recipes. Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/lttng/ust')
-rw-r--r--recipes/lttng/ust/ustd.init22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/lttng/ust/ustd.init b/recipes/lttng/ust/ustd.init
new file mode 100644
index 0000000000..c23372a588
--- /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