lttng-ust.git
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>
12 years agoRevert "Fix timestamps for slow-paced event rates"
Mathieu Desnoyers [Thu, 26 Jan 2012 17:54:24 +0000 (12:54 -0500)] 
Revert "Fix timestamps for slow-paced event rates"

This reverts commit 9080554ff25b08f48762d2ee7cfa3981317e9c1d.

Was assuming LTTng 0.x clock scheme. LTTng 2.0 does not require a timer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Force 64-bit timestamps"
Mathieu Desnoyers [Thu, 26 Jan 2012 17:53:26 +0000 (12:53 -0500)] 
Revert "Force 64-bit timestamps"

This reverts commit aae88c703374f4b1fbb8a5e7e95591bf8ce3e837.

This commit was assuming the LTTng 0.x clock management scheme, and does
not apply to LTTng 2.0, which does not require a timer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDeclare struct lttng_ust_calibrate
Mathieu Desnoyers [Mon, 23 Jan 2012 22:49:42 +0000 (17:49 -0500)] 
Declare struct lttng_ust_calibrate

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoForce 64-bit timestamps
Mathieu Desnoyers [Mon, 23 Jan 2012 17:06:06 +0000 (12:06 -0500)] 
Force 64-bit timestamps

commit 9080554ff25b08f48762d2ee7cfa3981317e9c1d attempted to fix the
timestamp problem by using large event headers. It incorrectly stated
that those headers "use a 64-bit timestamp field". In fact, they use a
32-bit timestamp field (not 64). So they were helping (it was better
than using a 27-bit field), but the problem could still appear. It's
only when the RING_BUFFER_RFLAG_FULL_TSC is set that the ring buffer
forces use of the 64-bit fields.

Fix this for good by setting this flag.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agodemo program: ensure we don't link demo on useless libs
Mathieu Desnoyers [Tue, 17 Jan 2012 22:04:53 +0000 (17:04 -0500)] 
demo program: ensure we don't link demo on useless libs

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoust comm: Receive second FD even if 1st receive failed
Mathieu Desnoyers [Fri, 13 Jan 2012 21:11:32 +0000 (16:11 -0500)] 
ust comm: Receive second FD even if 1st receive failed

Ensures proper protocol behavior, because the sender expects the
receiver to get the two file descriptors.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoust consumer: close shm fd after mapping it
Mathieu Desnoyers [Thu, 12 Jan 2012 19:29:50 +0000 (14:29 -0500)] 
ust consumer: close shm fd after mapping it

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd a comment about which wait fd is closed early by UST.
Mathieu Desnoyers [Thu, 12 Jan 2012 19:07:56 +0000 (14:07 -0500)] 
Add a comment about which wait fd is closed early by UST.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove leftover structure in ust-abi.h
Mathieu Desnoyers [Thu, 12 Jan 2012 18:53:15 +0000 (13:53 -0500)] 
Remove leftover structure in ust-abi.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoClose stream and channel file descriptors as soon as passed to sessiond
Mathieu Desnoyers [Thu, 12 Jan 2012 18:04:34 +0000 (13:04 -0500)] 
Close stream and channel file descriptors as soon as passed to sessiond

Ensure we don't bust the open FD limit with many sessions.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix AC_LANG_SOURCE usage: only takes one parameter
Mathieu Desnoyers [Mon, 9 Jan 2012 23:25:24 +0000 (18:25 -0500)] 
Fix AC_LANG_SOURCE usage: only takes one parameter

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix timestamps for slow-paced event rates
Mathieu Desnoyers [Mon, 9 Jan 2012 16:42:57 +0000 (11:42 -0500)] 
Fix timestamps for slow-paced event rates

Given that we currently do not implement any timer that provides
guarantees of 27-bit timestamps overflow detection, force the timestamp
to 64-bit.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoconfigure.ac: Use AC_LANG_SOURCE for if else macros
Mathieu Desnoyers [Sat, 7 Jan 2012 17:57:24 +0000 (12:57 -0500)] 
configure.ac: Use AC_LANG_SOURCE for if else macros

Ref. http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html
"Noteworthy changes in autoconf version 2.66 through 2.68"

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd execution instructions to the demo test program.
Yannick Brosseau [Fri, 6 Jan 2012 18:41:07 +0000 (13:41 -0500)] 
Add execution instructions to the demo test program.

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoForce the building of shared noinst libraries in the demo test program
Yannick Brosseau [Fri, 6 Jan 2012 18:39:38 +0000 (13:39 -0500)] 
Force the building of shared noinst libraries in the demo test program

Remove the need to install them in /tmp

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOnly print the futex perror in debug mode
Mathieu Desnoyers [Sat, 31 Dec 2011 02:56:05 +0000 (21:56 -0500)] 
Only print the futex perror in debug mode

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.9.4 v1.9.4
Mathieu Desnoyers [Fri, 23 Dec 2011 16:04:01 +0000 (11:04 -0500)] 
Update version to 1.9.4

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSplit liblttng-ust into liblttng-ust and liblttng-ust-tracepoint libs
Mathieu Desnoyers [Thu, 22 Dec 2011 20:10:54 +0000 (15:10 -0500)] 
Split liblttng-ust into liblttng-ust and liblttng-ust-tracepoint libs

So tracepoint.h (in applications) can just dlopen
liblttng-ust-tracepoint without having to load the full liblttng-ust.

Now liblttng-ust is only needed by tracepoint probes.

This is a first step to fix the deadlock between the dynamic linker
mutex and ust mutex occurring when liblttng-ust is dlopened (due to lazy
symbol resolving of Thread-Local Storage (TLS)).

Discourage dlopen of liblttng-ust (and of tracepoint probes) in the
README.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoComment the union field (only used in call_rcu scheme)
Mathieu Desnoyers [Thu, 22 Dec 2011 15:16:31 +0000 (10:16 -0500)] 
Comment the union field (only used in call_rcu scheme)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.9.3 v1.9.3
Mathieu Desnoyers [Wed, 21 Dec 2011 21:56:14 +0000 (16:56 -0500)] 
Update version to 1.9.3

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix clock source overflow on 32-bit archs
Mathieu Desnoyers [Wed, 21 Dec 2011 21:24:48 +0000 (16:24 -0500)] 
Fix clock source overflow on 32-bit archs

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove unused trace_clock_frequency
Mathieu Desnoyers [Wed, 21 Dec 2011 21:23:55 +0000 (16:23 -0500)] 
Remove unused trace_clock_frequency

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agocheck for negative wait() return value
Mathieu Desnoyers [Wed, 21 Dec 2011 02:35:52 +0000 (21:35 -0500)] 
check for negative wait() return value

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd DBG message when registering a probe
Mathieu Desnoyers [Fri, 16 Dec 2011 22:03:38 +0000 (17:03 -0500)] 
Add DBG message when registering a probe

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOnly show futex warning "perror" in debug mode
Mathieu Desnoyers [Fri, 16 Dec 2011 16:55:42 +0000 (11:55 -0500)] 
Only show futex warning "perror" in debug mode

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.9.2 v1.9.2
Mathieu Desnoyers [Wed, 14 Dec 2011 21:57:16 +0000 (16:57 -0500)] 
Update version to 1.9.2

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing ust_libc.h to Makefile.am
Mathieu Desnoyers [Wed, 14 Dec 2011 21:53:28 +0000 (16:53 -0500)] 
Add missing ust_libc.h to Makefile.am

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse DBG instead of WARN for futex_wake workaround message
Mathieu Desnoyers [Wed, 14 Dec 2011 21:04:37 +0000 (16:04 -0500)] 
Use DBG instead of WARN for futex_wake workaround message

This message will only be shown if LTTNG_UST_DEBUG env. var. is set.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMake dlopen more robust by using the .0 target for the library
Mathieu Desnoyers [Wed, 14 Dec 2011 16:10:31 +0000 (11:10 -0500)] 
Make dlopen more robust by using the .0 target for the library

We've experienced a double library load on a setup where the lttng-ust
.so and .so.0 were two physical files instead of a symlink (as they
should be). So let's make liblttng-ust slightly more robust by
specifying the target .so.0 instead of .so. It will also make handling
of library version upgrades easier.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate changelog v1.9.1
Mathieu Desnoyers [Tue, 13 Dec 2011 23:05:42 +0000 (18:05 -0500)] 
Update changelog

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.040913 seconds and 4 git commands to generate.