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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
This page took 0.039729 seconds and 4 git commands to generate.