lttng-ust.git
12 years agoRevert "Remove useless const qualifier"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:31 +0000 (17:09 -0500)] 
Revert "Remove useless const qualifier"

This reverts commit 277d6e1d016e69184fd49b867ff1268d3ff668f5.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Detect and document dependency on -ldl on Linux, -lc on BSD for dlopen"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:31 +0000 (17:09 -0500)] 
Revert "Detect and document dependency on -ldl on Linux, -lc on BSD for dlopen"

This reverts commit 90cefaa31af0a85593a155fba8570e04c653225a.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "ust-event.h: use BYTE_ORDER instead of __BYTE_ORDER"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:30 +0000 (17:09 -0500)] 
Revert "ust-event.h: use BYTE_ORDER instead of __BYTE_ORDER"

This reverts commit 52367557562008ab80a94adbaf047dd44b282d15.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Wrap FLOAT_WORD_ORDER"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:29 +0000 (17:09 -0500)] 
Revert "Wrap FLOAT_WORD_ORDER"

This reverts commit c759fe81a6251b9feddf5cd9576278ffedf92ac3.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Remove O_LARGEFILE from tests"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:28 +0000 (17:09 -0500)] 
Revert "Remove O_LARGEFILE from tests"

This reverts commit 626cb7f6174c4d9c22364f10d3d6a0915e53d5f3.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Add configure amd64 support (for FreeBSD)"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:27 +0000 (17:09 -0500)] 
Revert "Add configure amd64 support (for FreeBSD)"

This reverts commit 404d9909a392de0e0044c7f49a932d1765c9d813.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Remove gettid warning"
Mathieu Desnoyers [Wed, 22 Feb 2012 22:09:09 +0000 (17:09 -0500)] 
Revert "Remove gettid warning"

This reverts commit 4f41890f998c2c3778213ed2a8938534fb3060e1.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: Return -EINVAL instead of print warning if non power of 2 size/num_subbuf
Mathieu Desnoyers [Wed, 22 Feb 2012 00:20:51 +0000 (19:20 -0500)] 
Fix: Return -EINVAL instead of print warning if non power of 2 size/num_subbuf

Reported-by: Tan Dung Le Tran <tan.dung.le.tran@ericsson.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix: on exit, leave thread/mmap reclaim to OS
Mathieu Desnoyers [Tue, 21 Feb 2012 22:01:33 +0000 (17:01 -0500)] 
fix: on exit, leave thread/mmap reclaim to OS

Do NOT join threads: use of sys_futex makes it impossible to join the
threads without using async-cancel, but async-cancel is delivered by a
signal, which could hit the target thread anywhere in its code path,
including while the ust_lock() is held, causing a deadlock for the other
thread. Let the OS cleanup the threads if there are stalled in a
syscall.

wait_shm_mmap is used by listener threads outside of the ust lock, so we
cannot tear it down ourselves, because we cannot join on these threads.
Leave this task to the OS process exit.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix: Handle sys_futex with async cancel, add missing pthread_join
Mathieu Desnoyers [Tue, 21 Feb 2012 18:13:18 +0000 (13:13 -0500)] 
fix: Handle sys_futex with async cancel, add missing pthread_join

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix: Only munmap the wait page when not exiting from process
Mathieu Desnoyers [Tue, 21 Feb 2012 17:41:18 +0000 (12:41 -0500)] 
fix: Only munmap the wait page when not exiting from process

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse CPPFLAGS instead of CFLAGS for -I
Mathieu Desnoyers [Tue, 21 Feb 2012 16:54:38 +0000 (11:54 -0500)] 
Use CPPFLAGS instead of CFLAGS for -I

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix type range comparison always false for 64-bit arch
Mathieu Desnoyers [Tue, 21 Feb 2012 16:49:53 +0000 (11:49 -0500)] 
Fix type range comparison always false for 64-bit arch

ltt-events.c: In function 'ltt_event_create':
ltt-events.c:498: warning: comparison is always false due to limited
range of data type

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove gettid warning
Mathieu Desnoyers [Tue, 21 Feb 2012 16:48:28 +0000 (11:48 -0500)] 
Remove gettid warning

Not so important, hides really useful warnings.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agodemo: remove useless libs
Mathieu Desnoyers [Tue, 21 Feb 2012 16:45:53 +0000 (11:45 -0500)] 
demo: remove useless libs

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd configure amd64 support (for FreeBSD)
Mathieu Desnoyers [Tue, 21 Feb 2012 16:41:36 +0000 (11:41 -0500)] 
Add configure amd64 support (for FreeBSD)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove O_LARGEFILE from tests
Mathieu Desnoyers [Tue, 21 Feb 2012 16:40:57 +0000 (11:40 -0500)] 
Remove O_LARGEFILE from tests

Not portable.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agotests: include missing headers
Mathieu Desnoyers [Tue, 21 Feb 2012 16:39:45 +0000 (11:39 -0500)] 
tests: include missing headers

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoWrap FLOAT_WORD_ORDER
Mathieu Desnoyers [Tue, 21 Feb 2012 16:31:10 +0000 (11:31 -0500)] 
Wrap FLOAT_WORD_ORDER

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoust-event.h: use BYTE_ORDER instead of __BYTE_ORDER
Mathieu Desnoyers [Tue, 21 Feb 2012 16:27:50 +0000 (11:27 -0500)] 
ust-event.h: use BYTE_ORDER instead of __BYTE_ORDER

available on both Linux and FreeBSD.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDetect and document dependency on -ldl on Linux, -lc on BSD for dlopen
Mathieu Desnoyers [Tue, 21 Feb 2012 16:25:14 +0000 (11:25 -0500)] 
Detect and document dependency on -ldl on Linux, -lc on BSD for dlopen

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove useless const qualifier
Mathieu Desnoyers [Tue, 21 Feb 2012 15:59:56 +0000 (10:59 -0500)] 
Remove useless const qualifier

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate uuid_create type cast
Mathieu Desnoyers [Tue, 21 Feb 2012 15:58:57 +0000 (10:58 -0500)] 
Update uuid_create type cast

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCast uuid_create parameter
Mathieu Desnoyers [Tue, 21 Feb 2012 15:57:39 +0000 (10:57 -0500)] 
Cast uuid_create parameter

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd freebsd rfork support
Mathieu Desnoyers [Tue, 21 Feb 2012 15:55:55 +0000 (10:55 -0500)] 
Add freebsd rfork support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agouuid.h should only be included when libuuid is detected
Mathieu Desnoyers [Tue, 21 Feb 2012 15:06:10 +0000 (10:06 -0500)] 
uuid.h should only be included when libuuid is detected

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRename uuid.h wrapper to lttng-ust-uuid.h
Mathieu Desnoyers [Tue, 21 Feb 2012 15:01:15 +0000 (10:01 -0500)] 
Rename uuid.h wrapper to lttng-ust-uuid.h

So it does not clash with BSD system's uuid.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCreate libuuid/libc uuid wrapper
Mathieu Desnoyers [Tue, 21 Feb 2012 14:56:27 +0000 (09:56 -0500)] 
Create libuuid/libc uuid wrapper

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoconfigure.ac: check for both libuuid/libc uuid APIs
Mathieu Desnoyers [Tue, 21 Feb 2012 13:46:52 +0000 (08:46 -0500)] 
configure.ac: check for both libuuid/libc uuid APIs

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse bsd-compatible fcntl for close-on-exec on socket
Mathieu Desnoyers [Tue, 21 Feb 2012 03:01:52 +0000 (22:01 -0500)] 
Use bsd-compatible fcntl for close-on-exec on socket

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse ENOMSG as fallback for ENODATA on freebsd
Mathieu Desnoyers [Tue, 21 Feb 2012 02:58:31 +0000 (21:58 -0500)] 
Use ENOMSG as fallback for ENODATA on freebsd

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse XSI-compliant strerror_r by default on non-Linux
Mathieu Desnoyers [Tue, 21 Feb 2012 02:54:04 +0000 (21:54 -0500)] 
Use XSI-compliant strerror_r by default on non-Linux

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCompat layer for gettid
Mathieu Desnoyers [Tue, 21 Feb 2012 02:32:25 +0000 (21:32 -0500)] 
Compat layer for gettid

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agosnprintf: fix namespace of snprintf types for freebsd
Mathieu Desnoyers [Tue, 21 Feb 2012 02:18:20 +0000 (21:18 -0500)] 
snprintf: fix namespace of snprintf types for freebsd

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd freebsd support for getcpu (use cpu nr 0)
Mathieu Desnoyers [Tue, 21 Feb 2012 01:12:04 +0000 (20:12 -0500)] 
Add freebsd support for getcpu (use cpu nr 0)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd get proc name wrapper for FreeBSD
Mathieu Desnoyers [Tue, 21 Feb 2012 00:52:30 +0000 (19:52 -0500)] 
Add get proc name wrapper for FreeBSD

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix freebsd endian support
Mathieu Desnoyers [Tue, 21 Feb 2012 00:28:44 +0000 (19:28 -0500)] 
Fix freebsd endian support

Need to use #elif defined().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofls: use local namespace to do not clash with FreeBSD string.h
Mathieu Desnoyers [Tue, 21 Feb 2012 00:17:08 +0000 (19:17 -0500)] 
fls: use local namespace to do not clash with FreeBSD string.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd FreeBSD compat layer for endian.h
Mathieu Desnoyers [Tue, 21 Feb 2012 00:15:25 +0000 (19:15 -0500)] 
Add FreeBSD compat layer for endian.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing limits.h include for NAME_MAX
Mathieu Desnoyers [Tue, 21 Feb 2012 00:03:18 +0000 (19:03 -0500)] 
Add missing limits.h include for NAME_MAX

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate Version to 2.0.0-rc1 v2.0.0-rc1
Mathieu Desnoyers [Mon, 20 Feb 2012 20:30:56 +0000 (15:30 -0500)] 
Update Version to 2.0.0-rc1

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoStandardize version across toolchain
Mathieu Desnoyers [Mon, 20 Feb 2012 20:00:36 +0000 (15:00 -0500)] 
Standardize version across toolchain

closes #80

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix a typo in gen-tp Makefile
Yannick Brosseau [Mon, 20 Feb 2012 03:26:15 +0000 (22:26 -0500)] 
Fix a typo in gen-tp Makefile

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoImplement the .o file generation in lttng-gen-tp
Yannick Brosseau [Thu, 16 Feb 2012 23:37:51 +0000 (18:37 -0500)] 
Implement the .o file generation in lttng-gen-tp

(refs #40)

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.9.8 v1.9.8
Mathieu Desnoyers [Thu, 16 Feb 2012 19:32:19 +0000 (14:32 -0500)] 
Update version to 1.9.8

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix comment in tracepoint.h
Mathieu Desnoyers [Thu, 16 Feb 2012 18:52:43 +0000 (13:52 -0500)] 
Fix comment in tracepoint.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd loglevel info to manpage
Mathieu Desnoyers [Thu, 16 Feb 2012 18:51:54 +0000 (13:51 -0500)] 
Add loglevel info to manpage

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove stale binary file
Mathieu Desnoyers [Thu, 16 Feb 2012 18:12:32 +0000 (13:12 -0500)] 
Remove stale binary file

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd lttng-ust(3)
Mathieu Desnoyers [Thu, 16 Feb 2012 18:11:55 +0000 (13:11 -0500)] 
Add lttng-ust(3)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd a man page for lttng-gen-tp
Yannick Brosseau [Thu, 16 Feb 2012 17:35:01 +0000 (12:35 -0500)] 
Add a man page for lttng-gen-tp

(Closes #24)

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoInstall easy-ust and gen-tp examples in doc/
Mathieu Desnoyers [Thu, 16 Feb 2012 17:20:36 +0000 (12:20 -0500)] 
Install easy-ust and gen-tp examples in doc/

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCreate the lttng-gen-tp tools as an helper to generate UST .h and .c files
Yannick Brosseau [Thu, 16 Feb 2012 14:11:11 +0000 (09:11 -0500)] 
Create the lttng-gen-tp tools as an helper to generate UST .h and .c files

Based on a template file which contains TRACEPOINT_EVENT definition, the
tools generate the necessary .h and .c to create the probes.

Include an example use in tests/gen-tp/

(refs #24)

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing #define _GNU_SOURCE for sched_getcpu()
Mathieu Desnoyers [Thu, 16 Feb 2012 03:23:47 +0000 (22:23 -0500)] 
Add missing #define _GNU_SOURCE for sched_getcpu()

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDefine _GNU_SOURCE for all implementation files rather than getcpu.h
Mathieu Desnoyers [Wed, 15 Feb 2012 00:12:35 +0000 (19:12 -0500)] 
Define _GNU_SOURCE for all implementation files rather than getcpu.h

If implementation files include the sched.h header prior to having
_GNU_SOURCE defined by getcpu.h, we get in a situation where
sched_getcpu() can be undeclared.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd sched_getcpu and sysconf to AC_CHECK_FUNCS
Mathieu Desnoyers [Wed, 15 Feb 2012 00:06:52 +0000 (19:06 -0500)] 
Add sched_getcpu and sysconf to AC_CHECK_FUNCS

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMark lib_ring_buffer_print_errors unused
Mathieu Desnoyers [Mon, 13 Feb 2012 19:33:24 +0000 (14:33 -0500)] 
Mark lib_ring_buffer_print_errors unused

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCleanup: remove extra space from easy_ust example
Mathieu Desnoyers [Mon, 13 Feb 2012 19:31:29 +0000 (14:31 -0500)] 
Cleanup: remove extra space from easy_ust example

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing comma to tracepoint STAP_PROBEV call
Mathieu Desnoyers [Mon, 13 Feb 2012 19:30:58 +0000 (14:30 -0500)] 
Add missing comma to tracepoint STAP_PROBEV call

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.9.7 v1.9.7
Mathieu Desnoyers [Mon, 13 Feb 2012 15:40:31 +0000 (10:40 -0500)] 
Update version to 1.9.7

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoliblttng-ust-java: add missing -classpath ./
Mathieu Desnoyers [Fri, 10 Feb 2012 23:30:58 +0000 (18:30 -0500)] 
liblttng-ust-java: add missing -classpath ./

Now both gcj and OpenJDK work fine.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOnly specify that sdt.h provides system integration for now
Mathieu Desnoyers [Fri, 10 Feb 2012 23:25:09 +0000 (18:25 -0500)] 
Only specify that sdt.h provides system integration for now

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd STAP_PROBEV check ton configure.ac
Mathieu Desnoyers [Fri, 10 Feb 2012 23:13:27 +0000 (18:13 -0500)] 
Add STAP_PROBEV check ton configure.ac

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd sdt.h integration
Mathieu Desnoyers [Fri, 10 Feb 2012 23:05:28 +0000 (18:05 -0500)] 
Add sdt.h integration

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove extern C around probe header
Mathieu Desnoyers [Fri, 10 Feb 2012 23:03:51 +0000 (18:03 -0500)] 
Remove extern C around probe header

Not required, and prohibits sdt.h from declaring templates from
tracepoint.h.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMove lttng/config.h to lttng/ust-config.h, and use LTTNG_UST_ namespace
Mathieu Desnoyers [Fri, 10 Feb 2012 22:55:03 +0000 (17:55 -0500)] 
Move lttng/config.h to lttng/ust-config.h, and use LTTNG_UST_ namespace

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd a configure report at the end of the output
Alexandre Montplaisir [Fri, 10 Feb 2012 22:31:23 +0000 (17:31 -0500)] 
Add a configure report at the end of the output

Sorry, couldn't help myself...

Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd sdt.h integration option
Alexandre Montplaisir [Fri, 10 Feb 2012 22:30:50 +0000 (17:30 -0500)] 
Add sdt.h integration option

It is not wired to anything yet, but we can at least build
the package with that option enabled.

Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSet default loglevel in metadata
Mathieu Desnoyers [Fri, 10 Feb 2012 18:17:11 +0000 (13:17 -0500)] 
Set default loglevel in metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: LTTng-UST java jni wrapper does not build with OpenJDK
Mathieu Desnoyers [Fri, 10 Feb 2012 01:11:17 +0000 (20:11 -0500)] 
Fix: LTTng-UST java jni wrapper does not build with OpenJDK

bugs.lttng.org: fixes #9

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoVersion 1.9.6 v1.9.6
Mathieu Desnoyers [Fri, 10 Feb 2012 00:31:39 +0000 (19:31 -0500)] 
Version 1.9.6

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix tracepoint.h multiple .o within module/core exec linkage bug
Mathieu Desnoyers [Thu, 9 Feb 2012 23:55:44 +0000 (18:55 -0500)] 
Fix tracepoint.h multiple .o within module/core exec linkage bug

We need all symbols looked up with dlopen to share the same linkage
property as the __tracepoint_registered variable (shared across .o in a
module/executable), otherwise only the first .o which runs its
constructor will have those defined.

Caused some tracepoints not to be traced in non-_LGPL_SOURCE
applications, due to the check:

if (!TP_RCU_LINK_TEST())   \
    return;

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agotracepoint: name -> _name to fix possible namespace clash
Mathieu Desnoyers [Thu, 9 Feb 2012 22:33:47 +0000 (17:33 -0500)] 
tracepoint: name -> _name to fix possible namespace clash

We use "name" as parameter in the macro.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd debug printout to tracepoint.c
Mathieu Desnoyers [Thu, 9 Feb 2012 21:16:35 +0000 (16:16 -0500)] 
Add debug printout to tracepoint.c

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRename liblttng-ust-libc to liblttng-ust-libc-wrapper
Mathieu Desnoyers [Wed, 8 Feb 2012 22:44:19 +0000 (17:44 -0500)] 
Rename liblttng-ust-libc to liblttng-ust-libc-wrapper

What a beautiful piece of code we can find in python:

/usr/lib/python2.6/ctypes/util.py:

    def _findLib_gcc(name):
        expr = r'[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)

Basically, this match any library having "libc.so" in its name. It
should be reported to python developers as a bug, but let's not be the
first to trigger the issue in the wild.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate hardcoded loglevel
Mathieu Desnoyers [Tue, 7 Feb 2012 22:35:46 +0000 (17:35 -0500)] 
Update hardcoded loglevel

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd "easy_ust" example
Mathieu Desnoyers [Tue, 7 Feb 2012 17:53:44 +0000 (12:53 -0500)] 
Add "easy_ust" example

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate gitignore
Mathieu Desnoyers [Tue, 7 Feb 2012 17:53:36 +0000 (12:53 -0500)] 
Update gitignore

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoZero-initialize struct msghdr
Mathieu Desnoyers [Tue, 7 Feb 2012 04:00:01 +0000 (23:00 -0500)] 
Zero-initialize struct msghdr

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd environment information
Mathieu Desnoyers [Mon, 6 Feb 2012 23:16:40 +0000 (18:16 -0500)] 
Add environment information

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix event-specific enabling
Mathieu Desnoyers [Mon, 6 Feb 2012 22:30:08 +0000 (17:30 -0500)] 
Fix event-specific enabling

Bug introduced with loglevel as attributes implementation.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate static lib linking
Mathieu Desnoyers [Mon, 6 Feb 2012 18:29:25 +0000 (13:29 -0500)] 
Update static lib linking

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoliblttng-ust-libc: fix linking
Mathieu Desnoyers [Mon, 6 Feb 2012 14:57:54 +0000 (09:57 -0500)] 
liblttng-ust-libc: fix linking

Reported-by: Samuel Martin <smartin@aldebaran-robotics.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoliblttng-ust-libc: fix lib dependency
Samuel Martin [Mon, 6 Feb 2012 13:27:23 +0000 (08:27 -0500)] 
liblttng-ust-libc: fix lib dependency

liblttng-ust-libc.so depends on liblttng-ust.so but does not link
against it.

z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-nm -CD output/target/usr/lib/liblttng-ust-libc.so | grep -E 'U ltt'
         U ltt_probe_register
         U ltt_probe_unregister
z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-ldd --root output/target/ output/target/usr/lib/liblttng-ust-libc.so
        liburcu-bp.so.1 => /usr/lib/liburcu-bp.so.1 (0xdeadbeef)
        libpthread.so.0 => /lib/libpthread.so.0 (0xdeadbeef)
        libc.so.6 => /lib/libc.so.6 (0xdeadbeef)
        ld-linux.so.2 => /lib/ld-linux.so.2 (0xdeadbeef)
        liburcu-common.so.1 => /usr/lib/liburcu-common.so.1 (0xdeadbeef)
        libuuid.so.1 => /lib/libuuid.so.1 (0xdeadbeef)
        libdl.so.2 => /lib/libdl.so.2 (0xdeadbeef)
z$ ../linux32-cross-i686-aldebaran-linux-gnu/bin/i686-aldebaran-linux-gnu-nm -CD output/target/usr/lib/liblttng-ust.so | grep ltt_probe_
0000a5cc T ltt_probe_register
0000a7d6 T ltt_probe_unregister
z$

Signed-off-by: Samuel Martin <smartin@aldebaran-robotics.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoInstall README and ChangeLog into system doc
Mathieu Desnoyers [Sat, 4 Feb 2012 21:42:36 +0000 (16:42 -0500)] 
Install README and ChangeLog into system doc

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd hello-static-lib test
Mathieu Desnoyers [Sat, 4 Feb 2012 19:50:38 +0000 (14:50 -0500)] 
Add hello-static-lib test

Test case where provider is located in a static library.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix static provider linking: introduce TRACEPOINT_PROBE_DYNAMIC_LINKAGE
Mathieu Desnoyers [Sat, 4 Feb 2012 19:37:34 +0000 (14:37 -0500)] 
Fix static provider linking: introduce TRACEPOINT_PROBE_DYNAMIC_LINKAGE

We need to emit an unresolved symbol in the case where the provider is
put into a statically linked library, otherwise the linker removes the
provider object.

See README for details.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix 32-bit type: allocated len is used
Mathieu Desnoyers [Thu, 2 Feb 2012 21:17:54 +0000 (16:17 -0500)] 
Fix 32-bit type: allocated len is used

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix 32-bit type mismatch
Mathieu Desnoyers [Thu, 2 Feb 2012 21:14:06 +0000 (16:14 -0500)] 
Fix 32-bit type mismatch

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd 1.9.5 Changelog v1.9.5
Mathieu Desnoyers [Thu, 2 Feb 2012 17:41:57 +0000 (12:41 -0500)] 
Add 1.9.5 Changelog

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate LTTng-UST version to 1.9.5
Mathieu Desnoyers [Thu, 2 Feb 2012 17:39:20 +0000 (12:39 -0500)] 
Update LTTng-UST version to 1.9.5

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUST comm ABI: Add padding, push version to 2.0
Mathieu Desnoyers [Thu, 2 Feb 2012 16:19:27 +0000 (11:19 -0500)] 
UST comm ABI: Add padding, push version to 2.0

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate loglevel names
Mathieu Desnoyers [Thu, 2 Feb 2012 15:07:34 +0000 (10:07 -0500)] 
Update loglevel names

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoImplement loglevels as event and wildcard attributes
Mathieu Desnoyers [Thu, 2 Feb 2012 04:24:21 +0000 (23:24 -0500)] 
Implement loglevels as event and wildcard attributes

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate loglevel ABI: only loglevel value/enum is known by UST
Mathieu Desnoyers [Thu, 2 Feb 2012 00:19:47 +0000 (19:19 -0500)] 
Update loglevel ABI: only loglevel value/enum is known by UST

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPre-assign fixed loglevels
Mathieu Desnoyers [Wed, 1 Feb 2012 22:54:50 +0000 (17:54 -0500)] 
Pre-assign fixed loglevels

Some early LTTng-UST adopters brought to my attention that the way
tracepoint loglevels are currently specified in LTTng-UST might be too
relax for its own good. If each application define their own loglevel
names/values, it will become difficult to use the loglevels to select
"trace verbosity" in a system-wide manner.

Now that I come to think of it, it might make sense to pre-define a set
of supported loglevels, similarly to syslog(3). However, given that
tracing sometimes targets debug levels that are more fine-grained than
in the case of logs, I would propose to split the "debug" loglevel into
sub-categories.

My current thought is to simply just allow these loglevels. I doubt that
letting application developers specify extra loglevels on top of this
would be that useful, and it would certainly be more confusing.

In the list below, lower numbers means "low verbosity", higher numbers
means "high verbosity, debug-style information".

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove old (now unused) loglevel control code entirely
Mathieu Desnoyers [Wed, 1 Feb 2012 22:37:22 +0000 (17:37 -0500)] 
Remove old (now unused) loglevel control code entirely

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate loglevel selection ABI
Mathieu Desnoyers [Tue, 31 Jan 2012 22:17:48 +0000 (17:17 -0500)] 
Update loglevel selection ABI

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse boot_id as monotonic clock uuid
Mathieu Desnoyers [Mon, 30 Jan 2012 14:02:04 +0000 (09:02 -0500)] 
Use boot_id as monotonic clock uuid

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoclock: add clock description to metadata
Mathieu Desnoyers [Fri, 27 Jan 2012 02:32:03 +0000 (21:32 -0500)] 
clock: add clock description to metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoProperly fix the timekeeping overflow detection
Mathieu Desnoyers [Thu, 26 Jan 2012 20:12:51 +0000 (15:12 -0500)] 
Properly fix the timekeeping overflow detection

The underlying issue was a mismatch between the ring buffer
configuration description of the number of clock bits (32) saved and the
actual number used (27).

Introduce LTTNG_COMPACT_EVENT_BITS and LTTNG_COMPACT_TSC_BITS across the
code to remove all hardcoded instances of these values to ensure this
kind of mistake does not happen again.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reported-by: Sébastien Barthélémy <barthelemy@crans.org>
This page took 0.040749 seconds and 4 git commands to generate.