* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
@ 2012-01-31 19:39 ` Thomas Petazzoni
2012-01-31 22:30 ` Peter Korsgaard
2012-02-09 22:58 ` Arnout Vandecappelle
2012-01-31 19:40 ` [Buildroot] [PATCH 2/8] liburcu: new package Thomas Petazzoni
` (6 subsequent siblings)
7 siblings, 2 replies; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:39 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
linux/linux.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/linux/linux.mk b/linux/linux.mk
index 5c5a1d2..dbe1ad7 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -40,7 +40,8 @@ LINUX_MAKE_FLAGS = \
ARCH=$(KERNEL_ARCH) \
INSTALL_MOD_PATH=$(TARGET_DIR) \
CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
- LZMA="$(LZMA)"
+ LZMA="$(LZMA)" \
+ DEPMOD=$(HOST_DIR)/usr/sbin/depmod
# Get the real Linux version, which tells us where kernel modules are
# going to be installed in the target filesystem.
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-01-31 19:39 ` [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR Thomas Petazzoni
@ 2012-01-31 22:30 ` Peter Korsgaard
2012-02-01 8:12 ` Thomas Petazzoni
2012-02-09 22:58 ` Arnout Vandecappelle
1 sibling, 1 reply; 24+ messages in thread
From: Peter Korsgaard @ 2012-01-31 22:30 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> ---
Thomas> linux/linux.mk | 3 ++-
Thomas> 1 files changed, 2 insertions(+), 1 deletions(-)
Thomas> diff --git a/linux/linux.mk b/linux/linux.mk
Thomas> index 5c5a1d2..dbe1ad7 100644
Thomas> --- a/linux/linux.mk
Thomas> +++ b/linux/linux.mk
Thomas> @@ -40,7 +40,8 @@ LINUX_MAKE_FLAGS = \
Thomas> ARCH=$(KERNEL_ARCH) \
Thomas> INSTALL_MOD_PATH=$(TARGET_DIR) \
Thomas> CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
Thomas> - LZMA="$(LZMA)"
Thomas> + LZMA="$(LZMA)" \
Thomas> + DEPMOD=$(HOST_DIR)/usr/sbin/depmod
Committed, thanks. Not released to this patch, but is the LZMA stuff
still used/needed?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-01-31 22:30 ` Peter Korsgaard
@ 2012-02-01 8:12 ` Thomas Petazzoni
2012-02-01 11:49 ` Peter Korsgaard
0 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-02-01 8:12 UTC (permalink / raw)
To: buildroot
Le Tue, 31 Jan 2012 23:30:36 +0100,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>
> Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Thomas> ---
> Thomas> linux/linux.mk | 3 ++-
> Thomas> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> Thomas> diff --git a/linux/linux.mk b/linux/linux.mk
> Thomas> index 5c5a1d2..dbe1ad7 100644
> Thomas> --- a/linux/linux.mk
> Thomas> +++ b/linux/linux.mk
> Thomas> @@ -40,7 +40,8 @@ LINUX_MAKE_FLAGS = \
> Thomas> ARCH=$(KERNEL_ARCH) \
> Thomas> INSTALL_MOD_PATH=$(TARGET_DIR) \
> Thomas> CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
> Thomas> - LZMA="$(LZMA)"
> Thomas> + LZMA="$(LZMA)" \
> Thomas> + DEPMOD=$(HOST_DIR)/usr/sbin/depmod
>
> Committed, thanks. Not released to this patch, but is the LZMA stuff
> still used/needed?
It has been added by
http://git.buildroot.net/buildroot/commit/target/linux/Makefile.in?id=ea8b1fa6a60705eedc5bd4f405f45c8f531c2126,
which is a bit limited in details on why it was needed. I guess the
goal was to tell the Linux build process to use the lzma utility built
for the host by Buildroot, in case the Linux kernel is built (or the
initramfs) with LZMA compression. But that remains to be verified.
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-02-01 8:12 ` Thomas Petazzoni
@ 2012-02-01 11:49 ` Peter Korsgaard
2012-02-09 22:54 ` Arnout Vandecappelle
0 siblings, 1 reply; 24+ messages in thread
From: Peter Korsgaard @ 2012-02-01 11:49 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>> Committed, thanks. Not released to this patch, but is the LZMA stuff
>> still used/needed?
Thomas> It has been added by
Thomas> http://git.buildroot.net/buildroot/commit/target/linux/Makefile.in?id=ea8b1fa6a60705eedc5bd4f405f45c8f531c2126,
Thomas> which is a bit limited in details on why it was needed. I guess the
Thomas> goal was to tell the Linux build process to use the lzma utility built
Thomas> for the host by Buildroot, in case the Linux kernel is built (or the
Thomas> initramfs) with LZMA compression. But that remains to be verified.
Yes, I know - But I don't see anything using it right away grepping the
kernel. I just wondered if anyone remembered what it was used for (and
if it still is)?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-02-01 11:49 ` Peter Korsgaard
@ 2012-02-09 22:54 ` Arnout Vandecappelle
2012-02-10 9:43 ` Peter Korsgaard
0 siblings, 1 reply; 24+ messages in thread
From: Arnout Vandecappelle @ 2012-02-09 22:54 UTC (permalink / raw)
To: buildroot
On Wednesday 01 February 2012 12:49:16 Peter Korsgaard wrote:
> >>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>
> >> Committed, thanks. Not released to this patch, but is the LZMA stuff
> >> still used/needed?
>
> Thomas> It has been added by
> Thomas> http://git.buildroot.net/buildroot/commit/target/linux/Makefile.in?id=ea8b1fa6a60705eedc5bd4f405f45c8f531c2126,
> Thomas> which is a bit limited in details on why it was needed. I guess the
> Thomas> goal was to tell the Linux build process to use the lzma utility built
> Thomas> for the host by Buildroot, in case the Linux kernel is built (or the
> Thomas> initramfs) with LZMA compression. But that remains to be verified.
>
> Yes, I know - But I don't see anything using it right away grepping the
> kernel. I just wondered if anyone remembered what it was used for (and
> if it still is)?
I also looked in detail at the kernel and I also don't think it can be used
by anything. Maybe it used to be used at some point, but I don't feel like
grepping through the entire kernel history to find that :-)
So I also think it can be removed. Anyway, the TARGET_PATH will make sure
that our host-lzma is used.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR
2012-01-31 19:39 ` [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR Thomas Petazzoni
2012-01-31 22:30 ` Peter Korsgaard
@ 2012-02-09 22:58 ` Arnout Vandecappelle
1 sibling, 0 replies; 24+ messages in thread
From: Arnout Vandecappelle @ 2012-02-09 22:58 UTC (permalink / raw)
To: buildroot
On Tuesday 31 January 2012 20:39:59 Thomas Petazzoni wrote:
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> ---
> linux/linux.mk | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 5c5a1d2..dbe1ad7 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -40,7 +40,8 @@ LINUX_MAKE_FLAGS = \
> ARCH=$(KERNEL_ARCH) \
> INSTALL_MOD_PATH=$(TARGET_DIR) \
> CROSS_COMPILE="$(CCACHE) $(TARGET_CROSS)" \
> - LZMA="$(LZMA)"
> + LZMA="$(LZMA)" \
> + DEPMOD=$(HOST_DIR)/usr/sbin/depmod
>
> # Get the real Linux version, which tells us where kernel modules are
> # going to be installed in the target filesystem.
>
Do you know why this is necessary in the first place? It should be
covered by the TARGET_MAKE_ENV with contains the TARGET_PATH, no?
Or is the problem that igh-ethercat and lttng-modules forget to
include TARGET_MAKE_ENV?
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 2/8] liburcu: new package
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
2012-01-31 19:39 ` [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:33 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 3/8] lttng-modules: " Thomas Petazzoni
` (5 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/liburcu/Config.in | 9 +++++++++
package/liburcu/liburcu.mk | 8 ++++++++
3 files changed, 18 insertions(+), 0 deletions(-)
create mode 100644 package/liburcu/Config.in
create mode 100644 package/liburcu/liburcu.mk
diff --git a/package/Config.in b/package/Config.in
index eb3abe8..31bee7f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -375,6 +375,7 @@ source "package/libffi/Config.in"
source "package/libglib2/Config.in"
source "package/libnspr/Config.in"
source "package/libsigc/Config.in"
+source "package/liburcu/Config.in"
source "package/orc/Config.in"
source "package/poco/Config.in"
source "package/startup-notification/Config.in"
diff --git a/package/liburcu/Config.in b/package/liburcu/Config.in
new file mode 100644
index 0000000..5a6e4b2
--- /dev/null
+++ b/package/liburcu/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBURCU
+ bool "liburcu"
+ help
+ Userspace implementation of the Read-Copy-Update (RCU)
+ synchronization mechanism. This library is mainly used by
+ the LTTng tracing infrastructure, but can be used for other
+ purposes as well.
+
+ http://lttng.org/urcu
diff --git a/package/liburcu/liburcu.mk b/package/liburcu/liburcu.mk
new file mode 100644
index 0000000..5cb6419
--- /dev/null
+++ b/package/liburcu/liburcu.mk
@@ -0,0 +1,8 @@
+LIBURCU_VERSION = 0.6.7
+LIBURCU_SITE = http://lttng.org/files/bundles/20111214/
+LIBURCU_SOURCE = userspace-rcu-$(LIBURCU_VERSION).tar.bz2
+
+LIBURCU_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS))
+
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 2/8] liburcu: new package
2012-01-31 19:40 ` [Buildroot] [PATCH 2/8] liburcu: new package Thomas Petazzoni
@ 2012-01-31 22:33 ` Peter Korsgaard
2012-01-31 22:43 ` Michael S. Zick
0 siblings, 1 reply; 24+ messages in thread
From: Peter Korsgaard @ 2012-01-31 22:33 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thomas> ---
Thomas> package/Config.in | 1 +
Thomas> package/liburcu/Config.in | 9 +++++++++
Thomas> package/liburcu/liburcu.mk | 8 ++++++++
Thomas> 3 files changed, 18 insertions(+), 0 deletions(-)
Thomas> create mode 100644 package/liburcu/Config.in
Thomas> create mode 100644 package/liburcu/liburcu.mk
Thomas> diff --git a/package/Config.in b/package/Config.in
Thomas> index eb3abe8..31bee7f 100644
Thomas> --- a/package/Config.in
Thomas> +++ b/package/Config.in
Thomas> @@ -375,6 +375,7 @@ source "package/libffi/Config.in"
Thomas> source "package/libglib2/Config.in"
Thomas> source "package/libnspr/Config.in"
Thomas> source "package/libsigc/Config.in"
Thomas> +source "package/liburcu/Config.in"
This no longer applied because libical has been added, but I fixed that
up and committed, thanks.
Thomas> +++ b/package/liburcu/liburcu.mk
Thomas> @@ -0,0 +1,8 @@
Thomas> +LIBURCU_VERSION = 0.6.7
Thomas> +LIBURCU_SITE = http://lttng.org/files/bundles/20111214/
Thomas> +LIBURCU_SOURCE = userspace-rcu-$(LIBURCU_VERSION).tar.bz2
Thomas> +
Thomas> +LIBURCU_INSTALL_STAGING = YES
Thomas> +
Thomas> +$(eval $(call AUTOTARGETS))
Thomas> +
Heh, you used to forget the final newlines, and now you're added too
many ;)
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 3/8] lttng-modules: new package
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
2012-01-31 19:39 ` [Buildroot] [PATCH 1/8] linux: use the depmod built in HOST_DIR Thomas Petazzoni
2012-01-31 19:40 ` [Buildroot] [PATCH 2/8] liburcu: new package Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:43 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 4/8] lttng-libust: " Thomas Petazzoni
` (4 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/lttng-modules/Config.in | 18 ++++++++++++++++++
package/lttng-modules/lttng-modules.mk | 16 ++++++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)
create mode 100644 package/lttng-modules/Config.in
create mode 100644 package/lttng-modules/lttng-modules.mk
diff --git a/package/Config.in b/package/Config.in
index 31bee7f..d016ac2 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -24,6 +24,7 @@ source "package/kexec/Config.in"
source "package/lmbench/Config.in"
source "package/lsof/Config.in"
source "package/ltp-testsuite/Config.in"
+source "package/lttng-modules/Config.in"
source "package/ltrace/Config.in"
source "package/memstat/Config.in"
source "package/netperf/Config.in"
diff --git a/package/lttng-modules/Config.in b/package/lttng-modules/Config.in
new file mode 100644
index 0000000..2a0f938
--- /dev/null
+++ b/package/lttng-modules/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LTTNG_MODULES
+ bool "lttng-modules"
+ depends on BR2_LINUX_KERNEL
+ help
+ Kernel modules for the LTTng 2.0 kernel tracing
+ infrastructure.
+
+ Your kernel must have CONFIG_TRACEPOINTS enabled for this
+ package to build something useful. You may also want to have
+ CONFIG_PERF_EVENTS to access perf event counters from
+ ltt-ng. Note that system call tracing is only available on
+ architectures that support CONFIG_HAVE_SYSCALL_TRACEPOINTS.
+
+ The packaged version is compatible with kernel 2.6.38,
+ 2.6.39, 3.0 and 3.1.0. See
+ http://lttng.org/files/bundles/20111214/README.compatible.kernels.txt
+
+ http://lttng.org
diff --git a/package/lttng-modules/lttng-modules.mk b/package/lttng-modules/lttng-modules.mk
new file mode 100644
index 0000000..450a40c
--- /dev/null
+++ b/package/lttng-modules/lttng-modules.mk
@@ -0,0 +1,16 @@
+LTTNG_MODULES_VERSION = 2.0-pre11
+LTTNG_MODULES_SITE = http://lttng.org/files/bundles/20111214/
+LTTNG_MODULES_SOURCE = lttng-modules-$(LTTNG_MODULES_VERSION).tar.bz2
+
+LTTNG_MODULES_DEPENDENCIES = linux
+
+define LTTNG_MODULES_BUILD_CMDS
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNELDIR=$(LINUX_DIR)
+endef
+
+define LTTNG_MODULES_INSTALL_TARGET_CMDS
+ $(MAKE) -C $(@D) $(LINUX_MAKE_FLAGS) KERNELDIR=$(LINUX_DIR) modules_install
+endef
+
+$(eval $(call GENTARGETS))
+
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 4/8] lttng-libust: new package
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
` (2 preceding siblings ...)
2012-01-31 19:40 ` [Buildroot] [PATCH 3/8] lttng-modules: " Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:43 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 5/8] lttng-tools: " Thomas Petazzoni
` (3 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/lttng-libust/Config.in | 10 +++++++
.../lttng-libust-fix-overflow-32-bits.patch | 26 ++++++++++++++++++++
package/lttng-libust/lttng-libust.mk | 8 ++++++
4 files changed, 45 insertions(+), 0 deletions(-)
create mode 100644 package/lttng-libust/Config.in
create mode 100644 package/lttng-libust/lttng-libust-fix-overflow-32-bits.patch
create mode 100644 package/lttng-libust/lttng-libust.mk
diff --git a/package/Config.in b/package/Config.in
index d016ac2..1ee9ed3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -377,6 +377,7 @@ source "package/libglib2/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))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 5/8] lttng-tools: new package
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
` (3 preceding siblings ...)
2012-01-31 19:40 ` [Buildroot] [PATCH 4/8] lttng-libust: " Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:46 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 6/8] popt: add host variant for host-lttng-babeltrace Thomas Petazzoni
` (2 subsequent siblings)
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/lttng-tools/Config.in | 20 ++++++++++++++++++++
package/lttng-tools/lttng-tools.mk | 12 ++++++++++++
3 files changed, 33 insertions(+), 0 deletions(-)
create mode 100644 package/lttng-tools/Config.in
create mode 100644 package/lttng-tools/lttng-tools.mk
diff --git a/package/Config.in b/package/Config.in
index 1ee9ed3..3640183 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -25,6 +25,7 @@ source "package/lmbench/Config.in"
source "package/lsof/Config.in"
source "package/ltp-testsuite/Config.in"
source "package/lttng-modules/Config.in"
+source "package/lttng-tools/Config.in"
source "package/ltrace/Config.in"
source "package/memstat/Config.in"
source "package/netperf/Config.in"
diff --git a/package/lttng-tools/Config.in b/package/lttng-tools/Config.in
new file mode 100644
index 0000000..cc74966
--- /dev/null
+++ b/package/lttng-tools/Config.in
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LTTNG_TOOLS
+ bool "lttng-tools"
+ depends on BR2_PACKAGE_LTTNG_MODULES
+ select BR2_PACKAGE_LIBURCU
+ select BR2_PACKAGE_POPT
+ select BR2_PACKAGE_LTTNG_LIBUST
+ help
+ Userspace utilities for the LTTng 2.0 tracing
+ infrastructure.
+
+ Those utilities are required on the target system to start
+ and stop tracing sessions. Analysis of the trace can be done
+ on the host machine using the babeltrace utility. This
+ utility is automatically built by Buildroot in
+ $(O)/host/usr/bin/babeltrace, as a dependency of
+ lttng-tools. However, there is also a lttng-babeltrace
+ package for the target, if babeltrace on the target is
+ interesting.
+
+ http://lttng.org
diff --git a/package/lttng-tools/lttng-tools.mk b/package/lttng-tools/lttng-tools.mk
new file mode 100644
index 0000000..087c37b
--- /dev/null
+++ b/package/lttng-tools/lttng-tools.mk
@@ -0,0 +1,12 @@
+LTTNG_TOOLS_VERSION = 2.0-pre15
+LTTNG_TOOLS_SITE = http://lttng.org/files/bundles/20111214/
+LTTNG_TOOLS_SOURCE = lttng-tools-$(LTTNG_TOOLS_VERSION).tar.bz2
+
+# The host-lttng-babeltrace technically isn't a required build
+# dependency. However, having the babeltrace utilities built for the
+# host is very useful, since those tools allow to convert the binary
+# trace format into an human readable format.
+LTTNG_TOOLS_DEPENDENCIES = liburcu popt host-lttng-babeltrace lttng-libust
+
+$(eval $(call AUTOTARGETS))
+
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 6/8] popt: add host variant for host-lttng-babeltrace
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
` (4 preceding siblings ...)
2012-01-31 19:40 ` [Buildroot] [PATCH 5/8] lttng-tools: " Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:49 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 7/8] util-linux: " Thomas Petazzoni
2012-01-31 19:40 ` [Buildroot] [PATCH 8/8] lttng-babeltrace: new package Thomas Petazzoni
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/popt/popt.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/popt/popt.mk b/package/popt/popt.mk
index 98f438d..fd25caa 100644
--- a/package/popt/popt.mk
+++ b/package/popt/popt.mk
@@ -16,3 +16,4 @@ POPT_CONF_OPT += --with-libiconv-prefix=$(STAGING_DIR)/usr
endif
$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 7/8] util-linux: add host variant for host-lttng-babeltrace
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
` (5 preceding siblings ...)
2012-01-31 19:40 ` [Buildroot] [PATCH 6/8] popt: add host variant for host-lttng-babeltrace Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:50 ` Peter Korsgaard
2012-01-31 19:40 ` [Buildroot] [PATCH 8/8] lttng-babeltrace: new package Thomas Petazzoni
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
lttng-babeltrace needs libuuid, which is provided by util-linux, and
since we want to build lttng-babeltrace for the host, we need to build
libuuid for the host. It's a shame that libuuid is part of such a big
package as util-linux.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/util-linux/util-linux.mk | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index a3d6e13..86d970f 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -13,6 +13,9 @@ UTIL_LINUX_DEPENDENCIES = host-pkg-config
UTIL_LINUX_CONF_OPT += --disable-rpath --disable-makeinstall-chown
+# We don't want the host-busybox dependency to be added automatically
+HOST_UTIL_LINUX_DEPENDENCIES = host-pkg-config
+
# If both util-linux and busybox are selected, make certain util-linux
# wins the fight over who gets to have their utils actually installed
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
@@ -67,7 +70,18 @@ UTIL_LINUX_CONF_OPT += \
$(if $(BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS),--enable-login-utils) \
$(if $(BR2_PACKAGE_UTIL_LINUX_WRITE),--enable-write)
+# In the host version of util-linux, we so far only require libuuid,
+# and none of the util-linux utilities, so we disable all of them.
+HOST_UTIL_LINUX_CONF_OPT += \
+ --enable-libuuid \
+ --disable-mount --disable-fsck --disable-libmount \
+ --disable-uuidd --disable-libblkid --disable-agetty \
+ --disable-cramfs --disable-switch_root --disable-pivot_root \
+ --disable-fallocate --disable-unshare --disable-rename \
+ --disable-schedutils --disable-wall --disable-partx
+
$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
# MKINSTALLDIRS comes from tweaked m4/nls.m4, but autoreconf uses staging
# one, so it disappears
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 7/8] util-linux: add host variant for host-lttng-babeltrace
2012-01-31 19:40 ` [Buildroot] [PATCH 7/8] util-linux: " Thomas Petazzoni
@ 2012-01-31 22:50 ` Peter Korsgaard
0 siblings, 0 replies; 24+ messages in thread
From: Peter Korsgaard @ 2012-01-31 22:50 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> lttng-babeltrace needs libuuid, which is provided by util-linux, and
Thomas> since we want to build lttng-babeltrace for the host, we need to build
Thomas> libuuid for the host. It's a shame that libuuid is part of such a big
Thomas> package as util-linux.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 8/8] lttng-babeltrace: new package
2012-01-31 19:39 [Buildroot] [pull request v3] Pull request for branch for-2012.02/lttng Thomas Petazzoni
` (6 preceding siblings ...)
2012-01-31 19:40 ` [Buildroot] [PATCH 7/8] util-linux: " Thomas Petazzoni
@ 2012-01-31 19:40 ` Thomas Petazzoni
2012-01-31 22:52 ` Peter Korsgaard
7 siblings, 1 reply; 24+ messages in thread
From: Thomas Petazzoni @ 2012-01-31 19:40 UTC (permalink / raw)
To: buildroot
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in | 1 +
package/lttng-babeltrace/Config.in | 22 ++++++++++++++++++++++
package/lttng-babeltrace/lttng-babeltrace.mk | 17 +++++++++++++++++
3 files changed, 40 insertions(+), 0 deletions(-)
create mode 100644 package/lttng-babeltrace/Config.in
create mode 100644 package/lttng-babeltrace/lttng-babeltrace.mk
diff --git a/package/Config.in b/package/Config.in
index 3640183..b4b74af 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -24,6 +24,7 @@ source "package/kexec/Config.in"
source "package/lmbench/Config.in"
source "package/lsof/Config.in"
source "package/ltp-testsuite/Config.in"
+source "package/lttng-babeltrace/Config.in"
source "package/lttng-modules/Config.in"
source "package/lttng-tools/Config.in"
source "package/ltrace/Config.in"
diff --git a/package/lttng-babeltrace/Config.in b/package/lttng-babeltrace/Config.in
new file mode 100644
index 0000000..e6f3845
--- /dev/null
+++ b/package/lttng-babeltrace/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_LTTNG_BABELTRACE
+ bool "lttng-babeltrace"
+ depends on BR2_PACKAGE_LTTNG_TOOLS
+ select BR2_PACKAGE_UTIL_LINUX
+ select BR2_PACKAGE_UTIL_LINUX_LIBUUID
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ Babeltrace is part of the LTTng 2.x project.
+
+ This project provides trace read and write libraries, as
+ well as a trace converter. A plugin can be created for any
+ trace format to allow its conversion to/from another trace
+ format.
+
+ Having this tool on the target is not mandatory. You can
+ transfer the binary trace output from the target to your
+ development workstation, and use babeltrace here. Buildroot
+ automatically builds a host babeltrace in
+ $(O)/host/usr/bin/babeltrace as a dependency of the
+ lttng-tools package.
+
+ http://lttng.org
diff --git a/package/lttng-babeltrace/lttng-babeltrace.mk b/package/lttng-babeltrace/lttng-babeltrace.mk
new file mode 100644
index 0000000..5977dda
--- /dev/null
+++ b/package/lttng-babeltrace/lttng-babeltrace.mk
@@ -0,0 +1,17 @@
+LTTNG_BABELTRACE_SITE = http://lttng.org/files/bundles/20111214/
+LTTNG_BABELTRACE_VERSION = 0.8
+LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
+
+# Needed to fix libtool handling, otherwise the build fails when
+# building the ctf-parser-test program, which depends on libctf-ast.so
+# which itself depends on libbabeltrace_types.so.0 (and libtool gets
+# lost in the middle of this).
+LTTNG_BABELTRACE_AUTORECONF = YES
+HOST_LTTNG_BABELTRACE_AUTORECONF = YES
+
+LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
+
+HOST_LTTNG_BABELTRACE_DEPENDENCIES = host-popt host-libglib2 host-util-linux
+
+$(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 24+ messages in thread* [Buildroot] [PATCH 8/8] lttng-babeltrace: new package
2012-01-31 19:40 ` [Buildroot] [PATCH 8/8] lttng-babeltrace: new package Thomas Petazzoni
@ 2012-01-31 22:52 ` Peter Korsgaard
2012-02-01 8:13 ` Thomas Petazzoni
0 siblings, 1 reply; 24+ messages in thread
From: Peter Korsgaard @ 2012-01-31 22:52 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Thomas> +++ b/package/lttng-babeltrace/lttng-babeltrace.mk
Thomas> @@ -0,0 +1,17 @@
Thomas> +LTTNG_BABELTRACE_SITE = http://lttng.org/files/bundles/20111214/
Thomas> +LTTNG_BABELTRACE_VERSION = 0.8
Thomas> +LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
Thomas> +
Thomas> +# Needed to fix libtool handling, otherwise the build fails when
Thomas> +# building the ctf-parser-test program, which depends on libctf-ast.so
Thomas> +# which itself depends on libbabeltrace_types.so.0 (and libtool gets
Thomas> +# lost in the middle of this).
Thomas> +LTTNG_BABELTRACE_AUTORECONF = YES
Thomas> +HOST_LTTNG_BABELTRACE_AUTORECONF = YES
Thomas> +
Thomas> +LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
Thomas> +
Thomas> +HOST_LTTNG_BABELTRACE_DEPENDENCIES = host-popt host-libglib2 host-util-linux
HOST_..._DEPENDENCIES are now automatically derived from _DEPENDENCIES
by default, so this can be dropped.
Other than that it looks good, committed - Thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 24+ messages in thread
* [Buildroot] [PATCH 8/8] lttng-babeltrace: new package
2012-01-31 22:52 ` Peter Korsgaard
@ 2012-02-01 8:13 ` Thomas Petazzoni
0 siblings, 0 replies; 24+ messages in thread
From: Thomas Petazzoni @ 2012-02-01 8:13 UTC (permalink / raw)
To: buildroot
Le Tue, 31 Jan 2012 23:52:55 +0100,
Peter Korsgaard <jacmet@uclibc.org> a ?crit :
> HOST_..._DEPENDENCIES are now automatically derived from _DEPENDENCIES
> by default, so this can be dropped.
Ah, yes, sorry. The patch has been written prior to the introduction of
this mechanism, and I forgot to check this point. Thanks for taking
care of reviewing and fixing!
Regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 24+ messages in thread