Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
Do not call posix_fallocate() on uClibc
|
||||
|
||||
uClibc does not implement posix_fallocate(), and posix_fallocate() is
|
||||
mostly only an hint to the kernel that we will need such or such
|
||||
amount of space inside a file. So we just don't call posix_fallocate()
|
||||
when building against uClibc.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
[Peter: add #include <features.h>
|
||||
---
|
||||
formats/ctf/ctf.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
Index: lttng-babeltrace-0.8/formats/ctf/ctf.c
|
||||
===================================================================
|
||||
--- lttng-babeltrace-0.8.orig/formats/ctf/ctf.c
|
||||
+++ lttng-babeltrace-0.8/formats/ctf/ctf.c
|
||||
@@ -32,6 +32,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <dirent.h>
|
||||
+#include <features.h>
|
||||
#include <glib.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
@@ -384,9 +385,11 @@
|
||||
}
|
||||
pos->content_size = -1U; /* Unknown at this point */
|
||||
pos->packet_size = WRITE_PACKET_LEN;
|
||||
+#ifndef __UCLIBC__
|
||||
off = posix_fallocate(pos->fd, pos->mmap_offset,
|
||||
pos->packet_size / CHAR_BIT);
|
||||
assert(off >= 0);
|
||||
+#endif
|
||||
pos->offset = 0;
|
||||
} else {
|
||||
read_next_packet:
|
||||
@@ -0,0 +1,32 @@
|
||||
config BR2_PACKAGE_LTTNG_BABELTRACE
|
||||
bool "lttng-babeltrace"
|
||||
select BR2_PACKAGE_UTIL_LINUX
|
||||
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
|
||||
select BR2_PACKAGE_LIBGLIB2
|
||||
select BR2_PACKAGE_POPT
|
||||
depends on BR2_USE_WCHAR # libglib2, util-linux
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
|
||||
depends on BR2_USE_MMU # libglib2
|
||||
help
|
||||
The Babeltrace project provides trace read and write
|
||||
libraries, as well as a trace converter application. Plugins
|
||||
can be created for any trace format to allow its conversion
|
||||
to/from another trace format.
|
||||
|
||||
Babeltrace is the reference implementation of the Common
|
||||
Trace Format (see <http://diamon.org/docs/ctf/>). Babeltrace
|
||||
can decode and display LTTng traces, since the latter are
|
||||
written using the CTF 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://www.efficios.com/babeltrace
|
||||
|
||||
comment "lttng-babeltrace needs a toolchain w/ wchar, threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -0,0 +1,7 @@
|
||||
# From http://lttng.org/files/babeltrace/babeltrace-1.2.4.tar.bz2.md5
|
||||
md5 20a806fa7570e69a91707855a98f3ca6 babeltrace-1.2.4.tar.bz2
|
||||
# From http://lttng.org/files/babeltrace/babeltrace-1.2.4.tar.bz2.sha1
|
||||
sha1 c72a80e8fd905cb1ae3b0cf88885517faafe0fa1 babeltrace-1.2.4.tar.bz2
|
||||
# Locally generated
|
||||
sha256 666e3a1ad2dc7d5703059963056e7800f0eab59c8eeb6be2efe4f3acc5209eb1 babeltrace-1.2.4.tar.bz2
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
################################################################################
|
||||
#
|
||||
# lttng-babeltrace
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LTTNG_BABELTRACE_SITE = http://lttng.org/files/babeltrace
|
||||
LTTNG_BABELTRACE_VERSION = 1.2.4
|
||||
LTTNG_BABELTRACE_SOURCE = babeltrace-$(LTTNG_BABELTRACE_VERSION).tar.bz2
|
||||
LTTNG_BABELTRACE_LICENSE = MIT, LGPLv2.1 (include/babeltrace/list.h), GPLv2 (test code)
|
||||
LTTNG_BABELTRACE_LICENSE_FILES = mit-license.txt gpl-2.0.txt LICENSE
|
||||
|
||||
LTTNG_BABELTRACE_DEPENDENCIES = popt util-linux libglib2
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user