[lttng-dev] [PATCH ust] Add missing --record in Python's Makefile

2015-10-13 Thread Simon Marchi
I believe this is missing. Fixes this error when doing $ make install DESTDIR=/tmp/lttng-ust2 make[1]: Entering directory '/home/simark/src/lttng-ust/liblttng-ust-python-agent' if [ "/tmp/lttng-ust2" = "" ]; then \ /usr/bin/python setup.py install --prefix=/tmp/lttng-ust --record

[lttng-dev] Issue when first lttng_sessiond is started as a user with GID tracing and 2nd session is started as root

2015-10-13 Thread Anders Wallin
s_trace1 created. + ssh trace1@128.224.95.181 'lttng list' Available tracing sessions: 1) s_trace1 (/home/trace1/lttng-traces/s_trace1-20151013-142106) [inactive] Trace path: /home/trace1/lttng-traces/s_trace1-20151013-142106 Use lttng list for more details + ssh root@128.224.95.181 'lttng

[lttng-dev] [PATCH] Fix: babeltrace-log packet seek

2015-10-13 Thread Mathieu Desnoyers
Packet seek has been removed from ctf helper headers somewhere around Babeltrace 1.1. Since then, babeltrace-log is broken when it needs to output a file larger than the fixed-sized packet (WRITE_PACKET_LEN currently defined as (getpagesize() * 8 * CHAR_BIT). Correctly handle the non-zero return

[lttng-dev] [PATCH babeltrace] Fix: posix_fallocate() returns int > 0 on errors

2015-10-13 Thread Michael Jeanson
Signed-off-by: Michael Jeanson --- formats/ctf/ctf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 74fcb5b..19f61b5 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -906,7 +906,7 @@ void

[lttng-dev] [PATCH] Fix: handle EINTR return value for bt_posix_fallocate

2015-10-13 Thread Mathieu Desnoyers
Signed-off-by: Mathieu Desnoyers --- formats/ctf/ctf.c | 9 + formats/ctf/ir/event-fields.c | 8 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 8236b6e..757fa85 100644 ---

[lttng-dev] [PATCH 1/2] Fix: initialize getline linesize argument to 0

2015-10-13 Thread Mathieu Desnoyers
It works by accident because getline() reallocates based on the initial pointer, but doing this falls into a blind spot of the Linux man pages. Signed-off-by: Mathieu Desnoyers --- converter/babeltrace-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[lttng-dev] [PATCH 2/2] Implement bt_getline

2015-10-13 Thread Mathieu Desnoyers
Implement our own getline to remove dependency from glibc 2.10+ and to increase portability to other operating systems. Signed-off-by: Mathieu Desnoyers --- converter/babeltrace-log.c | 5 ++--- tests/lib/test_ctf_writer.c | 7 --- 2 files changed, 6

[lttng-dev] [PATCH 2/2] Implement bt_getline

2015-10-13 Thread Mathieu Desnoyers
Implement our own getline to remove dependency from glibc 2.10+ and to increase portability to other operating systems. Signed-off-by: Mathieu Desnoyers --- converter/babeltrace-log.c| 5 +- include/babeltrace/compat/stdio.h | 124

[lttng-dev] [PATCH 1/2] Fix: initialize getline linesize argument to 0

2015-10-13 Thread Mathieu Desnoyers
It works by accident because getline() reallocates based on the initial pointer, but doing this falls into a blind spot of the Linux man pages. Signed-off-by: Mathieu Desnoyers --- converter/babeltrace-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)