From patchwork Sun Apr 15 19:17:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 152691 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id DE81AB6FC9 for ; Mon, 16 Apr 2012 05:19:26 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id CCADEFFD0F; Sun, 15 Apr 2012 19:19:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VhuUEMuc0qDL; Sun, 15 Apr 2012 19:19:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id CB240101130; Sun, 15 Apr 2012 19:19:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 8079A8F753 for ; Sun, 15 Apr 2012 19:19:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 721AE89F59 for ; Sun, 15 Apr 2012 19:19:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2BAtoGUH8TRx for ; Sun, 15 Apr 2012 19:19:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f53.google.com (mail-wg0-f53.google.com [74.125.82.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2305682601 for ; Sun, 15 Apr 2012 19:19:03 +0000 (UTC) Received: by wgbfm10 with SMTP id fm10so4171554wgb.10 for ; Sun, 15 Apr 2012 12:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=G6K5GxX5Y5ZF1SmCjjg/mO+bNu2cp7iJi7wpaEerQKQ=; b=oqZRVrd1LAKD9v6f+sIA3tw5p1/ii2slmnDIqhrV8knz1OHmFOakGa9GfrEKqIXZrW 4atBUQF4XQATq7wTsexJ0MYQ4HX+AiRhSWuG/BXcfKdzxRBiu2v0+wNbRhZhHe83vAR0 Z02BE1+rVXZPEu3reqSbURhGKLxXN9uJDCBSX5G9z/tymrf2pR+nWS/FBnr4iKZ0Tmkh ehyCfj+9HpHWeqc2QfjAqzAn6feKw4wrbsyd2XMJLj4bezIQSDkyQWLUms8EyIBzlkQu 1IpdEaIw+rAwk9Xusvg3NfVTx55RKB2mwKlJvMdZj1XFRP8OWlzIMMyVonTR+df4JBWP mtBA== Received: by 10.180.80.104 with SMTP id q8mr12479062wix.14.1334517542176; Sun, 15 Apr 2012 12:19:02 -0700 (PDT) Received: from localhost.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net. [82.229.165.48]) by mx.google.com with ESMTPS id fz9sm14326241wib.3.2012.04.15.12.19.00 (version=SSLv3 cipher=OTHER); Sun, 15 Apr 2012 12:19:01 -0700 (PDT) From: Samuel Martin To: buildroot@busybox.net Date: Sun, 15 Apr 2012 21:17:56 +0200 Message-Id: <1334517476-15258-3-git-send-email-s.martin49@gmail.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1334517476-15258-1-git-send-email-s.martin49@gmail.com> References: <1334517476-15258-1-git-send-email-s.martin49@gmail.com> Subject: [Buildroot] [PATCH 3/3] lttng-tools: bump version to 2.0.0 X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Samuel Martin --- ...ls-2.0-pre15-no-sync-file-range-in-uclibc.patch | 87 -------------------- .../lttng-tools-no-sync-file-range-in-uclibc.patch | 50 +++++++++++ package/lttng-tools/lttng-tools.mk | 9 +- 3 files changed, 57 insertions(+), 89 deletions(-) delete mode 100644 package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch create mode 100644 package/lttng-tools/lttng-tools-no-sync-file-range-in-uclibc.patch diff --git a/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch b/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch deleted file mode 100644 index 861686b..0000000 --- a/package/lttng-tools/lttng-tools-2.0-pre15-no-sync-file-range-in-uclibc.patch +++ /dev/null @@ -1,87 +0,0 @@ -Make sync_file_range() usage optional - -Under uClibc, sync_file_range() is not available under all -architectures, so we fall back to fdatasync() in this case. - -Signed-off-by: Thomas Petazzoni - -Index: lttng-tools-2.0-pre15/configure.ac -=================================================================== ---- lttng-tools-2.0-pre15.orig/configure.ac 2012-02-01 16:31:31.140978817 +0100 -+++ lttng-tools-2.0-pre15/configure.ac 2012-02-01 16:31:42.110783708 +0100 -@@ -96,7 +96,7 @@ - - AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [ test "x$ac_cv_lib_lttng_ust_ctl_ustctl_create_session" = "xyes" ]) - --AC_CHECK_FUNCS([sched_getcpu sysconf]) -+AC_CHECK_FUNCS([sched_getcpu sysconf sync_file_range]) - - # Option to only build the consumer daemon and its libraries - AC_ARG_WITH([consumerd-only], -Index: lttng-tools-2.0-pre15/liblttng-consumer/lttng-consumer.c -=================================================================== ---- lttng-tools-2.0-pre15.orig/liblttng-consumer/lttng-consumer.c 2012-02-01 16:36:00.876292596 +0100 -+++ lttng-tools-2.0-pre15/liblttng-consumer/lttng-consumer.c 2012-02-01 16:36:23.435901163 +0100 -@@ -527,11 +527,15 @@ - if (orig_offset < stream->chan->max_sb_size) { - return; - } -+#ifdef HAVE_SYNC_FILE_RANGE - sync_file_range(outfd, orig_offset - stream->chan->max_sb_size, - stream->chan->max_sb_size, - SYNC_FILE_RANGE_WAIT_BEFORE - | SYNC_FILE_RANGE_WRITE - | SYNC_FILE_RANGE_WAIT_AFTER); -+#else -+ fdatasync(outfd); -+#endif - /* - * Give hints to the kernel about how we access the file: - * POSIX_FADV_DONTNEED : we won't re-access data in a near future after -Index: lttng-tools-2.0-pre15/liblttng-kconsumer/lttng-kconsumer.c -=================================================================== ---- lttng-tools-2.0-pre15.orig/liblttng-kconsumer/lttng-kconsumer.c 2012-02-01 16:36:36.215679416 +0100 -+++ lttng-tools-2.0-pre15/liblttng-kconsumer/lttng-kconsumer.c 2012-02-01 16:59:08.622203348 +0100 -@@ -71,8 +71,12 @@ - goto end; - } - /* This won't block, but will start writeout asynchronously */ -+#ifdef HAVE_SYNC_FILE_RANGE - sync_file_range(outfd, stream->out_fd_offset, ret, - SYNC_FILE_RANGE_WRITE); -+#else -+ fdatasync(outfd); -+#endif - stream->out_fd_offset += ret; - } - -@@ -121,8 +125,12 @@ - } - len -= ret; - /* This won't block, but will start writeout asynchronously */ -+#ifdef HAVE_SYNC_FILE_RANGE - sync_file_range(outfd, stream->out_fd_offset, ret, - SYNC_FILE_RANGE_WRITE); -+#else -+ fdatasync(outfd); -+#endif - stream->out_fd_offset += ret; - } - lttng_consumer_sync_trace_file(stream, orig_offset); -Index: lttng-tools-2.0-pre15/liblttng-ustconsumer/lttng-ustconsumer.c -=================================================================== ---- lttng-tools-2.0-pre15.orig/liblttng-ustconsumer/lttng-ustconsumer.c 2012-02-01 16:37:11.495067263 +0100 -+++ lttng-tools-2.0-pre15/liblttng-ustconsumer/lttng-ustconsumer.c 2012-02-01 16:37:31.224724916 +0100 -@@ -70,8 +70,12 @@ - goto end; - } - /* This won't block, but will start writeout asynchronously */ -+#ifdef HAVE_SYNC_FILE_RANGE - sync_file_range(outfd, stream->out_fd_offset, ret, - SYNC_FILE_RANGE_WRITE); -+#else -+ fdatasync(outfd); -+#endif - stream->out_fd_offset += ret; - } - diff --git a/package/lttng-tools/lttng-tools-no-sync-file-range-in-uclibc.patch b/package/lttng-tools/lttng-tools-no-sync-file-range-in-uclibc.patch new file mode 100644 index 0000000..cca083b --- /dev/null +++ b/package/lttng-tools/lttng-tools-no-sync-file-range-in-uclibc.patch @@ -0,0 +1,50 @@ +Make sync_file_range() usage optional + +Under uClibc, sync_file_range() is not available under all +architectures, so we fall back to fdatasync() in this case. + +Inspired by the patch done by Thomas Petazzoni for the +2.0-pre25 version. + +Signed-off-by: Samuel Martin +--- + configure.ac | 2 +- + src/common/compat/fcntl.h | 5 +++++ + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 5808c79..065b9cf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -120,7 +120,7 @@ AS_IF([test "x$lttng_ust_support" = "xyes"], [ + + AM_CONDITIONAL([HAVE_LIBLTTNG_UST_CTL], [ test "x$ac_cv_lib_lttng_ust_ctl_ustctl_create_session" = "xyes" ]) + +-AC_CHECK_FUNCS([sched_getcpu sysconf]) ++AC_CHECK_FUNCS([sched_getcpu sysconf sync_file_range]) + + # check for dlopen + AC_CHECK_LIB([dl], [dlopen], +diff --git a/src/common/compat/fcntl.h b/src/common/compat/fcntl.h +index 58c1579..dafb33e 100644 +--- a/src/common/compat/fcntl.h ++++ b/src/common/compat/fcntl.h +@@ -23,10 +23,15 @@ + + #ifdef __linux__ + ++#if defined(HAVE_SYNC_FILE_RANGE) + extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes, + unsigned int flags); + #define lttng_sync_file_range(fd, offset, nbytes, flags) \ + compat_sync_file_range(fd, offset, nbytes, flags) ++#else ++#define lttng_sync_file_range(fd, offset, nbytes, flags) \ ++ fdatasync(fd); ++#endif + + #elif defined(__FreeBSD__) + +-- +1.7.10 + diff --git a/package/lttng-tools/lttng-tools.mk b/package/lttng-tools/lttng-tools.mk index 8e6fc1a..856d840 100644 --- a/package/lttng-tools/lttng-tools.mk +++ b/package/lttng-tools/lttng-tools.mk @@ -1,5 +1,10 @@ -LTTNG_TOOLS_VERSION = 2.0-pre15 -LTTNG_TOOLS_SITE = http://lttng.org/files/bundles/20111214/ +############################################################# +# +# LTTng-Tools: the trace control client +# +############################################################# +LTTNG_TOOLS_VERSION = 2.0.0 +LTTNG_TOOLS_SITE = http://lttng.org/files/lttng-tools/ LTTNG_TOOLS_SOURCE = lttng-tools-$(LTTNG_TOOLS_VERSION).tar.bz2 # The host-lttng-babeltrace technically isn't a required build