]>
git.efficios.com Git - babeltrace.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Mathieu Desnoyers [Tue, 7 Feb 2012 04:36:37 +0000 (23:36 -0500)]
Fix typo
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
Mathieu Desnoyers [Mon, 6 Feb 2012 17:20:52 +0000 (12:20 -0500)]
Update help
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This page took 0.043502 seconds and 4 git commands to generate.