Jérémie Galarneau [Wed, 13 May 2015 18:09:23 +0000 (14:09 -0400)]
ir: compute array, sequence and structure alignment dynamically
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 13 May 2015 18:07:37 +0000 (14:07 -0400)]
ir: support optional parameters in bt_ctf_field_type_variant_get_field
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 13 May 2015 18:05:53 +0000 (14:05 -0400)]
ir: support optional parameters in bt_ctf_field_type_structure_get_field
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 13 May 2015 18:03:40 +0000 (14:03 -0400)]
Clean-up: clean multi-line function call
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 13 May 2015 16:04:35 +0000 (12:04 -0400)]
Tests: fix possible null pointer dereference
Reported by Coverity Scan
*** CID
1297896: Null pointer dereferences (NULL_RETURNS)
/tests/lib/test_ctf_writer.c: 865 in append_complex_event()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 13 May 2015 15:50:05 +0000 (11:50 -0400)]
Fix: Check validity of returned ctf_type_id
Reported by Coverity Scan as
** CID
1297897: Error handling issues (CHECKED_RETURN)
/formats/ctf/ir/visitor.c: 726 in print_path()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 12 May 2015 18:22:01 +0000 (14:22 -0400)]
Fix: Missing check that token linked-list is not NULL
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:38:50 +0000 (17:38 -0400)]
ir: validate sequence length fields and variant tags of stream classes
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:37:59 +0000 (17:37 -0400)]
ir: validate sequence length fields and variant tags of event classes
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:35:28 +0000 (17:35 -0400)]
ir: Implement a field type visitor to resolve dynamic scopes
Implement a visitor looking for sequences' length field and variants'
tag names and resolve them to their proper type field in the trace.
Validate that sequence lengths are unsigned integers and variant
tags are enumerations and that both respect CTF's lexical and dynamic
scoping rules.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:34:06 +0000 (17:34 -0400)]
ir: only perform trace freeze if not already frozen
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:33:25 +0000 (17:33 -0400)]
Clean-up: line exceeding 80 chars in trace.c
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:32:36 +0000 (17:32 -0400)]
Docs: add comment about bt_ctf_trace_add_stream_class validation
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:31:06 +0000 (17:31 -0400)]
ir: add bt_ctf_field_type_variant_set_tag()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:29:53 +0000 (17:29 -0400)]
ir: add tag field path to variant field type
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:27:09 +0000 (17:27 -0400)]
ir: add length_field_path to sequence field type
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:24:24 +0000 (17:24 -0400)]
ir: add bt_ctf_field_path internal API
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:22:27 +0000 (17:22 -0400)]
ir: add bt_ctf_field_type_variant_get_field_name_index()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 21:19:17 +0000 (17:19 -0400)]
ir: add bt_ctf_field_type_structure_get_field_name_index()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 11 May 2015 20:02:04 +0000 (16:02 -0400)]
Clean-up: Missing space in event-types-internal.h
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Glen Keane [Tue, 28 Apr 2015 18:34:07 +0000 (19:34 +0100)]
Docs: Updated available input formats on manpage
Signed-off-by: Glen Keane <glenkeane.94@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 8 Apr 2015 00:04:47 +0000 (20:04 -0400)]
ir: add tests for bt_ctf_event_copy()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 8 Apr 2015 00:03:55 +0000 (20:03 -0400)]
Fix: ir: match .h names for get/set_header()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 28 Apr 2015 19:35:07 +0000 (15:35 -0400)]
ir: add bt_ctf_event_set_payload_field()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 8 Apr 2015 00:03:31 +0000 (20:03 -0400)]
ir: add bt_ctf_event_get_payload_field()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 7 Apr 2015 23:24:17 +0000 (19:24 -0400)]
ir: add bt_ctf_event_copy() (event deep copy)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Sat, 21 Mar 2015 00:31:00 +0000 (20:31 -0400)]
ir: add tests for bt_ctf_field_copy()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Fri, 20 Mar 2015 18:04:21 +0000 (14:04 -0400)]
ir: make bt_ctf_field_copy() public
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 8 Apr 2015 00:02:50 +0000 (20:02 -0400)]
Fix: ir: copy struct/seq/array NULL fields
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 7 Apr 2015 22:10:15 +0000 (18:10 -0400)]
Fix: ir: incr ref of existing sequence/array field
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 2 Apr 2015 21:40:21 +0000 (17:40 -0400)]
Fix: ir: return current variant's field if possible
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Sat, 21 Mar 2015 00:28:53 +0000 (20:28 -0400)]
Fix: ir: seq copy: initialize internal array
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Sat, 21 Mar 2015 00:39:27 +0000 (20:39 -0400)]
Fix: ir: bt_ctf_field_copy(): copy payload_set
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Fri, 20 Mar 2015 17:53:04 +0000 (13:53 -0400)]
objects: Doxygen: note about frozen copy
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 28 Apr 2015 15:33:30 +0000 (11:33 -0400)]
Docs: weird phrasing in Babeltrace(1)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Apr 2015 15:47:02 +0000 (11:47 -0400)]
Replace g_string_insert_len() by g_string_append_len()
bt_ctf_field_string_append_len uses g_string_insert_len() with a
position of "-1" to append to the end of the string field's payload
which is what g_string_append_len() does by default.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 15 Apr 2015 21:20:34 +0000 (17:20 -0400)]
Add tests for bt_ctf_field_string_append_len()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 15 Apr 2015 21:20:25 +0000 (17:20 -0400)]
ir: add bt_ctf_field_string_append_len()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 15 Apr 2015 20:30:58 +0000 (16:30 -0400)]
Add tests for bt_ctf_field_string_append()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 15 Apr 2015 20:18:34 +0000 (16:18 -0400)]
ir: add bt_ctf_field_string_append()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Antoine Busque [Thu, 16 Apr 2015 22:11:30 +0000 (18:11 -0400)]
Fix: return event timestamp in _timestamp_at_pos
Signed-off-by: Antoine Busque <abusque@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Mon, 13 Apr 2015 22:14:59 +0000 (18:14 -0400)]
Fix: ir: make sure "stream_id" attr is always right
Make sure the "stream_id" attribute of all the event
classes of a given stream class is updated at the following
places:
* user sets the stream class ID manually: calling
bt_ctf_stream_class_set_id()
* stream class ID is automatically set: in
bt_ctf_trace_add_stream_class()
* an event class is added to an existing stream
class: in bt_ctf_stream_class_add_event_class()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 9 Apr 2015 19:46:49 +0000 (15:46 -0400)]
Tests: add environment field can be added after stream creation
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 9 Apr 2015 18:57:44 +0000 (14:57 -0400)]
Fix: Allow the addition of environment fields to a frozen trace
Commit
7f800dc7 introduced a behavior change which made it
impossible to add environment fields to a frozen trace (after the
creation of a stream).
This fix makes it possible to add new fields to a trace's
environment while making it impossible to modify existing fields
hereby restoring CTF Writer's v1.2 behavior.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 9 Apr 2015 18:35:29 +0000 (14:35 -0400)]
Cleanup: Remove unused trace environment types
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 9 Apr 2015 18:34:50 +0000 (14:34 -0400)]
Cleanup: introduce internal bt_ctf_trace_freeze()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 9 Apr 2015 15:45:10 +0000 (11:45 -0400)]
Move bt_ctf_attributes API to internal headers
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 20:20:02 +0000 (16:20 -0400)]
Remove stale file from include/Makefile.am
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 20:17:07 +0000 (16:17 -0400)]
Fix: possible NULL pointer dereference in CTF Writer/IR tests
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 20:08:55 +0000 (16:08 -0400)]
Fix: Ensure assertions have no side-effect
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 19:05:28 +0000 (15:05 -0400)]
Fix: Uninitialized return value in bt_ctf_event_class_get_id
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 02:35:23 +0000 (22:35 -0400)]
ir: add tests for bt_ctf_event's stream accessor
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 02:21:51 +0000 (22:21 -0400)]
ir: add tests for bt_ctf_stream_class trace accessor
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 02:12:06 +0000 (22:12 -0400)]
ir: add trace accessor to bt_ctf_stream_class
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 02:10:47 +0000 (22:10 -0400)]
ir: add stream accessor to bt_ctf_event
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 01:43:24 +0000 (21:43 -0400)]
Cleanup: remove unused bt_ctf_stream_set_trace function
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 01:43:00 +0000 (21:43 -0400)]
ir: add weak reference to parent trace to bt_ctf_stream_class
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 20 Mar 2015 01:41:29 +0000 (21:41 -0400)]
ir: add weak reference to parent stream to bt_ctf_event
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 19:09:28 +0000 (15:09 -0400)]
ir: add tests for duplicate event classes
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 19:07:32 +0000 (15:07 -0400)]
Fix: ir: make duplicate event classes check smarter
This patch makes bt_ctf_stream_class_add_event_class()
compare not only event classes pointers when checking
for duplicate, but also equal names and equal IDs.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 17:40:17 +0000 (13:40 -0400)]
ir: add tests for event class attributes
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 07:43:00 +0000 (03:43 -0400)]
ir: add attributes support to event classes
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 07:54:10 +0000 (03:54 -0400)]
ir: make trace environment use bt_object
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 05:07:32 +0000 (01:07 -0400)]
objects: Doxygen: bt_object_type: minor fix
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 04:33:07 +0000 (00:33 -0400)]
objects: optimize loops by using i instead of x
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 04:25:42 +0000 (00:25 -0400)]
objects: Doxygen: add cross-references
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 03:59:58 +0000 (23:59 -0400)]
objects: Doxygen: more details on bt_object_null
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 02:12:19 +0000 (22:12 -0400)]
objects: add bt_object_freeze() and more statuses
This patch adds the possibility to freeze an object.
By doing this, it introduces a new status code,
BT_OBJECT_STATUS_FROZEN, which is returned when trying
to alter a frozen object. Thus, all functions returning
either 0 or -1 are modified to return an
enum bt_object_status value instead.
The status code BT_OBJECT_STATUS_INVAL is also introduced
to signal invalid arguments, to differentiate this error
from other errors.
Finally, this patch adapts the objects tests and the
documentation to the changes.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Wed, 18 Mar 2015 16:38:20 +0000 (12:38 -0400)]
objects: make static functions also inline
This makes GCC mask the "unused function" warning.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 17 Mar 2015 21:20:23 +0000 (17:20 -0400)]
objects: Doxygen: \i -> \em
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 17 Mar 2015 21:19:56 +0000 (17:19 -0400)]
objects: introduce enum bt_object_status
Those new statuses make it possible for
bt_object_map_foreach() to report if its loop was
cancelled by the user function or if a general error
occured.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 18:12:04 +0000 (14:12 -0400)]
objects tests: bt_object_array_set()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 19 Mar 2015 18:10:41 +0000 (14:10 -0400)]
objects: add bt_object_array_set()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 17 Mar 2015 20:42:31 +0000 (16:42 -0400)]
objects: simplify destroy functions
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Tue, 17 Mar 2015 20:36:55 +0000 (16:36 -0400)]
objects: use GPtrArray instead of GArray
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 17 Mar 2015 03:31:40 +0000 (23:31 -0400)]
Fix: remove test_bt_objects from SCRIPT_LIST
This fixes the "dist" target build.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 17 Mar 2015 03:13:05 +0000 (23:13 -0400)]
Mark object type check functions as static
This fixes a build error in the static build where multiple
definitions of these functions would cause a link error.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Mon, 16 Mar 2015 23:21:59 +0000 (19:21 -0400)]
ir: add tests for bt_ctf_stream_class_get_event_class_by_id()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Mon, 16 Mar 2015 23:05:28 +0000 (19:05 -0400)]
ir: add bt_ctf_stream_class_get_event_class_by_id()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Mon, 16 Mar 2015 22:56:26 +0000 (18:56 -0400)]
ir: add tests for bt_ctf_trace_get_clock_by_name()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Mon, 16 Mar 2015 23:24:57 +0000 (19:24 -0400)]
ir: add bt_ctf_trace_get_clock_by_name()
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 12 Mar 2015 20:15:18 +0000 (16:15 -0400)]
Add basic object system tests
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Philippe Proulx [Thu, 12 Mar 2015 20:14:31 +0000 (16:14 -0400)]
Add basic object system
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 16 Mar 2015 20:47:28 +0000 (16:47 -0400)]
Change version from 1.3.0 to 1.3.0-pre
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 16 Mar 2015 20:46:29 +0000 (16:46 -0400)]
Fix: Don't increment automatic stream-id twice
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 16 Mar 2015 19:43:20 +0000 (15:43 -0400)]
Implement bt_ctf_trace stream class accessors
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 9 Mar 2015 19:05:35 +0000 (15:05 -0400)]
Tests: Add a bt_ctf_trace_get/set_byte_order() test
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 9 Mar 2015 18:39:15 +0000 (14:39 -0400)]
Implement bt_ctf_trace_get_byte_order()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 9 Mar 2015 18:28:08 +0000 (14:28 -0400)]
Implement bt_ctf_field_type_variant_set_tag_name()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 9 Mar 2015 16:35:30 +0000 (12:35 -0400)]
Fix: CTF 1.8 mandates that event "fields" must be a structure
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 6 Mar 2015 22:41:56 +0000 (17:41 -0500)]
Fix: check string payload for NULL before calling g_string_free()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 6 Mar 2015 20:08:06 +0000 (15:08 -0500)]
Implement bt_ctf_event_class_get/set_payload()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 5 Mar 2015 23:26:41 +0000 (18:26 -0500)]
Cleanup: move type_id initialization after byte order check
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 5 Mar 2015 23:24:57 +0000 (18:24 -0500)]
Add Variant and Sequence IR type validation checks
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 5 Mar 2015 22:32:10 +0000 (17:32 -0500)]
Remove alias getter from IR field interface
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 5 Mar 2015 22:30:43 +0000 (17:30 -0500)]
Mark internal IR field function pointers as const
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 5 Mar 2015 22:29:42 +0000 (17:29 -0500)]
Add bt_ctf_field_type_copy() which allows deep copy of IR types
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 4 Mar 2015 23:13:57 +0000 (18:13 -0500)]
Allow unset tags on variant field types
This allows the creation of a variant while not specifying the variant's
tag's name and type which is needed to support untagged variants.
This will allow the support of constructs such as:
variant name {
field_type sel1;
field_type sel2;
field_type sel3;
/* ... */
};
struct {
enum : integer_type { sel1, sel2, sel3, /* ... */ } tag_field;
/* ... */
variant name <tag_field> v;
}
The validation of variant fields thus becomes optional and will
be implemented as part of the freeze() of variants in a later commit.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 13 Mar 2015 19:56:13 +0000 (15:56 -0400)]
Update version to 1.3.0
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 13 Mar 2015 05:09:20 +0000 (01:09 -0400)]
Fix: Ensure stream endianness is set when initializing event class
This fixes a problem encountered by perf-to-ctf which would cause
an assert to hit whenever an event was instanciated before its
stream class was added to the trace.
This would cause the stream class to set its events' "native"
byte order with the "unknown endianness" value.
This modification ensures that an event's native endianness is
either set on addition to a stream class (when the stream is
already paired to a trace) or when the stream is added to a
trace.
Reported-by: Wang Nan <wangnan0@huawei.com>
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
This page took 0.043367 seconds and 4 git commands to generate.