babeltrace.git
6 years agoCleanup: object-internal.h static inlines
Mathieu Desnoyers [Fri, 25 Nov 2016 22:21:08 +0000 (17:21 -0500)] 
Cleanup: object-internal.h static inlines

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix: ctf_fs debug variable should be extern
Mathieu Desnoyers [Fri, 25 Nov 2016 21:26:18 +0000 (16:26 -0500)] 
Fix: ctf_fs debug variable should be extern

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocs: allow NULL packet, stream and event headers, contexts and payloads
Jérémie Galarneau [Fri, 25 Nov 2016 21:11:50 +0000 (16:11 -0500)] 
Docs: allow NULL packet, stream and event headers, contexts and payloads

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAllow NULL bt_ctf_packet_set_header and bt_ctf_packet_set_context
Jérémie Galarneau [Fri, 25 Nov 2016 20:12:02 +0000 (15:12 -0500)] 
Allow NULL bt_ctf_packet_set_header and bt_ctf_packet_set_context

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoHandle NULL stream/packet/event headers, contexts and payloads
Jérémie Galarneau [Fri, 25 Nov 2016 17:45:01 +0000 (12:45 -0500)] 
Handle NULL stream/packet/event headers, contexts and payloads

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotext output plugin: print time delta
Mathieu Desnoyers [Thu, 24 Nov 2016 23:08:15 +0000 (18:08 -0500)] 
text output plugin: print time delta

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotext output: wire up clock options, error checking
Mathieu Desnoyers [Thu, 24 Nov 2016 22:33:16 +0000 (17:33 -0500)] 
text output: wire up clock options, error checking

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRemove callsite text output code
Mathieu Desnoyers [Thu, 24 Nov 2016 22:19:05 +0000 (17:19 -0500)] 
Remove callsite text output code

Not supported in babeltrace 2 anymore.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoPrint other fields
Mathieu Desnoyers [Thu, 17 Nov 2016 13:20:22 +0000 (08:20 -0500)] 
Print other fields

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAllow NULL (unset) packet, stream and event headers, contexts
Jérémie Galarneau [Fri, 25 Nov 2016 17:24:42 +0000 (12:24 -0500)] 
Allow NULL (unset) packet, stream and event headers, contexts

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd time seek interface stub
Jérémie Galarneau [Thu, 24 Nov 2016 18:59:13 +0000 (13:59 -0500)] 
Add time seek interface stub

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoMove component iterator creation to base component class
Jérémie Galarneau [Thu, 24 Nov 2016 18:58:34 +0000 (13:58 -0500)] 
Move component iterator creation to base component class

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoevent.h: doc: put @cond/@endcond on single lines
Philippe Proulx [Wed, 23 Nov 2016 07:51:25 +0000 (02:51 -0500)] 
event.h: doc: put @cond/@endcond on single lines

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoref.h: doc: clarify descriptions
Philippe Proulx [Wed, 23 Nov 2016 07:44:25 +0000 (02:44 -0500)] 
ref.h: doc: clarify descriptions

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAPI doc: add notes about automatic resolving
Philippe Proulx [Wed, 23 Nov 2016 06:44:41 +0000 (01:44 -0500)] 
API doc: add notes about automatic resolving

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument field-path.h (API)
Philippe Proulx [Wed, 23 Nov 2016 05:53:17 +0000 (00:53 -0500)] 
Document field-path.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoevent.h: doc: add missing parameter
Philippe Proulx [Wed, 23 Nov 2016 05:50:42 +0000 (00:50 -0500)] 
event.h: doc: add missing parameter

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAPI doc: add missing @postrefcountsame conditions
Philippe Proulx [Wed, 23 Nov 2016 05:49:09 +0000 (00:49 -0500)] 
API doc: add missing @postrefcountsame conditions

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAPI doc: add #include line in the detailed description
Philippe Proulx [Wed, 23 Nov 2016 04:44:45 +0000 (23:44 -0500)] 
API doc: add #include line in the detailed description

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument event.h (API)
Philippe Proulx [Tue, 22 Nov 2016 23:08:04 +0000 (18:08 -0500)] 
Document event.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agostream.h: doc: add missing type doc
Philippe Proulx [Tue, 22 Nov 2016 23:07:53 +0000 (18:07 -0500)] 
stream.h: doc: add missing type doc

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoevent-class.h: doc: reorder functions
Philippe Proulx [Tue, 22 Nov 2016 23:07:34 +0000 (18:07 -0500)] 
event-class.h: doc: reorder functions

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrace.h: doc: fix HTML tag
Philippe Proulx [Tue, 22 Nov 2016 23:01:19 +0000 (18:01 -0500)] 
trace.h: doc: fix HTML tag

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: add the --path option
Philippe Proulx [Tue, 22 Nov 2016 20:57:56 +0000 (15:57 -0500)] 
babeltrace-cfg: add the --path option

--path=PATH is a shortcut for --params=path=PATH. The main use
case is to use tilde expansion when using babeltrace from a
shell:

    -P ~/my-traces/...

is way more convenient than:

    -p path=\"$HOME/my-traces/...\"

In Bash and Zsh, tilde expansion does not happen when the tilde
character is not the first of its word.

--plugin-path looses its short option (-P). I believe --path will
be used more than --plugin-path.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: always copy the parameters of component instances
Philippe Proulx [Tue, 22 Nov 2016 20:57:21 +0000 (15:57 -0500)] 
babeltrace-cfg: always copy the parameters of component instances

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrace.h: doc: various fixes
Philippe Proulx [Tue, 22 Nov 2016 20:37:04 +0000 (15:37 -0500)] 
trace.h: doc: various fixes

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agostream-class.h: doc: add freezing postcondition
Philippe Proulx [Tue, 22 Nov 2016 20:36:19 +0000 (15:36 -0500)] 
stream-class.h: doc: add freezing postcondition

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agostream-class.h: doc: add note about CTF IR writer-only API
Philippe Proulx [Tue, 22 Nov 2016 20:36:00 +0000 (15:36 -0500)] 
stream-class.h: doc: add note about CTF IR writer-only API

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument stream.h (API)
Philippe Proulx [Tue, 22 Nov 2016 20:35:41 +0000 (15:35 -0500)] 
Document stream.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument utils.h (API)
Philippe Proulx [Tue, 22 Nov 2016 19:48:39 +0000 (14:48 -0500)] 
Document utils.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument visitor.h (API)
Philippe Proulx [Tue, 22 Nov 2016 19:31:27 +0000 (14:31 -0500)] 
Document visitor.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRename visitor and element names
Philippe Proulx [Tue, 22 Nov 2016 19:07:59 +0000 (14:07 -0500)] 
Rename visitor and element names

bt_ctf_ir_visitor -> bt_ctf_visitor
bt_ctf_ir_element -> bt_ctf_object
bt_ctf_ir_object_type -> bt_ctf_object_type

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoUse components specified on the command line
Jérémie Galarneau [Wed, 23 Nov 2016 16:34:06 +0000 (11:34 -0500)] 
Use components specified on the command line

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: fix terminology (component instance vs. class)
Philippe Proulx [Tue, 22 Nov 2016 18:24:03 +0000 (13:24 -0500)] 
babeltrace-cfg: fix terminology (component instance vs. class)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: replace " with ` in messages
Philippe Proulx [Tue, 22 Nov 2016 18:16:56 +0000 (13:16 -0500)] 
babeltrace-cfg: replace " with ` in messages

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace.c: show beginning and end timestamps if available
Philippe Proulx [Tue, 22 Nov 2016 10:27:02 +0000 (05:27 -0500)] 
babeltrace.c: show beginning and end timestamps if available

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: add begin/end NS options
Philippe Proulx [Tue, 22 Nov 2016 10:24:36 +0000 (05:24 -0500)] 
babeltrace-cfg: add begin/end NS options

--base-begin-ns and --base-end-ns are similar to the --base-params
option, but they control the current base beginning and end timestamp.

--begin-ns and --end-ns are similar to the --params option, but they
assign a beginning/end timestamp to the latest source component
instance.

--reset-base-begin-ns and --reset-base-end-ns are similar to the
--reset-base-params option, but they reset the current base beginning
and end timestamps.

If both beginning and end timestamps are set for a given source
component instance, they are validated so that the end is greater
than or equal to the beginning.

This patch also reorders the options in the help message by long
option name.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: add --base-params and --reset-base-params options
Philippe Proulx [Tue, 22 Nov 2016 09:33:24 +0000 (04:33 -0500)] 
babeltrace-cfg: add --base-params and --reset-base-params options

The new --base-params option sets the current "base parameters" of
the command-line parsing context. Any --source or --sink which comes
after this option is initialized with those parameters. The --params
now has the effect of extending (patching) the current instance
parameters.

The base parameters can be changed at any place in the command line
with the --base-params option (can be repeated).

The new --reset-base-params option resets the base parameters to
an empty map where it is placed in the command line (can be
repeated).

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agovalues.c: completely initialize the bt_value_null_instance object
Philippe Proulx [Tue, 22 Nov 2016 09:32:16 +0000 (04:32 -0500)] 
values.c: completely initialize the bt_value_null_instance object

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoref-internal.h: do not increment ref count if release not set
Philippe Proulx [Tue, 22 Nov 2016 09:30:33 +0000 (04:30 -0500)] 
ref-internal.h: do not increment ref count if release not set

A singleton BT object can choose to opt-out of the reference count
mechanism. The way to do this is to set the release callback to
NULL. When this is the case, do not increment its reference count;
keep it at its original value.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotest_bt_values.c: test bt_value_map_extend()
Philippe Proulx [Fri, 26 Feb 2016 06:28:16 +0000 (01:28 -0500)] 
test_bt_values.c: test bt_value_map_extend()

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agovalues: add bt_value_map_extend()
Philippe Proulx [Fri, 26 Feb 2016 06:27:47 +0000 (01:27 -0500)] 
values: add bt_value_map_extend()

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace.c: fix printing issues
Philippe Proulx [Tue, 22 Nov 2016 08:34:07 +0000 (03:34 -0500)] 
babeltrace.c: fix printing issues

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobabeltrace-cfg: use --params to set parameters of latest instance
Philippe Proulx [Tue, 22 Nov 2016 08:31:44 +0000 (03:31 -0500)] 
babeltrace-cfg: use --params to set parameters of latest instance

Instead of:

    -i plugin.compcls:param=value,param2=value2

Do:

    -i plugin.compcls --params param=value,param2=value2

-p is now the short option of --params, and -P becomes the short
option of --plugin-path.

This stateful parsing will help when implementing default parameters
and adding other per-instance options.

This patch also makes the help message more readable.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument trace.h (API)
Philippe Proulx [Tue, 22 Nov 2016 03:59:16 +0000 (22:59 -0500)] 
Document trace.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument packet.h (API)
Philippe Proulx [Mon, 21 Nov 2016 23:04:44 +0000 (18:04 -0500)] 
Document packet.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument stream-class.h (API)
Philippe Proulx [Thu, 17 Nov 2016 06:32:27 +0000 (01:32 -0500)] 
Document stream-class.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument event-class.h (API)
Philippe Proulx [Thu, 17 Nov 2016 00:55:05 +0000 (19:55 -0500)] 
Document event-class.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument values.h (API)
Philippe Proulx [Wed, 16 Nov 2016 09:35:44 +0000 (04:35 -0500)] 
Document values.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument ref.h (API)
Philippe Proulx [Wed, 16 Nov 2016 06:05:38 +0000 (01:05 -0500)] 
Document ref.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agodoc/api: add README.adoc
Philippe Proulx [Wed, 16 Nov 2016 08:01:44 +0000 (03:01 -0500)] 
doc/api: add README.adoc

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd Doxygen support to build system to build the API doc
Philippe Proulx [Wed, 16 Nov 2016 05:48:28 +0000 (00:48 -0500)] 
Add Doxygen support to build system to build the API doc

This patch adds what is needed to generate the HTML documentation
of Babeltrace's C API using Doxygen to look for documentation source
in selected header files.

The new configure option --enable-api-doc enables the API doc
build using Doxygen (Doxygen must be found in this case). Whether or
not this API doc is built is indicated in the summary at the end of
the configure script execution.

Doxygen's input is doc/api/Doxyfile.in. This file has a few
substitutions like the project's version and the paths to input
files.

The API doc target, if enabled with the configure option, is part of
the `all` target.

With the `install` target, the files are installed in
$(DESTDIR)$(docdir)/api, e.g. /usr/share/doc/babeltrace/api.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAllow ctf-writer to use new time-keeping facilities
Jérémie Galarneau [Mon, 21 Nov 2016 23:07:03 +0000 (18:07 -0500)] 
Allow ctf-writer to use new time-keeping facilities

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd a shadow HT to query event classes by id
Jérémie Galarneau [Fri, 18 Nov 2016 23:08:11 +0000 (18:08 -0500)] 
Add a shadow HT to query event classes by id

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement proper notification comparison
Jérémie Galarneau [Wed, 16 Nov 2016 20:46:26 +0000 (15:46 -0500)] 
Implement proper notification comparison

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoPrint timestamps in text plug-in
Jérémie Galarneau [Fri, 18 Nov 2016 21:42:16 +0000 (16:42 -0500)] 
Print timestamps in text plug-in

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoReplace hackish use of bt_ctf_field_validate by is_set
Jérémie Galarneau [Thu, 17 Nov 2016 22:40:18 +0000 (17:40 -0500)] 
Replace hackish use of bt_ctf_field_validate by is_set

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix logging typo
Jérémie Galarneau [Thu, 17 Nov 2016 22:07:46 +0000 (17:07 -0500)] 
Fix logging typo

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement bt_ctf_field_is_set()
Jérémie Galarneau [Thu, 17 Nov 2016 22:07:33 +0000 (17:07 -0500)] 
Implement bt_ctf_field_is_set()

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement bt_ctf_clock_value interface
Jérémie Galarneau [Thu, 17 Nov 2016 21:47:47 +0000 (16:47 -0500)] 
Implement bt_ctf_clock_value interface

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoTrack clock states in notification iterator
Jérémie Galarneau [Thu, 17 Nov 2016 20:49:53 +0000 (15:49 -0500)] 
Track clock states in notification iterator

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFreeze original field type copied on validation
Philippe Proulx [Thu, 17 Nov 2016 02:00:54 +0000 (21:00 -0500)] 
Freeze original field type copied on validation

The following situation should fail:

    field_type = create a structure FT with a sequence
                 or variant FT field
    ec = bt_ctf_event_class_create("ec")
    bt_ctf_event_class_set_payload_type(ec, field_type)
    sc = bt_ctf_stream_class_create("sc")
    bt_ctf_stream_class_add_event_class(sc, ec)
    modify field_type in any way -> should fail

In this scenario, field_type gets copied when the
validation process is executed in bt_ctf_stream_class_create()
because it contains a sequence or variant FT.

The original field type, field_type, should also be frozen
when this validation succeeds so that it behaves like it was
not copied in the first place.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd trace name attribute
Jérémie Galarneau [Tue, 15 Nov 2016 21:47:18 +0000 (16:47 -0500)] 
Add trace name attribute

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd logging to validation and serialization failure paths
Jérémie Galarneau [Tue, 15 Nov 2016 20:30:29 +0000 (15:30 -0500)] 
Add logging to validation and serialization failure paths

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix leak in structure validation logging
Jérémie Galarneau [Tue, 15 Nov 2016 20:30:08 +0000 (15:30 -0500)] 
fix leak in structure validation logging

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoHandle empty strings in the notif-iter btr_string callbacks
Jérémie Galarneau [Tue, 15 Nov 2016 17:31:30 +0000 (12:31 -0500)] 
Handle empty strings in the notif-iter btr_string callbacks

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAllow stream_id change in event class attributes
Jérémie Galarneau [Tue, 15 Nov 2016 16:49:12 +0000 (11:49 -0500)] 
Allow stream_id change in event class attributes

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd field validation logging
Jérémie Galarneau [Tue, 15 Nov 2016 16:36:09 +0000 (11:36 -0500)] 
Add field validation logging

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoremove double bt_put
Jérémie Galarneau [Mon, 14 Nov 2016 21:51:05 +0000 (16:51 -0500)] 
remove double bt_put

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoText output plugin argument parsing
Mathieu Desnoyers [Mon, 31 Oct 2016 15:57:45 +0000 (11:57 -0400)] 
Text output plugin argument parsing

Implement plugin argument handling, and legacy behavior.

The sink plugin uses "name-default=show", "name-default=hide",
"field-default=show", and "field-default-hide" to specify the default
behavior for names and fields. It is used to implement the compability
layer with Babeltrace 1.x (all/none), but is a more flexible approach,
because it then allows both use-cases:

- default=show: can then set individual items to "false" (blacklist),
- default=hide: can then set individual items to "true" (whitelist).

In comparison, the old legacy options only allowed to specify a
whitelist.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement output text plugin (basic)
Mathieu Desnoyers [Tue, 25 Oct 2016 21:15:26 +0000 (17:15 -0400)] 
Implement output text plugin (basic)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix: documentation: refer to bt_put()
Mathieu Desnoyers [Fri, 28 Oct 2016 16:40:59 +0000 (12:40 -0400)] 
Fix: documentation: refer to bt_put()

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix initialize stream which may be used in error paths
Jérémie Galarneau [Mon, 14 Nov 2016 20:49:26 +0000 (15:49 -0500)] 
fix initialize stream which may be used in error paths

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoCoding standard clean-ups
Jérémie Galarneau [Mon, 14 Nov 2016 20:49:13 +0000 (15:49 -0500)] 
Coding standard clean-ups

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix leak of event class
Jérémie Galarneau [Mon, 14 Nov 2016 20:48:50 +0000 (15:48 -0500)] 
fix leak of event class

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix leak of variant field path
Jérémie Galarneau [Mon, 14 Nov 2016 20:48:23 +0000 (15:48 -0500)] 
fix leak of variant field path

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agostream leak in ctf_fs_iterator_next
Jérémie Galarneau [Fri, 11 Nov 2016 20:53:09 +0000 (15:53 -0500)] 
stream leak in ctf_fs_iterator_next

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRemove superflous set_current_packet_content_sizes
Jérémie Galarneau [Wed, 9 Nov 2016 22:18:13 +0000 (17:18 -0500)] 
Remove superflous set_current_packet_content_sizes

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd bt_notification_get_stream interface
Jérémie Galarneau [Wed, 9 Nov 2016 19:19:17 +0000 (14:19 -0500)] 
Add bt_notification_get_stream interface

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoMerge streams in ctf fs component
Jérémie Galarneau [Wed, 9 Nov 2016 19:18:42 +0000 (14:18 -0500)] 
Merge streams in ctf fs component

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoValidate notification type before casting
Jérémie Galarneau [Wed, 9 Nov 2016 19:17:30 +0000 (14:17 -0500)] 
Validate notification type before casting

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRemove unnecessary check of release callback on bt_ref_get
Jérémie Galarneau [Thu, 3 Nov 2016 20:33:48 +0000 (16:33 -0400)] 
Remove unnecessary check of release callback on bt_ref_get

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoLarge performance improvement by caching event class name and id
Jérémie Galarneau [Thu, 3 Nov 2016 20:33:13 +0000 (16:33 -0400)] 
Large performance improvement by caching event class name and id

$ time ./converter/babeltrace --plugin-path=plugins ~/lttng-traces/allo-20160829-153459/kernel/ > /dev/null

real    0m6.490s
user    0m6.413s
sys     0m0.067s

Caching of event class id and name

$ time ./converter/babeltrace --plugin-path=plugins ~/lttng-traces/allo-20160829-153459/kernel/ > /dev/null

real    0m1.027s
user    0m1.013s
sys     0m0.003s

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix: ensure that a stream class is not associated to a trace
Jérémie Galarneau [Thu, 3 Nov 2016 18:23:51 +0000 (14:23 -0400)] 
Fix: ensure that a stream class is not associated to a trace

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix: SIGBUS error on reading past a file's end in mmap'ed region
Jérémie Galarneau [Thu, 3 Nov 2016 17:25:14 +0000 (13:25 -0400)] 
Fix: SIGBUS error on reading past a file's end in mmap'ed region

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAllow user data in heap compare function
Jérémie Galarneau [Wed, 2 Nov 2016 20:42:15 +0000 (16:42 -0400)] 
Allow user data in heap compare function

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoTest bt_notification_heap
Jérémie Galarneau [Wed, 2 Nov 2016 20:11:20 +0000 (16:11 -0400)] 
Test bt_notification_heap

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement the notification heap interface
Jérémie Galarneau [Tue, 1 Nov 2016 20:34:16 +0000 (16:34 -0400)] 
Implement the notification heap interface

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd bt_notification_heap interface
Jérémie Galarneau [Tue, 1 Nov 2016 01:52:46 +0000 (21:52 -0400)] 
Add bt_notification_heap interface

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoValidate ref count opt-in in bt_ref_get
Jérémie Galarneau [Fri, 28 Oct 2016 21:27:09 +0000 (17:27 -0400)] 
Validate ref count opt-in in bt_ref_get

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoNull check of plug-in properties in debug output
Jérémie Galarneau [Fri, 28 Oct 2016 20:35:47 +0000 (16:35 -0400)] 
Null check of plug-in properties in debug output

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoMake --plugin-path optional
Jérémie Galarneau [Fri, 28 Oct 2016 20:35:24 +0000 (16:35 -0400)] 
Make --plugin-path optional

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd bt_ctf_field_variant_get_tag
Jérémie Galarneau [Fri, 28 Oct 2016 15:49:46 +0000 (11:49 -0400)] 
Add bt_ctf_field_variant_get_tag

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix space indentations
Jérémie Galarneau [Thu, 27 Oct 2016 23:09:11 +0000 (19:09 -0400)] 
Fix space indentations

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd missing line-feeds in logging
Jérémie Galarneau [Thu, 27 Oct 2016 23:08:34 +0000 (19:08 -0400)] 
Add missing line-feeds in logging

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd support for statically-built plug-ins
Jérémie Galarneau [Thu, 27 Oct 2016 23:08:02 +0000 (19:08 -0400)] 
Add support for statically-built plug-ins

./configure --disable-shared BUILT_IN_PLUGINS=1

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd bt_ctf_event_get_packet
Jérémie Galarneau [Thu, 27 Oct 2016 21:35:59 +0000 (17:35 -0400)] 
Add bt_ctf_event_get_packet

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoWrong file name in ctf/plugin.c header
Jérémie Galarneau [Wed, 26 Oct 2016 14:50:14 +0000 (10:50 -0400)] 
Wrong file name in ctf/plugin.c header

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd test_ir_visit and test_trace_listener to the test list
Jérémie Galarneau [Tue, 25 Oct 2016 21:19:40 +0000 (17:19 -0400)] 
Add test_ir_visit and test_trace_listener to the test list

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix verbose and debug mode options
Jérémie Galarneau [Tue, 25 Oct 2016 15:43:21 +0000 (11:43 -0400)] 
Fix verbose and debug mode options

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
This page took 0.039545 seconds and 4 git commands to generate.