babeltrace.git
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
10 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
11 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>
This page took 0.039202 seconds and 4 git commands to generate.