babeltrace.git
6 years agoFix: params arg parsing: apply to current component params
Mathieu Desnoyers [Fri, 16 Dec 2016 06:35:57 +0000 (07:35 +0100)] 
Fix: params arg parsing: apply to current component params

We want to extend the current component params, not the base params. The
base params are already copied into the component's params when we get
the --source or --sink parameters.

Allow multiple --params (additive) to be passed to a component.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement implicit source component
Mathieu Desnoyers [Thu, 15 Dec 2016 12:26:54 +0000 (13:26 +0100)] 
Implement implicit source component

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRemove unused index version fields
Jérémie Galarneau [Wed, 14 Dec 2016 12:00:21 +0000 (07:00 -0500)] 
Remove unused index version fields

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoBuild CTF stream indexes from LTTng index files
Jérémie Galarneau [Mon, 12 Dec 2016 16:55:05 +0000 (11:55 -0500)] 
Build CTF stream indexes from LTTng index files

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd timerange, begin, end parameters
Mathieu Desnoyers [Mon, 12 Dec 2016 18:33:22 +0000 (19:33 +0100)] 
Add timerange, begin, end parameters

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrimmer: error checking, reporting, begin > end check
Mathieu Desnoyers [Mon, 12 Dec 2016 08:20:13 +0000 (09:20 +0100)] 
trimmer: error checking, reporting, begin > end check

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrimmer: infer end date from begin date
Mathieu Desnoyers [Mon, 12 Dec 2016 07:52:25 +0000 (08:52 +0100)] 
trimmer: infer end date from begin date

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoSupport standard timestamp formats for begin/end
Mathieu Desnoyers [Sun, 11 Dec 2016 12:53:26 +0000 (13:53 +0100)] 
Support standard timestamp formats for begin/end

Also use the new plugin parameters to convey this information. Don't
allocate a shortcut just yet.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoTrimmer: Filter-out packet that are not in the specified range
Jérémie Galarneau [Sun, 11 Dec 2016 14:32:59 +0000 (09:32 -0500)] 
Trimmer: Filter-out packet that are not in the specified range

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoRename bt_notification_packet_start to "begin"
Jérémie Galarneau [Sun, 11 Dec 2016 14:32:37 +0000 (09:32 -0500)] 
Rename bt_notification_packet_start to "begin"

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix: handle size 0 CTF fs streams
Jérémie Galarneau [Sun, 11 Dec 2016 10:52:30 +0000 (05:52 -0500)] 
Fix: handle size 0 CTF fs streams

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoWriter fix: don't skip first notification
Jérémie Galarneau [Sun, 11 Dec 2016 09:42:51 +0000 (04:42 -0500)] 
Writer fix: don't skip first notification

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoWriter: null contexts are not an error
Jérémie Galarneau [Sun, 11 Dec 2016 09:41:38 +0000 (04:41 -0500)] 
Writer: null contexts are not an error

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoclock working
Julien Desfossez [Wed, 23 Nov 2016 22:34:57 +0000 (17:34 -0500)] 
clock working

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix: missing free on error path
Julien Desfossez [Fri, 18 Nov 2016 16:44:17 +0000 (11:44 -0500)] 
fix: missing free on error path

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agouse GString instead of non-portable char[PATH/NAME_MAX]
Julien Desfossez [Fri, 18 Nov 2016 16:41:58 +0000 (11:41 -0500)] 
use GString instead of non-portable char[PATH/NAME_MAX]

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofix: add .a of the ctf writer plugin in Makefile
Julien Desfossez [Fri, 18 Nov 2016 16:12:34 +0000 (11:12 -0500)] 
fix: add .a of the ctf writer plugin in Makefile

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoCTF Writer sink
Julien Desfossez [Wed, 16 Nov 2016 19:33:42 +0000 (14:33 -0500)] 
CTF Writer sink

This plugin outputs CTF traces based on what it receives as input.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd a trimmer component to the graph if begin/end options are used
Jérémie Galarneau [Sun, 11 Dec 2016 09:01:04 +0000 (04:01 -0500)] 
Add a trimmer component to the graph if begin/end options are used

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdditional check added to bt_component_sink_validate
Jérémie Galarneau [Sun, 11 Dec 2016 09:00:51 +0000 (04:00 -0500)] 
Additional check added to bt_component_sink_validate

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement bt_notification_iterator_set_seek_time_cb
Jérémie Galarneau [Sun, 11 Dec 2016 09:00:22 +0000 (04:00 -0500)] 
Implement bt_notification_iterator_set_seek_time_cb

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoClean-up notification iterator creation function
Jérémie Galarneau [Sun, 11 Dec 2016 08:59:43 +0000 (03:59 -0500)] 
Clean-up notification iterator creation function

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd filter component creation and validation callback
Jérémie Galarneau [Sun, 11 Dec 2016 08:57:56 +0000 (03:57 -0500)] 
Add filter component creation and validation callback

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd branch prediction hints in ref count interface
Jérémie Galarneau [Sun, 11 Dec 2016 08:56:56 +0000 (03:56 -0500)] 
Add branch prediction hints in ref count interface

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoClean-up: Add missing forward declaration
Jérémie Galarneau [Sun, 11 Dec 2016 08:56:16 +0000 (03:56 -0500)] 
Clean-up: Add missing forward declaration

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd bt_notification_iterator_seek_time_cb to notification iterator
Jérémie Galarneau [Sun, 11 Dec 2016 08:55:44 +0000 (03:55 -0500)] 
Add bt_notification_iterator_seek_time_cb to notification iterator

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement the filter base class validation and creation
Jérémie Galarneau [Sun, 11 Dec 2016 08:55:00 +0000 (03:55 -0500)] 
Implement the filter base class validation and creation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement the trimmer plug-in
Jérémie Galarneau [Sun, 11 Dec 2016 08:54:26 +0000 (03:54 -0500)] 
Implement the trimmer plug-in

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd a "set" attribute to component begin/end config
Jérémie Galarneau [Sun, 11 Dec 2016 08:52:42 +0000 (03:52 -0500)] 
Add a "set" attribute to component begin/end config

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoComponent iterator points to first notification on creation
Jérémie Galarneau [Sun, 11 Dec 2016 08:49:34 +0000 (03:49 -0500)] 
Component iterator points to first notification on creation

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agogitignore TAGS and cscope
Julien Desfossez [Thu, 3 Nov 2016 14:40:44 +0000 (10:40 -0400)] 
gitignore TAGS and cscope

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoClean-up component-class internal header
Jérémie Galarneau [Thu, 8 Dec 2016 21:00:29 +0000 (16:00 -0500)] 
Clean-up component-class internal header

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoImplement the Component Graph API
Jérémie Galarneau [Thu, 8 Dec 2016 19:10:22 +0000 (14:10 -0500)] 
Implement the Component Graph API

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofield-types.h: doc: use FT/field aliases
Philippe Proulx [Sun, 27 Nov 2016 22:49:19 +0000 (17:49 -0500)] 
field-types.h: doc: use FT/field aliases

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agodoc/api: Doxyfile: add FT/field aliases
Philippe Proulx [Sun, 27 Nov 2016 22:48:58 +0000 (17:48 -0500)] 
doc/api: Doxyfile: add FT/field aliases

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrace.h: doc: add missing end of group
Philippe Proulx [Sat, 26 Nov 2016 02:27:23 +0000 (21:27 -0500)] 
trace.h: doc: add missing end of group

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agopacket.h: doc: add missing end of group
Philippe Proulx [Sat, 26 Nov 2016 02:27:06 +0000 (21:27 -0500)] 
packet.h: doc: add missing end of group

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoDocument field-types.h (API)
Philippe Proulx [Sat, 26 Nov 2016 02:25:48 +0000 (21:25 -0500)] 
Document field-types.h (API)

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agovalues.h: doc: fix doc
Philippe Proulx [Sat, 26 Nov 2016 02:25:08 +0000 (21:25 -0500)] 
values.h: doc: fix doc

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agotrace.h: doc: ctfirfieldtype -> ctfirfieldtypes
Philippe Proulx [Sat, 26 Nov 2016 02:24:36 +0000 (21:24 -0500)] 
trace.h: doc: ctfirfieldtype -> ctfirfieldtypes

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agodoc/api/dox: update pages
Philippe Proulx [Sat, 26 Nov 2016 02:24:16 +0000 (21:24 -0500)] 
doc/api/dox: update pages

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoapi/doc: update Doxyfile.in and add custom layout file
Philippe Proulx [Sat, 26 Nov 2016 02:23:49 +0000 (21:23 -0500)] 
api/doc: update Doxyfile.in and add custom layout file

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agobt_ctf_field_type_get_byte_order(): support enum FT
Philippe Proulx [Thu, 24 Nov 2016 21:44:39 +0000 (16:44 -0500)] 
bt_ctf_field_type_get_byte_order(): support enum FT

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agofield-types.c: check that we don't add self FT to struct/var FT
Philippe Proulx [Thu, 24 Nov 2016 21:44:01 +0000 (16:44 -0500)] 
field-types.c: check that we don't add self FT to struct/var FT

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAPI doc: CTF IR writer -> CTF writer
Philippe Proulx [Wed, 23 Nov 2016 20:53:07 +0000 (15:53 -0500)] 
API doc: CTF IR writer -> CTF writer

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoAdd trimmer plug-in skeleton
Jérémie Galarneau [Fri, 2 Dec 2016 20:36:52 +0000 (15:36 -0500)] 
Add trimmer plug-in skeleton

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 years agoFix compiler warnings
Mathieu Desnoyers [Fri, 25 Nov 2016 22:33:39 +0000 (17:33 -0500)] 
Fix compiler warnings

Left one FIXME about unused function.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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>
This page took 0.040088 seconds and 4 git commands to generate.