babeltrace.git
9 years agoir: add trace accessor to bt_ctf_stream_class
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>
9 years agoir: add stream accessor to bt_ctf_event
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>
9 years agoCleanup: remove unused bt_ctf_stream_set_trace function
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>
9 years agoir: add weak reference to parent trace to bt_ctf_stream_class
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>
9 years agoir: add weak reference to parent stream to bt_ctf_event
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>
9 years agoir: add tests for duplicate event classes
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>
9 years agoFix: ir: make duplicate event classes check smarter
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>
9 years agoir: add tests for event class attributes
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>
9 years agoir: add attributes support to event classes
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>
9 years agoir: make trace environment use bt_object
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>
9 years agoobjects: Doxygen: bt_object_type: minor fix
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>
9 years agoobjects: optimize loops by using i instead of x
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>
9 years agoobjects: Doxygen: add cross-references
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>
9 years agoobjects: Doxygen: more details on bt_object_null
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>
9 years agoobjects: add bt_object_freeze() and more statuses
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>
9 years agoobjects: make static functions also inline
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>
9 years agoobjects: Doxygen: \i -> \em
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>
9 years agoobjects: introduce enum bt_object_status
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>
9 years agoobjects tests: bt_object_array_set()
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>
9 years agoobjects: add bt_object_array_set()
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>
9 years agoobjects: simplify destroy functions
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>
9 years agoobjects: use GPtrArray instead of GArray
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>
9 years agoFix: remove test_bt_objects from SCRIPT_LIST
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>
9 years agoMark object type check functions as static
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>
9 years agoir: add tests for bt_ctf_stream_class_get_event_class_by_id()
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>
9 years agoir: add bt_ctf_stream_class_get_event_class_by_id()
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>
9 years agoir: add tests for bt_ctf_trace_get_clock_by_name()
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>
9 years agoir: add bt_ctf_trace_get_clock_by_name()
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>
9 years agoAdd basic object system tests
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>
9 years agoAdd basic object system
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>
9 years agoChange version from 1.3.0 to 1.3.0-pre
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>
9 years agoFix: Don't increment automatic stream-id twice
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>
9 years agoImplement bt_ctf_trace stream class accessors
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>
9 years agoTests: Add a bt_ctf_trace_get/set_byte_order() test
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>
9 years agoImplement bt_ctf_trace_get_byte_order()
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>
9 years agoImplement bt_ctf_field_type_variant_set_tag_name()
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>
9 years agoFix: CTF 1.8 mandates that event "fields" must be a structure
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>
9 years agoFix: check string payload for NULL before calling g_string_free()
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>
9 years agoImplement bt_ctf_event_class_get/set_payload()
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>
9 years agoCleanup: move type_id initialization after byte order check
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>
9 years agoAdd Variant and Sequence IR type validation checks
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>
9 years agoRemove alias getter from IR field interface
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>
9 years agoMark internal IR field function pointers as const
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>
9 years agoAdd bt_ctf_field_type_copy() which allows deep copy of IR types
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>
9 years agoAllow unset tags on variant field types
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>
9 years agoUpdate version to 1.3.0
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>
9 years agoFix: Ensure stream endianness is set when initializing event class
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>
9 years agoFix: Check stream fd value before closing
Jérémie Galarneau [Fri, 13 Mar 2015 05:07:43 +0000 (01:07 -0400)] 
Fix: Check stream fd value before closing

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix: missing allocation error check
Jérémie Galarneau [Fri, 13 Mar 2015 05:07:11 +0000 (01:07 -0400)] 
Fix: missing allocation error check

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFreeze event classes as they are added to a stream class
Jérémie Galarneau [Fri, 13 Mar 2015 05:06:03 +0000 (01:06 -0400)] 
Freeze event classes as they are added to a stream class

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoTests: ensure that an event may be instanciated before its stream
Jérémie Galarneau [Fri, 13 Mar 2015 01:21:42 +0000 (21:21 -0400)] 
Tests: ensure that an event may be instanciated before its stream

This test covers a regression which breaks the perf-to-ctf tool.
See https://lkml.org/lkml/2015/3/12/256

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>
9 years agoDocs: event class must have a stream class before events may be created
Jérémie Galarneau [Fri, 13 Mar 2015 01:20:53 +0000 (21:20 -0400)] 
Docs: event class must have a stream class before events may be created

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix: Missing stdint.h in trace.h
Jérémie Galarneau [Fri, 13 Mar 2015 00:04:59 +0000 (20:04 -0400)] 
Fix: Missing stdint.h in trace.h

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix: Missing stdint.h in stream.h
Jérémie Galarneau [Fri, 13 Mar 2015 00:04:13 +0000 (20:04 -0400)] 
Fix: Missing stdint.h in stream.h

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix: Missing stdint.h in stream-class.h
Jérémie Galarneau [Tue, 10 Mar 2015 14:40:17 +0000 (10:40 -0400)] 
Fix: Missing stdint.h in stream-class.h

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix out-of-tree build for Python bindings + doc
Philippe Proulx [Fri, 20 Feb 2015 00:31:53 +0000 (19:31 -0500)] 
Fix out-of-tree build for Python bindings + doc

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoTests: Add tests for trace environment field accessors
Jérémie Galarneau [Mon, 2 Mar 2015 04:02:33 +0000 (23:02 -0500)] 
Tests: Add tests for trace environment field accessors

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoAdd trace environment field getters
Jérémie Galarneau [Mon, 2 Mar 2015 02:03:10 +0000 (21:03 -0500)] 
Add trace environment field getters

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoSupport the addition of integer trace environment fields
Jérémie Galarneau [Mon, 2 Mar 2015 01:47:33 +0000 (20:47 -0500)] 
Support the addition of integer trace environment fields

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoCTF-IR: Support unnamed streams
Jérémie Galarneau [Fri, 27 Feb 2015 18:00:07 +0000 (13:00 -0500)] 
CTF-IR: Support unnamed streams

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix: out-of-tree dist fails to find test traces
Jérémie Galarneau [Fri, 20 Feb 2015 20:29:56 +0000 (15:29 -0500)] 
Fix: out-of-tree dist fails to find test traces

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoFix running tests out of tree
Simon Marchi [Sat, 14 Feb 2015 18:49:38 +0000 (13:49 -0500)] 
Fix running tests out of tree

When building out of tree, make check fails because the "tests" file is
not found.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: add Sphinx doc project
Philippe Proulx [Sat, 6 Dec 2014 01:53:34 +0000 (20:53 -0500)] 
Python: add Sphinx doc project

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: writer.IntegerBase: remove redundant prefixes
Philippe Proulx [Wed, 10 Dec 2014 22:39:01 +0000 (17:39 -0500)] 
Python: writer.IntegerBase: remove redundant prefixes

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: add reader.IntegerFieldDeclaration.size
Philippe Proulx [Wed, 10 Dec 2014 21:32:01 +0000 (16:32 -0500)] 
Python: add reader.IntegerFieldDeclaration.size

The CTF specifications use "size" rather than "length"
for an integer type, and on the Python side,
babeltrace.writer.IntegerFieldDeclaration.size is used.

babeltrace.reader.IntegerFieldDeclaration.length is
kept here for backward compatibility reasons.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.Writer
Philippe Proulx [Wed, 10 Dec 2014 18:42:21 +0000 (13:42 -0500)] 
Python: document writer.Writer

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.Stream
Philippe Proulx [Wed, 10 Dec 2014 18:34:51 +0000 (13:34 -0500)] 
Python: document writer.Stream

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.StreamClass
Philippe Proulx [Tue, 16 Dec 2014 23:12:52 +0000 (18:12 -0500)] 
Python: document writer.StreamClass

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.Event
Philippe Proulx [Wed, 10 Dec 2014 18:25:07 +0000 (13:25 -0500)] 
Python: document writer.Event

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.EventClass
Philippe Proulx [Tue, 16 Dec 2014 23:11:06 +0000 (18:11 -0500)] 
Python: document writer.EventClass

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.StringField
Philippe Proulx [Wed, 10 Dec 2014 18:16:10 +0000 (13:16 -0500)] 
Python: document writer.StringField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.SequenceField
Philippe Proulx [Wed, 10 Dec 2014 18:14:41 +0000 (13:14 -0500)] 
Python: document writer.SequenceField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.ArrayField
Philippe Proulx [Wed, 10 Dec 2014 17:16:14 +0000 (12:16 -0500)] 
Python: document writer.ArrayField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.VariantField
Philippe Proulx [Wed, 10 Dec 2014 17:18:14 +0000 (12:18 -0500)] 
Python: document writer.VariantField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.StructureField
Philippe Proulx [Wed, 10 Dec 2014 17:17:49 +0000 (12:17 -0500)] 
Python: document writer.StructureField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.FloatingPointField
Philippe Proulx [Wed, 10 Dec 2014 17:15:01 +0000 (12:15 -0500)] 
Python: document writer.FloatingPointField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.EnumerationField
Philippe Proulx [Wed, 10 Dec 2014 09:31:43 +0000 (04:31 -0500)] 
Python: document writer.EnumerationField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.IntegerField
Philippe Proulx [Wed, 10 Dec 2014 09:28:16 +0000 (04:28 -0500)] 
Python: document writer.IntegerField

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.Field
Philippe Proulx [Wed, 10 Dec 2014 09:24:45 +0000 (04:24 -0500)] 
Python: document writer.Field

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.StringFieldDeclaration
Philippe Proulx [Wed, 10 Dec 2014 09:17:40 +0000 (04:17 -0500)] 
Python: document writer.StringFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.SequenceFieldDeclaration
Philippe Proulx [Tue, 16 Dec 2014 23:08:46 +0000 (18:08 -0500)] 
Python: document writer.SequenceFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.ArrayFieldDeclaration
Philippe Proulx [Wed, 10 Dec 2014 03:09:47 +0000 (22:09 -0500)] 
Python: document writer.ArrayFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.VariantFieldDeclaration
Philippe Proulx [Wed, 10 Dec 2014 02:58:26 +0000 (21:58 -0500)] 
Python: document writer.VariantFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.StructureFieldDeclaration
Philippe Proulx [Wed, 10 Dec 2014 01:27:27 +0000 (20:27 -0500)] 
Python: document writer.StructureFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.FloatingPointFieldDeclaration
Philippe Proulx [Wed, 10 Dec 2014 01:20:43 +0000 (20:20 -0500)] 
Python: document writer.FloatingPointFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPytnon: document writer.EnumerationFieldDeclaration
Philippe Proulx [Tue, 16 Dec 2014 23:06:43 +0000 (18:06 -0500)] 
Pytnon: document writer.EnumerationFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.IntegerFieldDeclaration
Philippe Proulx [Tue, 16 Dec 2014 23:05:40 +0000 (18:05 -0500)] 
Python: document writer.IntegerFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: add top-level class writer.IntegerBase
Philippe Proulx [Wed, 10 Dec 2014 00:54:50 +0000 (19:54 -0500)] 
Python: add top-level class writer.IntegerBase

Documenting, and using in general, top-level classes
is easier than nested classes in Python.
babeltrace.writer.FieldDeclaration.IntegerBase still
exists for backward compatibility.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.FieldDeclaration
Philippe Proulx [Tue, 16 Dec 2014 22:48:20 +0000 (17:48 -0500)] 
Python: document writer.FieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.Clock
Philippe Proulx [Wed, 10 Dec 2014 00:44:59 +0000 (19:44 -0500)] 
Python: document writer.Clock

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document writer.EnumerationMapping
Philippe Proulx [Wed, 10 Dec 2014 00:34:41 +0000 (19:34 -0500)] 
Python: document writer.EnumerationMapping

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: examples: import explicit BT modules
Philippe Proulx [Tue, 9 Dec 2014 23:51:25 +0000 (18:51 -0500)] 
Python: examples: import explicit BT modules

The best practice in Python is generally to import
explicit modules rather than importing all its exposed
members.

This also makes the examples hide the fact that
reader/writer members are exposed directly by the package,
whereas this is only a backward compatibility layer now.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: split API in reader/writer modules
Philippe Proulx [Tue, 9 Dec 2014 23:01:07 +0000 (18:01 -0500)] 
Python: split API in reader/writer modules

babeltrace package's modules are now:

  common:
    class CTFStringEncoding
    class ByteOrder
    class CTFTypeId
    class CTFScope
  reader: everything related to reading
  writer: CTF writer API

Backward compatibility is ensured by importing the
appropriate modules into the package itself.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document IntegerFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:33:03 +0000 (16:33 -0500)] 
Python: document IntegerFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document VariantFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:49:30 +0000 (16:49 -0500)] 
Python: document VariantFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document StringFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:49:12 +0000 (16:49 -0500)] 
Python: document StringFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document StructureFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:48:56 +0000 (16:48 -0500)] 
Python: document StructureFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document FloatFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:48:30 +0000 (16:48 -0500)] 
Python: document FloatFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document SequenceFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:39:13 +0000 (16:39 -0500)] 
Python: document SequenceFieldDeclaration

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
9 years agoPython: document ArrayFieldDeclaration
Philippe Proulx [Sat, 6 Dec 2014 21:37:57 +0000 (16:37 -0500)] 
Python: document ArrayFieldDeclaration

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