summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-01-31 19:40:02 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2012-01-31 22:43:36 (GMT)
commitdc77b0824e6d7adf40b4543243cbca8d8d03695b (patch)
tree6dd75cec555fbee0a709d5f54a26e7458864fb50
parent16891da22d99ec73696aa22c7564083146d664ec (diff)
downloadbuildroot-dc77b0824e6d7adf40b4543243cbca8d8d03695b.tar.gz
buildroot-dc77b0824e6d7adf40b4543243cbca8d8d03695b.tar.bz2
lttng-libust: new package
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/Config.in1
-rw-r--r--package/lttng-libust/Config.in10
-rw-r--r--package/lttng-libust/lttng-libust-fix-overflow-32-bits.patch26
-rw-r--r--package/lttng-libust/lttng-libust.mk8
4 files changed, 45 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index d437e6e..ed91605 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -378,6 +378,7 @@ source "package/libical/Config.in"
source "package/libnspr/Config.in"
source "package/libsigc/Config.in"
source "package/liburcu/Config.in"
+source "package/lttng-libust/Config.in"
source "package/orc/Config.in"
source "package/poco/Config.in"
source "package/startup-notification/Config.in"
diff --git a/package/lttng-libust/Config.in b/package/lttng-libust/Config.in
new file mode 100644
index 0000000..335a956
--- /dev/null
+++ b/package/lttng-libust/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LTTNG_LIBUST
+ bool "lttng-libust"
+ select BR2_PACKAGE_LIBURCU
+ help
+ Userspace tracing library for the Lttng tracing
+ infrastructure. It allows userspace programs to create
+ custom trace events that are integrated with all other
+ events gathered by LTTng.
+
+ http://lttng.org
diff --git a/package/lttng-libust/lttng-libust-fix-overflow-32-bits.patch b/package/lttng-libust/lttng-libust-fix-overflow-32-bits.patch
new file mode 100644
index 0000000..c2a4dd2
--- /dev/null
+++ b/package/lttng-libust/lttng-libust-fix-overflow-32-bits.patch
@@ -0,0 +1,26 @@
+From dc190cc1f8ddccfa7b0b8323ed157afb29a0ebb7 Mon Sep 17 00:00:00 2001
+From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+Date: Wed, 21 Dec 2011 16:24:48 -0500
+Subject: [PATCH] Fix clock source overflow on 32-bit archs
+
+Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+---
+ liblttng-ust/clock.h | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/liblttng-ust/clock.h b/liblttng-ust/clock.h
+index b5d3e77..23294d2 100644
+--- a/liblttng-ust/clock.h
++++ b/liblttng-ust/clock.h
+@@ -39,7 +39,7 @@ static __inline__ uint64_t trace_clock_read64(void)
+ struct timespec ts;
+
+ clock_gettime(CLOCK_MONOTONIC, &ts);
+- return (ts.tv_sec * 1000000000) + ts.tv_nsec;
++ return ((uint64_t) ts.tv_sec * 1000000000ULL) + ts.tv_nsec;
+ }
+
+ static __inline__ uint32_t trace_clock_freq_scale(void)
+--
+1.7.2.5
+
diff --git a/package/lttng-libust/lttng-libust.mk b/package/lttng-libust/lttng-libust.mk
new file mode 100644
index 0000000..a2cef2a
--- /dev/null
+++ b/package/lttng-libust/lttng-libust.mk
@@ -0,0 +1,8 @@
+LTTNG_LIBUST_SITE = http://lttng.org/files/bundles/20111214/
+LTTNG_LIBUST_VERSION = 1.9.2
+LTTNG_LIBUST_SOURCE = lttng-ust-$(LTTNG_LIBUST_VERSION).tar.gz
+
+LTTNG_LIBUST_INSTALL_STAGING = YES
+LTTNG_LIBUST_DEPENDENCIES = liburcu
+
+$(eval $(call AUTOTARGETS))