deliverable/babeltrace.git
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
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>
12 years agoAdd clocks to trace collection
Mathieu Desnoyers [Mon, 30 Jan 2012 16:43:59 +0000 (11:43 -0500)] 
Add clocks to trace collection

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoclock: show as time of day
Mathieu Desnoyers [Mon, 30 Jan 2012 15:38:19 +0000 (10:38 -0500)] 
clock: show as time of day

- todo: implement offset at trace collection level.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoImplement clock mapping within integer type
Mathieu Desnoyers [Sat, 28 Jan 2012 19:58:56 +0000 (14:58 -0500)] 
Implement clock mapping within integer type

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoImplement clock IR generation
Mathieu Desnoyers [Sat, 28 Jan 2012 19:18:49 +0000 (14:18 -0500)] 
Implement clock IR generation

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoAdd warning tests
Mathieu Desnoyers [Sat, 28 Jan 2012 03:45:24 +0000 (22:45 -0500)] 
Add warning tests

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoRelax unknown field handling: warn instead of error
Mathieu Desnoyers [Sat, 28 Jan 2012 03:44:49 +0000 (22:44 -0500)] 
Relax unknown field handling: warn instead of error

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoFix erroneous use of "-n" for additional fields, add "-f"
Mathieu Desnoyers [Fri, 27 Jan 2012 20:32:28 +0000 (15:32 -0500)] 
Fix erroneous use of "-n" for additional fields, add "-f"

The -n option is for enabling "field name" printing.
Add a new "-f" option for enabling optional fields.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 years agoOutput warnings and errors to stderr
Mathieu Desnoyers [Fri, 27 Jan 2012 20:05:02 +0000 (15:05 -0500)] 
Output warnings and errors to stderr

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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
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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoVersion 0.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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoUpdate version to 0.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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 years agoUpdate version to 0.5, add changelog
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>
13 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>
13 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>
This page took 0.04171 seconds and 5 git commands to generate.