babeltrace.git
12 years agoFix: Add memstream.h dependency to Makefile.am
Mathieu Desnoyers [Tue, 6 Mar 2012 22:51:06 +0000 (17:51 -0500)] 
Fix: Add memstream.h dependency to Makefile.am

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoImplement fallback for systems lacking open_memstream and fopenmem
Mathieu Desnoyers [Tue, 6 Mar 2012 22:47:56 +0000 (17:47 -0500)] 
Implement fallback for systems lacking open_memstream and fopenmem

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: try to include endian.h by default
Mathieu Desnoyers [Mon, 5 Mar 2012 17:38:39 +0000 (12:38 -0500)] 
Fix: try to include endian.h by default

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.0.0-pre3 v1.0.0-pre3
Mathieu Desnoyers [Fri, 2 Mar 2012 22:46:57 +0000 (17:46 -0500)] 
Update version to 1.0.0-pre3

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix uuid in metadata
Mathieu Desnoyers [Thu, 1 Mar 2012 23:50:32 +0000 (18:50 -0500)] 
Fix uuid in metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoBabeltrace wrapper update
Mathieu Desnoyers [Thu, 1 Mar 2012 23:36:07 +0000 (18:36 -0500)] 
Babeltrace wrapper update

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agouuid wrapper: fix use in visitor
Mathieu Desnoyers [Thu, 1 Mar 2012 23:27:24 +0000 (18:27 -0500)] 
uuid wrapper: fix use in visitor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoEndian wrapper use fix
Mathieu Desnoyers [Thu, 1 Mar 2012 23:18:00 +0000 (18:18 -0500)] 
Endian wrapper use fix

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFreeBSD uuid wrapper fixes
Mathieu Desnoyers [Thu, 1 Mar 2012 23:15:38 +0000 (18:15 -0500)] 
FreeBSD uuid wrapper fixes

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix missing uuid wrapper change
Mathieu Desnoyers [Thu, 1 Mar 2012 23:06:14 +0000 (18:06 -0500)] 
Fix missing uuid wrapper change

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd endian.h wrapper
Mathieu Desnoyers [Thu, 1 Mar 2012 23:04:47 +0000 (18:04 -0500)] 
Add endian.h wrapper

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse standard __LONG_MAX__ instead of __WORDSIZE
Mathieu Desnoyers [Thu, 1 Mar 2012 23:01:01 +0000 (18:01 -0500)] 
Use standard __LONG_MAX__ instead of __WORDSIZE

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCreate BSD wrapper for uuid
Mathieu Desnoyers [Thu, 1 Mar 2012 22:49:30 +0000 (17:49 -0500)] 
Create BSD wrapper for uuid

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix API : deal with the optional underscore
Julien Desfossez [Thu, 1 Mar 2012 16:14:44 +0000 (11:14 -0500)] 
fix API : deal with the optional underscore

A field can be prefixed by an underscore internally by the tracer.
This provides the abilility for the user to specify the underscore or
not (depending if he read the metadata or the tracepoint event
definition).
This is a fallback mechanism, so if the request fails, we prefix an
underscore to the field name and request it again.

Also, the bt_ctf_field_name function now removes the optional
underscore.

A quick benchmark shows that calling the bt_ctf_get_field without the
underscore on a field that requires an underscore adds around 151
nanoseconds to the call on a core 2 duo (tested in a loop of 1000000
iterations).

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix API : functions to access fields properties
Julien Desfossez [Thu, 1 Mar 2012 14:10:50 +0000 (09:10 -0500)] 
Fix API : functions to access fields properties

Add the ability to know :
- the signedness of an int
- the base of an int
- the encoding of an int
- the len of an array
- the encoding of a string

refs #139

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.0.0-pre2 v1.0.0-pre2
Mathieu Desnoyers [Thu, 23 Feb 2012 18:59:51 +0000 (13:59 -0500)] 
Update version to 1.0.0-pre2

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agolinker: privatize prio_heap and babeltrace_types
Mathieu Desnoyers [Thu, 23 Feb 2012 18:53:28 +0000 (13:53 -0500)] 
linker: privatize prio_heap and babeltrace_types

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoLinker: privatize libbabeltrace_types
Mathieu Desnoyers [Thu, 23 Feb 2012 18:39:16 +0000 (13:39 -0500)] 
Linker: privatize libbabeltrace_types

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoLink statically to internal libraries
Mathieu Desnoyers [Thu, 23 Feb 2012 18:25:05 +0000 (13:25 -0500)] 
Link statically to internal libraries

Previously, we installed all "internal" libs as .so, because static
linking a static lib into a dynamic lib did remove the unused objects.
Use the -Wl,--no-as-needed linker flag to fix this issue, allowing us to
entirely privatize private libs.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCombine duplicated API/pretty-print timestamp code
Mathieu Desnoyers [Thu, 23 Feb 2012 12:54:23 +0000 (07:54 -0500)] 
Combine duplicated API/pretty-print timestamp code

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : export the offsetted timestamp
Signed-off-by: Julien Desfossez [Thu, 23 Feb 2012 12:37:06 +0000 (07:37 -0500)] 
API : export the offsetted timestamp

We export now the offsetted view of the timestamp as well as the raw
timestamp to the users.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix : segfault when printing timestamp on index
Julien Desfossez [Tue, 21 Feb 2012 21:47:15 +0000 (16:47 -0500)] 
Fix : segfault when printing timestamp on index

If we detect we lost events in a packet, we print an error message
containing the begin and end timestamps of the packet.  If we detect
this packet loss while generating the index (during the open_trace), the
trace_collection is not yet referenced and so the clock information is
not available. This fix prevents the printing at this stage.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix : coherency in const parameters
Julien Desfossez [Tue, 21 Feb 2012 15:45:14 +0000 (10:45 -0500)] 
Fix : coherency in const parameters

This patchs adds the const attribute to the field access functions
(get_int64 and others) in order to keep the coherency with the get_field
and get_field_list function which return a const pointer.

fixes #84

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 1.0.0-pre1 v1.0.0-pre1
Mathieu Desnoyers [Mon, 20 Feb 2012 20:47:52 +0000 (15:47 -0500)] 
Update version to 1.0.0-pre1

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoGenerically print tracer version (and env) in verbose mode
Mathieu Desnoyers [Mon, 20 Feb 2012 20:27:51 +0000 (15:27 -0500)] 
Generically print tracer version (and env) in verbose mode

closes #82

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix open_mmap_trace missing support
Mathieu Desnoyers [Fri, 17 Feb 2012 20:03:59 +0000 (15:03 -0500)] 
Fix open_mmap_trace missing support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix: context.h add missing documentation for packet_seek parameter
Mathieu Desnoyers [Fri, 17 Feb 2012 19:53:16 +0000 (14:53 -0500)] 
fix: context.h add missing documentation for packet_seek parameter

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCleanup iterator.h
Mathieu Desnoyers [Fri, 17 Feb 2012 19:53:07 +0000 (14:53 -0500)] 
Cleanup iterator.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix callback.h documentation
Mathieu Desnoyers [Fri, 17 Feb 2012 19:43:31 +0000 (14:43 -0500)] 
Fix callback.h documentation

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCleanup: babeltrace.h does not need to include ctf/events.h
Mathieu Desnoyers [Fri, 17 Feb 2012 19:42:28 +0000 (14:42 -0500)] 
Cleanup: babeltrace.h does not need to include ctf/events.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI fix: Move callbacks to CTF plugin
Mathieu Desnoyers [Fri, 17 Feb 2012 19:39:27 +0000 (14:39 -0500)] 
API fix: Move callbacks to CTF plugin

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemoved unneeded ctf_* forward declarations from babeltrace.h
Mathieu Desnoyers [Fri, 17 Feb 2012 19:26:51 +0000 (14:26 -0500)] 
Removed unneeded ctf_* forward declarations from babeltrace.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove unneeded forward declarations (ctf-specific) from iterator.h
Mathieu Desnoyers [Fri, 17 Feb 2012 19:24:04 +0000 (14:24 -0500)] 
Remove unneeded forward declarations (ctf-specific) from iterator.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix: move read event from iterator to event.h
Mathieu Desnoyers [Fri, 17 Feb 2012 19:21:41 +0000 (14:21 -0500)] 
fix: move read event from iterator to event.h

because it is CTF-specific.

Need to move the format registry to libbabeltrace due to
cross-dependencies between libbabeltrace and formats.

Now, the format libs depend on libbabeltrace, never the opposite.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: ctf specific events.c needs to be within CTF plugin
Mathieu Desnoyers [Fri, 17 Feb 2012 18:06:22 +0000 (13:06 -0500)] 
Fix: ctf specific events.c needs to be within CTF plugin

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI fix: packet_seek should take an index rather than offset
Mathieu Desnoyers [Fri, 17 Feb 2012 18:01:29 +0000 (13:01 -0500)] 
API fix: packet_seek should take an index rather than offset

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix API: allow packet_seek override
Mathieu Desnoyers [Fri, 17 Feb 2012 17:49:42 +0000 (12:49 -0500)] 
Fix API: allow packet_seek override

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: add lib missing includes
Mathieu Desnoyers [Fri, 17 Feb 2012 17:35:56 +0000 (12:35 -0500)] 
Fix: add lib missing includes

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: packet_seek is local to plugins, but can be overridden
Mathieu Desnoyers [Fri, 17 Feb 2012 17:32:55 +0000 (12:32 -0500)] 
Fix: packet_seek is local to plugins, but can be overridden

libbabeltrace should not know about them.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix API: rename unclear move_pos_slow to packet_seek
Mathieu Desnoyers [Fri, 17 Feb 2012 17:27:56 +0000 (12:27 -0500)] 
Fix API: rename unclear move_pos_slow to packet_seek

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: Check for unknown format
Mathieu Desnoyers [Fri, 17 Feb 2012 17:19:39 +0000 (12:19 -0500)] 
Fix: Check for unknown format

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: do not use ctf-specific struct in format.h
Mathieu Desnoyers [Fri, 17 Feb 2012 17:15:49 +0000 (12:15 -0500)] 
Fix: do not use ctf-specific struct in format.h

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix : callback type, doc and links to libbabeltrace
Julien Desfossez [Fri, 17 Feb 2012 17:00:01 +0000 (12:00 -0500)] 
fix : callback type, doc and links to libbabeltrace

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix : callback chain len
Julien Desfossez [Fri, 17 Feb 2012 16:40:47 +0000 (11:40 -0500)] 
Fix : callback chain len

Wrong check caused a segmentation fault when checking for a callback at
the end of the callback chain.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.12 v0.12
Mathieu Desnoyers [Thu, 16 Feb 2012 19:36:05 +0000 (14:36 -0500)] 
Update version to 0.12

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoTypedef bt_intern_str
Julien Desfossez [Thu, 16 Feb 2012 19:34:21 +0000 (14:34 -0500)] 
Typedef bt_intern_str

Remove external dependency to glib

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoExport the list header with a new namespace
Julien Desfossez [Thu, 16 Feb 2012 19:13:19 +0000 (14:13 -0500)] 
Export the list header with a new namespace

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : add_trace return the trace_handle id
Julien Desfossez [Thu, 16 Feb 2012 18:13:50 +0000 (13:13 -0500)] 
API : add_trace return the trace_handle id

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agofix manpage: refer to lttng(1)
Mathieu Desnoyers [Thu, 16 Feb 2012 18:07:50 +0000 (13:07 -0500)] 
fix manpage: refer to lttng(1)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : cleanup includes
Julien Desfossez [Thu, 16 Feb 2012 17:33:25 +0000 (12:33 -0500)] 
API : cleanup includes

The user just need to include babeltrace/babeltrace.h to use the API.
Also, create a babeltrace/ctf directory to store CTF-related code.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : Access CTF events fields
Julien Desfossez [Thu, 16 Feb 2012 16:53:44 +0000 (11:53 -0500)] 
API : Access CTF events fields

Update the iterator code to return a bt_ctf_event.
Access to field list within a scope.
Access to field values depending on type.

[ Edit by Mathieu Desnoyers: minor updates: uint64_t for timestamp, and
  style fixes. ]

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agomanpage: Add babeltrace-log.1
Mathieu Desnoyers [Thu, 16 Feb 2012 12:01:28 +0000 (07:01 -0500)] 
manpage: Add babeltrace-log.1

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : seek by timestamp
Julien Desfossez [Wed, 15 Feb 2012 02:37:34 +0000 (21:37 -0500)] 
API : seek by timestamp

Add a new function to create a timestamp-based position and the support
in bt_iter_set_pos to seek to certain timestamp.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMove the add_traces_recursive out of the library
Yannick Brosseau [Tue, 14 Feb 2012 19:11:45 +0000 (14:11 -0500)] 
Move the add_traces_recursive out of the library

The exact API for this function is hard to define, so we move back
the function directly to the converter code where it can serve
as an example for applications who want to use this functionnality.

Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agomanpage: use pp instead of PP
Mathieu Desnoyers [Tue, 14 Feb 2012 05:48:38 +0000 (00:48 -0500)] 
manpage: use pp instead of PP

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.11.1
Mathieu Desnoyers [Mon, 13 Feb 2012 23:30:39 +0000 (18:30 -0500)] 
Update version to 0.11.1

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd trace-collection.h to the installed headers
Alexandre Montplaisir [Mon, 13 Feb 2012 23:29:09 +0000 (18:29 -0500)] 
Add trace-collection.h to the installed headers

Or else the tarball generated by 'make dist' fails to compile with

context.c:27:41: fatal error: babeltrace/trace-collection.h: No
                 such file or directory

Signed-off-by: Alexandre Montplaisir <alexandre.montplaisir@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.11 v0.11
Mathieu Desnoyers [Mon, 13 Feb 2012 15:43:20 +0000 (10:43 -0500)] 
Update version to 0.11

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd --clock-force-correlate option
Mathieu Desnoyers [Mon, 13 Feb 2012 14:26:53 +0000 (09:26 -0500)] 
Add --clock-force-correlate option

For support of older 2.0-pre traces.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agolib: open trace error handling fix
Mathieu Desnoyers [Mon, 13 Feb 2012 14:03:55 +0000 (09:03 -0500)] 
lib: open trace error handling fix

When a trace from a trace collection path fails, consider this as a hard
error. Print errors to stderr rather than stdout.

The end goal is to never show an output if any of the trace specified
(or trace within a trace collection) fails to open.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse default if there is no clock declaration
Juha Niskanen [Mon, 13 Feb 2012 13:55:20 +0000 (08:55 -0500)] 
Use default if there is no clock declaration

In absence of clock description in metadata, use a default clock
source which increments once per nanosecond.

Without this patch, the converter crashes when given old traces
that are lacking clock description block.

[ Edit by Mathieu Desnoyers: style cleanup, added clock description,
  added comments. ]

Signed-off-by: Juha Niskanen <juniskane@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoiterator: fix type warning on 32-bit build
Mathieu Desnoyers [Mon, 13 Feb 2012 13:35:12 +0000 (08:35 -0500)] 
iterator: fix type warning on 32-bit build

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse 64-bit type for packet and content size
Juha Niskanen [Mon, 13 Feb 2012 13:33:58 +0000 (08:33 -0500)] 
Use 64-bit type for packet and content size

Expression filestats.st_size * CHAR_BIT wraps around very easily
when stored to 32-bit size_t. Currently BabelTrace cannot handle
input larger than 256Mb because of this and diagnostic messages
from this function can be incorrect because of overflow.

This patch fixes my immediate problem, but further work is needed
for proper large file support i.e. handling files bigger than 2Gb.

Signed-off-by: Juha Niskanen <juniskane@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix context API
Mathieu Desnoyers [Fri, 10 Feb 2012 19:26:16 +0000 (14:26 -0500)] 
Fix context API

- bt_context_add_traces_recursive ->
  don't have 2 symbols that just differ from a "s".
- bt_context_add_trace return values:
  - Now, nonzero is error, zero is OK.
  - Streamline with bt_context_add_traces_recursive, so none return
    trace handle IDs.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing context-internal.h
Mathieu Desnoyers [Fri, 10 Feb 2012 19:18:47 +0000 (14:18 -0500)] 
Add missing context-internal.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agostruct bt_context is opaque
Mathieu Desnoyers [Fri, 10 Feb 2012 19:18:26 +0000 (14:18 -0500)] 
struct bt_context is opaque

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate comment to match context API code
Mathieu Desnoyers [Fri, 10 Feb 2012 19:14:16 +0000 (14:14 -0500)] 
Update comment to match context API code

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPrint loglevel names
Mathieu Desnoyers [Fri, 10 Feb 2012 18:22:47 +0000 (13:22 -0500)] 
Print loglevel names

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agobabeltrace lib cleanup, folded with open/remove trace functions
Mathieu Desnoyers [Fri, 10 Feb 2012 17:01:01 +0000 (12:01 -0500)] 
babeltrace lib cleanup, folded with open/remove trace functions

Folded patch from Yannick Brosseau <yannick.brosseau@gmail.com>, along
with various updates and cleanups, related to babeltrace lib.

Original changelog from Yannick Brosseau:
Move the trace_collection into its own file.
Port the converter to uses the new functions

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : iterator get and set position
Julien Desfossez [Fri, 10 Feb 2012 02:32:52 +0000 (21:32 -0500)] 
API : iterator get and set position

This patch implements the save and restore position on a iterator.

Passed successfully these tests :
- test 1:
save the position
read n events (tested with multiple values of n)
restore
compare the outputs

- test 2:
in loop until the end of the trace :
        save the position
        read 5 events
        restore the position
        read 5 events
compare each block of 5 events

- test 3:
save the position before printing the first event
parse the trace entirely
restore to the beginning
parse the trace entirely
compare the 2 outputs

- test 4:
seek in the future (manually tweaked the values to restore to)
compare with a normal trace starting from the restore point

[ edit: use g_new/g_new0/g_free instead of malloc/calloc/free.
  Use g_new0 anytime a structure is not explicitly initialized by
  a helper, so if it grows in the future with new fields, they will be
  zeroed. ]

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.10 v0.10
Mathieu Desnoyers [Fri, 10 Feb 2012 00:44:34 +0000 (19:44 -0500)] 
Update version to 0.10

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix clock freq
Mathieu Desnoyers [Thu, 9 Feb 2012 21:05:15 +0000 (16:05 -0500)] 
Fix clock freq

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoclock: use freq field
Mathieu Desnoyers [Thu, 9 Feb 2012 13:44:48 +0000 (08:44 -0500)] 
clock: use freq field

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoShow env. in verbose mode
Mathieu Desnoyers [Tue, 7 Feb 2012 14:47:25 +0000 (09:47 -0500)] 
Show env. in verbose mode

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove all code that depends on trace collection directory structure
Mathieu Desnoyers [Tue, 7 Feb 2012 14:38:58 +0000 (09:38 -0500)] 
Remove all code that depends on trace collection directory structure

We now perform equivalent functionnality with environment within trace
metadata.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse environment information for extra fields
Mathieu Desnoyers [Tue, 7 Feb 2012 14:32:29 +0000 (09:32 -0500)] 
Use environment information for extra fields

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoParse environment declarations from LTTng-modules and LTTng-UST
Mathieu Desnoyers [Tue, 7 Feb 2012 14:28:33 +0000 (09:28 -0500)] 
Parse environment declarations from LTTng-modules and LTTng-UST

LTTng-UST:
vpid, procname, domain.

LTTng-modules:
domain, sysname, release, version.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix typo
Mathieu Desnoyers [Tue, 7 Feb 2012 04:36:37 +0000 (23:36 -0500)] 
Fix typo

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd babeltrace.1 manpage
Mathieu Desnoyers [Mon, 6 Feb 2012 17:21:11 +0000 (12:21 -0500)] 
Add babeltrace.1 manpage

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate help
Mathieu Desnoyers [Mon, 6 Feb 2012 17:20:52 +0000 (12:20 -0500)] 
Update help

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoInstall license files and dependency listing into the system doc
Mathieu Desnoyers [Mon, 6 Feb 2012 17:12:31 +0000 (12:12 -0500)] 
Install license files and dependency listing into the system doc

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd ChangeLog to doc install
Mathieu Desnoyers [Sat, 4 Feb 2012 21:47:23 +0000 (16:47 -0500)] 
Add ChangeLog to doc install

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.9 v0.9
Mathieu Desnoyers [Thu, 2 Feb 2012 17:47:01 +0000 (12:47 -0500)] 
Update version to 0.9

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAllow signed values in get_signed. Cast unsigned into signed.
Mathieu Desnoyers [Thu, 2 Feb 2012 04:19:24 +0000 (23:19 -0500)] 
Allow signed values in get_signed. Cast unsigned into signed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoShow loglevel information only with value
Mathieu Desnoyers [Wed, 1 Feb 2012 23:24:56 +0000 (18:24 -0500)] 
Show loglevel information only with value

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoenv needs to be a keyword too
Mathieu Desnoyers [Wed, 1 Feb 2012 22:28:15 +0000 (17:28 -0500)] 
env needs to be a keyword too

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd env {} warning test case
Mathieu Desnoyers [Wed, 1 Feb 2012 22:26:23 +0000 (17:26 -0500)] 
Add env {} warning test case

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd environment (env {}) parser-level support
Mathieu Desnoyers [Wed, 1 Feb 2012 22:24:54 +0000 (17:24 -0500)] 
Add environment (env {}) parser-level support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Remove leading underscores from identifiers directly in lexer"
Mathieu Desnoyers [Wed, 1 Feb 2012 21:42:21 +0000 (16:42 -0500)] 
Revert "Remove leading underscores from identifiers directly in lexer"

This reverts commit f071e095a2a8f76dd78becfa103b952af68e148d.

The reason why the underscores are needed in the first place is because
we want to make sure sequences and variants to not have clash between
fields called e.g. "stream" and the dynamic scope
"stream.event.header.". Therefore, we need to keep the leading
underscores as part of the internal identifier representation.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove leading underscores from identifiers directly in lexer
Mathieu Desnoyers [Wed, 1 Feb 2012 20:43:51 +0000 (15:43 -0500)] 
Remove leading underscores from identifiers directly in lexer

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix: do not remove field names when adding fields
Mathieu Desnoyers [Tue, 31 Jan 2012 21:23:57 +0000 (16:23 -0500)] 
Fix: do not remove field names when adding fields

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : iterator namespace cleanup
Julien Desfossez [Tue, 31 Jan 2012 16:59:22 +0000 (11:59 -0500)] 
API : iterator namespace cleanup

For coherence, rename babeltrace_iter to bt_iter, and
trace_collection_pos to bt_iter_pos.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoTime offset: use trace offset average
Mathieu Desnoyers [Mon, 30 Jan 2012 23:33:12 +0000 (18:33 -0500)] 
Time offset: use trace offset average

Use the average offset for a given clock across all trace descriptions
as offset for the trace collection. This ensures that the time-stamps
stay invariant for a given trace collection: it won't change if the
traversal order of the trace directories change.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : trace_handle
Julien Desfossez [Mon, 30 Jan 2012 22:25:50 +0000 (17:25 -0500)] 
API : trace_handle

Add the trace_handle structure to allow the user to manipulate a trace.
Will be useful for getting information on specific trace files and
remove traces from a trace_collection without rebuilding the
trace_collection entirely.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPrint event discarded at end of stream
Mathieu Desnoyers [Mon, 30 Jan 2012 21:41:39 +0000 (16:41 -0500)] 
Print event discarded at end of stream

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDiscarded event time range is between last packet event and timestamp_end
Mathieu Desnoyers [Mon, 30 Jan 2012 21:10:08 +0000 (16:10 -0500)] 
Discarded event time range is between last packet event and timestamp_end

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPrint time range during which events have been dropped
Mathieu Desnoyers [Mon, 30 Jan 2012 19:30:35 +0000 (14:30 -0500)] 
Print time range during which events have been dropped

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPrint events discarded
Mathieu Desnoyers [Mon, 30 Jan 2012 18:57:41 +0000 (13:57 -0500)] 
Print events discarded

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd clock offset support
Mathieu Desnoyers [Mon, 30 Jan 2012 17:53:50 +0000 (12:53 -0500)] 
Add clock offset support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoWarn user of clock offsets do not match
Mathieu Desnoyers [Mon, 30 Jan 2012 17:11:01 +0000 (12:11 -0500)] 
Warn user of clock offsets do not match

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