babeltrace.git
12 years agoFix double typedef of bt_event_name
Mathieu Desnoyers [Fri, 27 Jan 2012 18:42:13 +0000 (13:42 -0500)] 
Fix double typedef of bt_event_name

Reported-by: Tan Dung Le Tran <tan.dung.le.tran@ericsson.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoParse clock descriptions
Mathieu Desnoyers [Fri, 27 Jan 2012 01:32:05 +0000 (20:32 -0500)] 
Parse clock descriptions

Parse basic clock descriptions and integer "map = identifiers...;".

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAPI : split iterator headers from babeltrace.h
Julien Desfossez [Wed, 25 Jan 2012 20:29:47 +0000 (15:29 -0500)] 
API : split iterator headers from babeltrace.h

Removed the iterator specific prototypes from babeltrace.h
No change in functionnality.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing context.h/context.c
Julien Desfossez [Wed, 25 Jan 2012 19:46:16 +0000 (14:46 -0500)] 
Add missing context.h/context.c

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoIntroduce contexts
Julien Desfossez [Wed, 25 Jan 2012 19:30:12 +0000 (14:30 -0500)] 
Introduce contexts

The context is an object in which the trace_collection is opened. The
iterator (and later callbacks) depend on the context. This patch, does
not modify the behaviour, it is just the introduction of the contexts.
Also moved convert_trace() in the converter code since it is not a
public API function.

Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix parallel build for lib/
Mathieu Desnoyers [Thu, 19 Jan 2012 15:24:17 +0000 (10:24 -0500)] 
Fix parallel build for lib/

When we have a dependency from a library on another library (with
LIBADD), we need to put the lib we depend on in another directory, and
build that directory prior to the current directory. This is what is
done in the http://sourceware.org/autobook/autobook/autobook_92.html
"11.5 Convenience Libraries" example.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOrganise libbabeltrace
Julien Desfossez [Mon, 16 Jan 2012 17:56:37 +0000 (12:56 -0500)] 
Organise libbabeltrace

Move the library from converter/ to lib/.

Split functionnalities into separate files :
- babeltrace.c
- iterator.c
- callbacks.c

New internal include files for shared structures between iterator and
callbacks :
- include/babeltrace/callbacks-internal.h
- include/babeltrace/iterator-internal.h

No new functionnalities, just a cleanup of the structure.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoExport the format.h header
Julien Desfossez [Mon, 16 Jan 2012 17:36:05 +0000 (12:36 -0500)] 
Export the format.h header

This header is necessary to open traces since it deals with the various
formats available.
Install it in the include/babeltrace/ folder and make sure it is
included when we include babeltrace.h

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoCreate the babeltrace include dir on install
Julien Desfossez [Mon, 16 Jan 2012 17:35:03 +0000 (12:35 -0500)] 
Create the babeltrace include dir on install

And for now just install babeltrace.h in it.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agocallbacks: use correct type for element size
Mathieu Desnoyers [Mon, 9 Jan 2012 20:30:23 +0000 (15:30 -0500)] 
callbacks: use correct type for element size

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agocallbacks: Fix set size array size
Mathieu Desnoyers [Mon, 9 Jan 2012 20:27:06 +0000 (15:27 -0500)] 
callbacks: Fix set size array size

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix callback chain array usage
Mathieu Desnoyers [Mon, 9 Jan 2012 20:18:35 +0000 (15:18 -0500)] 
Fix callback chain array usage

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd time delta to ctf-text
Mathieu Desnoyers [Sat, 7 Jan 2012 19:28:29 +0000 (14:28 -0500)] 
Add time delta to ctf-text

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoctf-text: show timestamp in sec.nsec
Mathieu Desnoyers [Sat, 7 Jan 2012 19:07:38 +0000 (14:07 -0500)] 
ctf-text: show timestamp in sec.nsec

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix wrong variable error check
Mathieu Desnoyers [Sat, 7 Jan 2012 19:03:33 +0000 (14:03 -0500)] 
Fix wrong variable error check

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse the generic call to move_pos_slow
Julien Desfossez [Tue, 13 Dec 2011 12:47:09 +0000 (07:47 -0500)] 
Use the generic call to move_pos_slow

Replace two hardcoded calls to ctf_move_pos_slow by calls to the
function pointer registered when opening a trace.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoVersion 0.8 v0.8
Mathieu Desnoyers [Tue, 13 Dec 2011 02:45:10 +0000 (21:45 -0500)] 
Version 0.8

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd loglevel support
Mathieu Desnoyers [Tue, 6 Dec 2011 16:47:53 +0000 (11:47 -0500)] 
Add loglevel support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate libpopt dependency to 1.13
Mathieu Desnoyers [Thu, 1 Dec 2011 16:45:02 +0000 (11:45 -0500)] 
Update libpopt dependency to 1.13

After careful review of popt cvs tree, after cross-correlation of CHANGE
file with source code POPT_ARGFLAG_OPTIONAL updates, identified that the
updates to this part of the code end at 1.13.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDocument dependency on libpopt >= 1.8
Mathieu Desnoyers [Thu, 1 Dec 2011 16:16:53 +0000 (11:16 -0500)] 
Document dependency on libpopt >= 1.8

ref: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=285666

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDescribe libtool version dependency
Mathieu Desnoyers [Thu, 1 Dec 2011 15:41:15 +0000 (10:41 -0500)] 
Describe libtool version dependency

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAC_PROG_LIBTOOL is deprecated in favor of LT_INIT
Mathieu Desnoyers [Thu, 1 Dec 2011 15:31:48 +0000 (10:31 -0500)] 
AC_PROG_LIBTOOL is deprecated in favor of LT_INIT

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse realpath for path
Mathieu Desnoyers [Mon, 28 Nov 2011 21:47:46 +0000 (16:47 -0500)] 
Use realpath for path

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoHelper function to extract string from fields
Julien Desfossez [Mon, 28 Nov 2011 14:24:37 +0000 (09:24 -0500)] 
Helper function to extract string from fields

Following the same principle as get_char_array and get_(un)signed_int,
this function returns a char* to a string from an event field.

[ Edit by Mathieu Desnoyers: add header prototype. ]

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse realpath on trace collection path
Mathieu Desnoyers [Wed, 23 Nov 2011 09:49:46 +0000 (10:49 +0100)] 
Use realpath on trace collection path

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoallow printing domains when no procname are present, handle various / patterns
Mathieu Desnoyers [Wed, 23 Nov 2011 07:06:33 +0000 (08:06 +0100)] 
allow printing domains when no procname are present, handle various / patterns

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd trace:domain,trace:procname,trace:pid support
Mathieu Desnoyers [Tue, 22 Nov 2011 16:58:14 +0000 (17:58 +0100)] 
Add trace:domain,trace:procname,trace:pid support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd "-n trace" option to print trace name
Mathieu Desnoyers [Tue, 22 Nov 2011 09:34:31 +0000 (10:34 +0100)] 
Add "-n trace" option to print trace name

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoDo not install ctf-parser-test
Mathieu Desnoyers [Sat, 19 Nov 2011 16:27:20 +0000 (11:27 -0500)] 
Do not install ctf-parser-test

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMake ctf open errors more verbose
Mathieu Desnoyers [Fri, 18 Nov 2011 20:04:15 +0000 (15:04 -0500)] 
Make ctf open errors more verbose

With many files, it is useful to know the cause of open errors, e.g.

File stream openat(): Too many open files

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoconfigure.ac: add check for popt library
Thomas Petazzoni [Thu, 3 Nov 2011 12:00:19 +0000 (08:00 -0400)] 
configure.ac: add check for popt library

The popt library is used by babeltrace but isn't checked in
configure.ac, so the compilation fails due to popt.h being missing if
popt is not already installed on the system.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoShow field names by default, enhance --names option
Mathieu Desnoyers [Wed, 2 Nov 2011 13:48:20 +0000 (09:48 -0400)] 
Show field names by default, enhance --names option

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMove opt_field_names/babeltrace_verbose/babeltrace_debug into lib
Mathieu Desnoyers [Wed, 2 Nov 2011 12:13:16 +0000 (08:13 -0400)] 
Move opt_field_names/babeltrace_verbose/babeltrace_debug into lib

Introduce BABELTRACE_VERBOSE and BABELTRACE_DEBUG env. var.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd mmap trace reading
Julien Desfossez [Fri, 30 Sep 2011 00:49:48 +0000 (20:49 -0400)] 
Add mmap trace reading

This set of functions allows a client to open a trace that is not stored
on tracefiles but instead is in memory.
Since the parameters required for such an operation are really different
than typical traces, we define the open_mmap_trace function.
This patch also introduces the mmap_stream structure and
mmap_stream_list that represents a list of FDs readable by mmap.

[ Edit by Mathieu Desnoyers: cleanup ]

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoPass stream pointer with callback caller data
Julien Desfossez [Fri, 30 Sep 2011 00:42:41 +0000 (20:42 -0400)] 
Pass stream pointer with callback caller data

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoVersion 0.7 v0.7
Mathieu Desnoyers [Thu, 29 Sep 2011 23:01:01 +0000 (19:01 -0400)] 
Version 0.7

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing stdint.h
Mathieu Desnoyers [Tue, 27 Sep 2011 16:38:17 +0000 (12:38 -0400)] 
Add missing stdint.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUse integer extraction functions
Mathieu Desnoyers [Tue, 27 Sep 2011 01:07:41 +0000 (21:07 -0400)] 
Use integer extraction functions

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoExtract int and char arrays from fields
Julien Desfossez [Tue, 27 Sep 2011 01:00:10 +0000 (21:00 -0400)] 
Extract int and char arrays from fields

Three helper functions to ease the extraction of basic types from event
fields. For now we support signed and unsigned integers and strings.
Other functions could be added following the same principle for other
types.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd parameters to callbacks
Julien Desfossez [Tue, 27 Sep 2011 00:57:52 +0000 (20:57 -0400)] 
Add parameters to callbacks

This patchs adds a new structure that is passed by the library as the
first parameter of each callback call. As of now it only provides a
pointer to the current event. Now we also pass the pointer to the
private data registered when the callback is added.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix float support
Mathieu Desnoyers [Mon, 26 Sep 2011 17:19:21 +0000 (13:19 -0400)] 
Fix float support

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix type cast warning
Mathieu Desnoyers [Mon, 26 Sep 2011 17:19:01 +0000 (13:19 -0400)] 
Fix type cast warning

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoInteger support: add missing signed casts
Mathieu Desnoyers [Mon, 19 Sep 2011 14:42:38 +0000 (10:42 -0400)] 
Integer support: add missing signed casts

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove underscore prefix from field names (pretty-print)
Mathieu Desnoyers [Sat, 17 Sep 2011 03:31:44 +0000 (23:31 -0400)] 
Remove underscore prefix from field names (pretty-print)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix sequence iteration
Mathieu Desnoyers [Fri, 16 Sep 2011 19:34:00 +0000 (15:34 -0400)] 
Fix sequence iteration

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix sequence field name use after free
Mathieu Desnoyers [Fri, 16 Sep 2011 17:40:34 +0000 (13:40 -0400)] 
Fix sequence field name use after free

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix support for empty streams
Mathieu Desnoyers [Thu, 15 Sep 2011 17:05:41 +0000 (13:05 -0400)] 
Fix support for empty streams

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOptional file pointer to metadata
Julien Desfossez [Wed, 14 Sep 2011 02:48:18 +0000 (22:48 -0400)] 
Optional file pointer to metadata

For some use-cases it may be useful to control the file pointer to the
metadata instead of lookup absolutely for a file named "metadata" in the
trace directory. If the pointer is NULL, we fallback to the original
mode.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSpecify callback to move packet in open_trace
Julien Desfossez [Tue, 13 Sep 2011 21:56:56 +0000 (17:56 -0400)] 
Specify callback to move packet in open_trace

This patch adds a new parameter to open_trace to allow the user to
specify the function to call when babeltrace needs to switch packet.
This patch is a first step for the mmap reading code integration.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFree the callbacks on iter_destroy
Julien Desfossez [Tue, 13 Sep 2011 21:15:28 +0000 (17:15 -0400)] 
Free the callbacks on iter_destroy

[ edit : use TRUE instead of 1 ]

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd callback support
Julien Desfossez [Tue, 13 Sep 2011 19:06:42 +0000 (15:06 -0400)] 
Add callback support

This patchs provides the code to add callbacks per event or for each
events. For now the priority is not handled so the callbacks are
processed in a FIFO manner and global callbacks are processed before
per-event callbacks.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoBasic seek support
Julien Desfossez [Tue, 13 Sep 2011 17:59:22 +0000 (13:59 -0400)] 
Basic seek support

For now just mimic the previous behaviour of babeltrace but with a basic
seek structure.
We define the babeltrace_iter_seek that seeks each file_stream of an
iterator to a given position and the babeltrace_filestream_seek function
that does the actual seek on the file_stream and can be used internally.

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd callback API
Mathieu Desnoyers [Thu, 1 Sep 2011 14:02:52 +0000 (10:02 -0400)] 
Add callback API

Implementation still has to be done.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoEnhance babeltrace API with position save/restore
Mathieu Desnoyers [Wed, 31 Aug 2011 20:03:03 +0000 (16:03 -0400)] 
Enhance babeltrace API with position save/restore

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove unused structure forward declarations
Mathieu Desnoyers [Wed, 31 Aug 2011 19:44:16 +0000 (15:44 -0400)] 
Remove unused structure forward declarations

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove stale local .c struct declarations (unused)
Mathieu Desnoyers [Wed, 31 Aug 2011 19:29:49 +0000 (15:29 -0400)] 
Remove stale local .c struct declarations (unused)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAnnotate branches in ctf.c event reading/writing code
Mathieu Desnoyers [Tue, 16 Aug 2011 19:05:17 +0000 (15:05 -0400)] 
Annotate branches in ctf.c event reading/writing code

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAnnotate prio heap likely branch
Mathieu Desnoyers [Tue, 16 Aug 2011 19:00:02 +0000 (15:00 -0400)] 
Annotate prio heap likely branch

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAnnotate likely/unlikely branches in headers
Mathieu Desnoyers [Tue, 16 Aug 2011 18:53:58 +0000 (14:53 -0400)] 
Annotate likely/unlikely branches in headers

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.6 v0.6
Mathieu Desnoyers [Sat, 13 Aug 2011 00:19:10 +0000 (20:19 -0400)] 
Update version to 0.6

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoExport the babeltrace API in babeltrace.h
Julien Desfossez [Sat, 13 Aug 2011 00:15:28 +0000 (20:15 -0400)] 
Export the babeltrace API in babeltrace.h

Rename the previous babeltrace.h as babeltrace-internal.h

[ Edit by Mathieu Desnoyers: API cleanup. ]

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix support for gold linker: inappropriate dep removal of plugins
Mathieu Desnoyers [Sat, 13 Aug 2011 00:00:58 +0000 (20:00 -0400)] 
Fix support for gold linker: inappropriate dep removal of plugins

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd missing converter/babeltrace-api.h
Mathieu Desnoyers [Fri, 12 Aug 2011 22:47:52 +0000 (18:47 -0400)] 
Add missing converter/babeltrace-api.h

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoBabeltrace public API
Julien Desfossez [Fri, 12 Aug 2011 22:46:31 +0000 (18:46 -0400)] 
Babeltrace public API

Add a new library to allow external tools to read traces.
Updated convert_trace to use this API.

[ Edit by Mathieu Desnoyers: add error value checks, update comments ]

Signed-off-by: Julien Desfossez <julien.desfossez@polymtl.ca>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix babeltrace-log output header
Mathieu Desnoyers [Fri, 12 Aug 2011 21:38:37 +0000 (17:38 -0400)] 
Fix babeltrace-log output header

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSave current event id
Mathieu Desnoyers [Fri, 12 Aug 2011 21:36:29 +0000 (17:36 -0400)] 
Save current event id

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoBabeltrace: print correct version number
Mathieu Desnoyers [Fri, 12 Aug 2011 19:41:17 +0000 (15:41 -0400)] 
Babeltrace: print correct version number

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.5, add changelog v0.5
Mathieu Desnoyers [Fri, 12 Aug 2011 17:12:04 +0000 (13:12 -0400)] 
Update version to 0.5, add changelog

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoInitialize size to 0 to eliminate incorrect gcc uninitialized var warning
Mathieu Desnoyers [Fri, 12 Aug 2011 14:42:24 +0000 (10:42 -0400)] 
Initialize size to 0 to eliminate incorrect gcc uninitialized var warning

gcc does not seem to keep track of both size and has_size.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix non-matching packet context wrt last packet event read
Mathieu Desnoyers [Thu, 11 Aug 2011 20:38:04 +0000 (16:38 -0400)] 
Fix non-matching packet context wrt last packet event read

The last event in a packet is seen with the timestamp of the beginning
of the next packet due to an incorrect handling of ctf_move_pos() : the
"ctf_move_pos_slow" that switches between packets needs to be called at
the next event, rather than at the end of the last event of the packet.
When the position was getting to the end of the payload of the last
event, it was immediately changing packet, which changed all packet
context information, including the current timestamp.

This is fixed by explicitely calling the ctf_move_pos_slow() on packet
boundaries at the beginning of event read rather than at each
ctf_move_pos call.

We also fix handling of empty trace packets here: when an empty packet
is detected, we need to move on to the next packet immediately within
ctf_move_pos_slow() rather than let the caller think there is some event
data in the empty packet.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoVersion 0.4 v0.4
Mathieu Desnoyers [Sat, 6 Aug 2011 18:59:27 +0000 (14:59 -0400)] 
Version 0.4

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoMultiple Directory Conversion
Amer Alhalabi [Fri, 5 Aug 2011 18:42:35 +0000 (14:42 -0400)] 
Multiple Directory Conversion

Code added/modified to merge and convert many CTF binary files located
in different directories into one ASCII file.

Edit by Mathieu Desnoyers:

- Introduce struct trace_collection, because this will eventually be
  seen as an API to the outside world, so I want to hide the internal
  dependency on glib types.
- Added #define _XOPEN_SOURCE 700 needed for openat and nftw at the top
  of babeltrace.c.

Signed-off-by: Amer Alhalabi <amer.alhalabi@ericsson.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoVersion 0.3 v0.3
Mathieu Desnoyers [Wed, 3 Aug 2011 20:07:55 +0000 (16:07 -0400)] 
Version 0.3

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd lttng-modules 2.0-pre5 trace file
Mathieu Desnoyers [Wed, 3 Aug 2011 17:38:36 +0000 (13:38 -0400)] 
Add lttng-modules 2.0-pre5 trace file

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSkip padding from metadata end of packet
Mathieu Desnoyers [Wed, 3 Aug 2011 17:38:17 +0000 (13:38 -0400)] 
Skip padding from metadata end of packet

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoupdate test files header to "CTF 1.8"
Mathieu Desnoyers [Wed, 3 Aug 2011 17:11:57 +0000 (13:11 -0400)] 
update test files header to "CTF 1.8"

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate message
Mathieu Desnoyers [Wed, 3 Aug 2011 17:08:31 +0000 (13:08 -0400)] 
Update message

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix reading of empty packets
Mathieu Desnoyers [Tue, 2 Aug 2011 20:34:01 +0000 (16:34 -0400)] 
Fix reading of empty packets

Prior to this fix, an empty packet would be considered as an end of
file. (off-by-one in the size comparison)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd warning for missing /* TSDL header
Mathieu Desnoyers [Tue, 2 Aug 2011 19:03:53 +0000 (15:03 -0400)] 
Add warning for missing /* TSDL header

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd text-based metadata header: /* TSDL
Mathieu Desnoyers [Sun, 31 Jul 2011 17:52:42 +0000 (13:52 -0400)] 
Add text-based metadata header: /* TSDL

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate ctf path test
Mathieu Desnoyers [Fri, 29 Jul 2011 18:48:25 +0000 (14:48 -0400)] 
Update ctf path test

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate ctf-path test case
Mathieu Desnoyers [Fri, 29 Jul 2011 17:39:13 +0000 (13:39 -0400)] 
Update ctf-path test case

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate ctf-path todo test
Mathieu Desnoyers [Fri, 29 Jul 2011 17:14:51 +0000 (13:14 -0400)] 
Update ctf-path todo test

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd tofix test (path lookup not supported by grammar)
Mathieu Desnoyers [Fri, 29 Jul 2011 17:10:15 +0000 (13:10 -0400)] 
Add tofix test (path lookup not supported by grammar)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRemove incorrect comment from ctf-ir
Mathieu Desnoyers [Wed, 27 Jul 2011 19:24:45 +0000 (15:24 -0400)] 
Remove incorrect comment from ctf-ir

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd lttng-modules-2.0-pre1 test trace
Mathieu Desnoyers [Tue, 26 Jul 2011 14:13:33 +0000 (10:13 -0400)] 
Add lttng-modules-2.0-pre1 test trace

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRetry needs to recreate type def and aliases too
Mathieu Desnoyers [Tue, 26 Jul 2011 00:38:05 +0000 (20:38 -0400)] 
Retry needs to recreate type def and aliases too

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoSet old declaration to NULL when retry
Mathieu Desnoyers [Tue, 26 Jul 2011 00:28:59 +0000 (20:28 -0400)] 
Set old declaration to NULL when retry

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoKeep byte order field mask set upon retry
Mathieu Desnoyers [Tue, 26 Jul 2011 00:19:36 +0000 (20:19 -0400)] 
Keep byte order field mask set upon retry

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoClear field mask before retry.
Mathieu Desnoyers [Tue, 26 Jul 2011 00:13:13 +0000 (20:13 -0400)] 
Clear field mask before retry.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoHandle correctly cross-endianness for text-based metadata
Mathieu Desnoyers [Tue, 26 Jul 2011 00:09:06 +0000 (20:09 -0400)] 
Handle correctly cross-endianness for text-based metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoByte order is only set when packet-based metadata is found.
Mathieu Desnoyers [Mon, 25 Jul 2011 23:05:44 +0000 (19:05 -0400)] 
Byte order is only set when packet-based metadata is found.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agopacket-based-metadata test trace did not follow CTF specification
Mathieu Desnoyers [Mon, 25 Jul 2011 21:14:47 +0000 (17:14 -0400)] 
packet-based-metadata test trace did not follow CTF specification

Needed to account for the header size in the content size.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agobyte order from arch only needs to be set when not using packet metadata
Mathieu Desnoyers [Mon, 25 Jul 2011 21:14:02 +0000 (17:14 -0400)] 
byte order from arch only needs to be set when not using packet metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix read of text-based metadata traces
Mathieu Desnoyers [Mon, 25 Jul 2011 20:04:53 +0000 (16:04 -0400)] 
Fix read of text-based metadata traces

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoUpdate version to 0.2 v0.2
Mathieu Desnoyers [Fri, 22 Jul 2011 19:57:49 +0000 (15:57 -0400)] 
Update version to 0.2

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix gcc 4.6 warnings
Mathieu Desnoyers [Wed, 20 Jul 2011 22:09:39 +0000 (18:09 -0400)] 
Fix gcc 4.6 warnings

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix cross-endianness handling
Mathieu Desnoyers [Wed, 20 Jul 2011 20:11:37 +0000 (16:11 -0400)] 
Fix cross-endianness handling

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix memory initialization for parser test
Mathieu Desnoyers [Wed, 20 Jul 2011 19:56:54 +0000 (15:56 -0400)] 
Fix memory initialization for parser test

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRevert "Fix uninitialized memory in metadata parser"
Mathieu Desnoyers [Wed, 20 Jul 2011 19:56:17 +0000 (15:56 -0400)] 
Revert "Fix uninitialized memory in metadata parser"

This reverts commit a7d3eed364faffe9054776b3423572d792103316.

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