Jérémie Galarneau [Wed, 10 Dec 2014 22:10:11 +0000 (17:10 -0500)]
Fix: Missing description NULL check in bt_ctf_clock when serializing
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 10 Dec 2014 00:03:28 +0000 (19:03 -0500)]
Fix: Ensure a packet context is a structure
bt_ctf_stream_class_set_packet_context_type was checking the current
stream packet context's type instead of the one being passed.
Added a test to validate that the check is done appropriately.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 23 Nov 2014 18:13:31 +0000 (13:13 -0500)]
Add comment indicating the type of ctf_traces' elements
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Julien Desfossez [Tue, 18 Nov 2014 17:52:32 +0000 (12:52 -0500)]
Fix: sanity check in iterator creation
This function is part of the public API; we need more
sanity checks before using the structures provided by the caller.
Refs: #827
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Julien Desfossez [Tue, 18 Nov 2014 17:52:31 +0000 (12:52 -0500)]
Fix: iterate manually over each live trace to add to catch errors
Instead of using g_hash_table_foreach, we now control the iteration over
the hash table, so we can handle properly the errors.
For now, if there is an error for any trace, we consider this a fatal
issue and exit.
We could allow the process to continue and only skip the problematic
traces, but we will wait until this becomes a real use-case.
Fixes: #827
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Christian Babeux [Fri, 7 Nov 2014 15:20:28 +0000 (10:20 -0500)]
Remove duplicate include of unistd in test_ctf_writer
Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Julien Desfossez [Fri, 31 Oct 2014 19:18:00 +0000 (15:18 -0400)]
Fix: make sure we can exit the get_new_metadata loop
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Jérémie Galarneau [Tue, 28 Oct 2014 16:33:15 +0000 (12:33 -0400)]
Fix: respect signed integers' length when printing in hex base
Make sure we don't print a full 64-bit sign-extended value
when printing a negative integer in hexadecimal base.
Fixes #848
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 20:03:31 +0000 (16:03 -0400)]
Ensure types used for index and count in CTF IR API match
This makes it easier for users to write code not producing
warnings.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 20:00:34 +0000 (16:00 -0400)]
Cleanup: Missing space after cast operator
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 19:01:01 +0000 (15:01 -0400)]
Tests: add tests for the new trace and trace clock accessors
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 18:36:45 +0000 (14:36 -0400)]
Add trace accessor to CTF Writer
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 17:39:46 +0000 (13:39 -0400)]
Add clock accessor to CTF IR Trace
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 17:41:51 +0000 (13:41 -0400)]
Reuse existing g_string instance when setting a clock name
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 16:11:58 +0000 (12:11 -0400)]
Don't automatically generate a clock UUID in _bt_ctf_clock_create
While the public clock constructor still generates a UUID,
it should not be done when creating a clock during TSDL metadata
parsing.
This makes it possible to use bt_ctf_clock_get_uuid to check
if a UUID has already been set during clock definition parsing.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 20 Oct 2014 13:36:44 +0000 (09:36 -0400)]
Add missing trace-internal.h header file
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 19 Oct 2014 18:45:16 +0000 (14:45 -0400)]
Add an alias name attribute and accessor to CTF IR field type
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 19 Oct 2014 17:39:58 +0000 (13:39 -0400)]
Add internal nameless clock creation API
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 16 Oct 2014 21:45:35 +0000 (17:45 -0400)]
Add Trace CTF IR type
Refactored the Writer interface to expose a Trace object which
will be exposed by the CTF reader.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 17 Oct 2014 12:25:26 +0000 (08:25 -0400)]
Python bindings clean-up: missing file headers style fixes
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 16 Oct 2014 21:46:53 +0000 (17:46 -0400)]
Docs fix: Change bt_ctf_writer_create_stream return description
writer -> stream
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 16 Oct 2014 21:31:22 +0000 (17:31 -0400)]
Python bindings clean-up: file headers style fix
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 16 Oct 2014 21:21:40 +0000 (17:21 -0400)]
Change CTF IR header descriptions from CTF Writer to CTF IR
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 16 Oct 2014 20:36:10 +0000 (16:36 -0400)]
Detect Python packages directory on configure
The Python interpreter on Debian is configurated to use
...lib/python.../dist-packages instead of
.../lib/python.../site-packages to look for extra modules.
python_modules.m4 performs a runtime python check of the
sys.path variable to check wether the selected interpreter is
configurated to use site-packages vs dist-packages.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 13 Oct 2014 13:17:36 +0000 (09:17 -0400)]
Python bindings: fail configure if python version < 3.0
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 12 Oct 2014 10:16:31 +0000 (06:16 -0400)]
Add PEP8 style guide requirement to the CodingStyle
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 12 Oct 2014 10:15:55 +0000 (06:15 -0400)]
Python bindings: Make bindings PEP8 compliant
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 12 Oct 2014 09:16:14 +0000 (05:16 -0400)]
Python bindings: Make examples PEP8 compliant
Jérémie Galarneau [Sat, 11 Oct 2014 19:39:11 +0000 (15:39 -0400)]
Python bindings: clarify invalid argument type exception
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sat, 11 Oct 2014 19:37:33 +0000 (15:37 -0400)]
Python bindings docs: clarify add_event_class comments
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sat, 11 Oct 2014 03:37:23 +0000 (23:37 -0400)]
Python bindings: Add packet context accessors
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sat, 11 Oct 2014 01:49:38 +0000 (21:49 -0400)]
Documentation fix: add expected types to packet context accessors
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sat, 11 Oct 2014 01:45:49 +0000 (21:45 -0400)]
Python bindings: Add UUID accessors to the Clock class
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sat, 11 Oct 2014 00:36:14 +0000 (20:36 -0400)]
Clean-up: remove extra whitespace in ctf-ir/clock.h
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 19:08:19 +0000 (15:08 -0400)]
Python bindings: cleanup whitespace
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 19:04:26 +0000 (15:04 -0400)]
Python bindings: add "datetime" property to the Event class
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 03:48:01 +0000 (23:48 -0400)]
Tests: check for < 0 rather than -1 specifically
Change test conditions for functions whose documentation
states that "a negative value" is returned on error.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 03:47:41 +0000 (23:47 -0400)]
Tests: cleanup extra whitespace
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 02:04:26 +0000 (22:04 -0400)]
Tests: Add tests for new clock UUID accessors
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 01:20:25 +0000 (21:20 -0400)]
Add UUID accessors to CTF-IR clock
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 6 Oct 2014 01:17:01 +0000 (21:17 -0400)]
Fix: scan-build warnings in CTF Writer/IR tests
scan-build reported that strcmp could be called on a NULL string
when some tests fail.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Mathieu Desnoyers [Thu, 2 Oct 2014 19:23:46 +0000 (15:23 -0400)]
Fix: offset_s and CTF clocks with frequency != 1GHz
Take into account offset_s from the clock description when calculating
the tc_offset in ctf_get_real_timestamp().
Do not assume that the single_clock->offset field is at a frequency of
1GHz. Take into account the its clock frequency.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Tue, 23 Sep 2014 16:24:07 +0000 (12:24 -0400)]
Fix: incorrect compiler warning
The compiler does not see that *target will necessarily set the values.
Initialize the variables to 0 to silence uninitialized variable warning.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Jérémie Galarneau [Mon, 22 Sep 2014 16:59:11 +0000 (12:59 -0400)]
Fix: Don't assume that PROT_WRITE grants read permissions
The prot flag passed to mmap() is set to PROT_WRITE when the O_RDWR
access flags is used. This assumes that PROT_WRITE grants read
permissions on the mmap'ed region. While this is true on x86, this
causes a segmentation fault on SPARC and, presumably, other
architectures implementing strict access permissions.
CTF Writer needs read permissions since the unaligned integer writes
may use load instructions as the value is read back to perform the
required shifting/masking is performed in the _bt_bitfield_write_*
macros.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Mathieu Desnoyers [Wed, 17 Sep 2014 18:56:04 +0000 (14:56 -0400)]
Fix: align objstack on 8 bytes
Architectures such as sparc32 have 32-bit pointers, but require
alignment on 8 bytes multiples for 64-bit integers.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Jérémie Galarneau [Mon, 18 Aug 2014 22:33:33 +0000 (18:33 -0400)]
Fix Python: Add a comment warning about an API limitation
Add a comment warning about a possible misuse of the events()
API. The objects returned by this function shall not be copied
as they become invalid as soon as the next event is accessed.
It is also invalid to access an event after its generator has
gone out of scope.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 7 Aug 2014 19:58:21 +0000 (15:58 -0400)]
Replace usages of limits.h with the compatibility header
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 7 Aug 2014 16:28:46 +0000 (12:28 -0400)]
Tests: Return from main instead of calling exit()
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 7 Aug 2014 16:25:35 +0000 (12:25 -0400)]
Use BABELTRACE_HOST_NAME_MAX in test_ctf_writer.c
This fixes the build on FreeBSD.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 7 Aug 2014 16:24:45 +0000 (12:24 -0400)]
Add limits compatibility header
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Mathieu Desnoyers [Wed, 16 Jul 2014 14:58:48 +0000 (10:58 -0400)]
Fix: don't perform unaligned integer read/writes
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Jérémie Galarneau [Tue, 29 Jul 2014 20:51:51 +0000 (16:51 -0400)]
Add stream packet header accessors
Stream packet contexts may now be modified to contain custom
fields. The events_discarded field is now handled like a generic
packet context field.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 29 Jul 2014 20:57:21 +0000 (16:57 -0400)]
Reuse previously allocated string when setting value
bt_ctf_field_string_set_value() frees and reallocates a new
g_string object if the value is changed. This change ensures
that the previous string is used if possible.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 29 Jul 2014 20:55:36 +0000 (16:55 -0400)]
Fix: bt_ctf_field_type_structure_add_field argument validation
bt_ctf_field_type_structure_add_field is not setting the return
value to a negative value if the parameter validation fails. The
function would abort while appearing to have succeeded.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Julien Desfossez [Mon, 14 Jul 2014 21:11:31 +0000 (17:11 -0400)]
Fix: mmap trace read the stream_id from the first packet
We were hardcoding the stream_id as 0 for mmap traces, causing a
problem for live traces with multiple channels.
A fix enters in lttng-tools v2.4.2 to send the CTF stream id in the beacon
packets, but until then, we cannot support traces with multiple CTF
streams (LTTng channels).
Fixes: #811
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Julien Desfossez [Mon, 14 Jul 2014 21:11:30 +0000 (17:11 -0400)]
Fix: check the lttng-relayd protocol version
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Julien Desfossez [Mon, 14 Jul 2014 21:11:29 +0000 (17:11 -0400)]
Fix: don't update the trace collection if no new streams were received
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Jérémie Galarneau [Wed, 2 Jul 2014 17:30:01 +0000 (13:30 -0400)]
Remove logically dead code
Fixes Coverity warning
** CID
1224341: Logically dead code (DEADCODE)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 27 Jun 2014 20:03:24 +0000 (16:03 -0400)]
Add Python bindings for CTF-IR stream getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 27 Jun 2014 19:44:12 +0000 (15:44 -0400)]
Tests: Add stream getter tests
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 27 Jun 2014 19:43:30 +0000 (15:43 -0400)]
Implement CTF-IR stream getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 27 Jun 2014 17:55:34 +0000 (13:55 -0400)]
Move CTF-Writer stream to CTF-IR
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 27 Jun 2014 17:21:26 +0000 (13:21 -0400)]
Add Python bindings for CTF-IR stream class getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 26 Jun 2014 18:20:59 +0000 (14:20 -0400)]
Tests: Add stream class getter tests
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 12 Jun 2014 19:00:39 +0000 (15:00 -0400)]
Implement CTF-IR stream class getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 12 Jun 2014 17:35:01 +0000 (13:35 -0400)]
Add Python bindings for CTF-IR event getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 10 Jun 2014 18:24:53 +0000 (14:24 -0400)]
Tests: Add event getter tests
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 10 Jun 2014 00:51:16 +0000 (20:51 -0400)]
Implement CTF-IR event getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 10 Jun 2014 21:29:36 +0000 (17:29 -0400)]
Fix: Set the stream class' id in the packet header
The stream id was used in the packet header whereas the
stream class' id should be used.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Mon, 2 Jun 2014 19:18:24 +0000 (15:18 -0400)]
Remove unecessary linking on libbabeltrace-ctf-text
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 30 May 2014 21:40:28 +0000 (17:40 -0400)]
Add Python bindings for CTF-IR event-types getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 22 May 2014 16:58:17 +0000 (12:58 -0400)]
Tests: Add an array type and field test
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 21 May 2014 16:19:26 +0000 (12:19 -0400)]
Tests: Add event types getter tests
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 16 May 2014 15:10:44 +0000 (11:10 -0400)]
Implement CTF-IR field types getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 16 May 2014 15:10:02 +0000 (11:10 -0400)]
Clean-up: Remove unecessary line break
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 1 May 2014 15:31:31 +0000 (11:31 -0400)]
Add Python bindings for CTF-IR event-field getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Sun, 27 Apr 2014 12:10:29 +0000 (08:10 -0400)]
Update CTF-Writer and CTF-IR copyrights
Changed the copyrights to stay remain in line with our usual
politic of authors retaining their copyright on the code they
contribute.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 23 Apr 2014 08:26:40 +0000 (04:26 -0400)]
Tests: Test CTF-IR event-field's getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 17 Apr 2014 14:51:51 +0000 (10:51 -0400)]
Docs: CTF-IR sequence's length field must be unsigned
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 22 May 2014 19:02:02 +0000 (15:02 -0400)]
Implement CTF-IR event fields getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 21 May 2014 17:32:43 +0000 (13:32 -0400)]
Fix: Check that enumeration container types are integers
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 21 May 2014 16:15:36 +0000 (12:15 -0400)]
Add bt_ctf_field_type_enumeration private search functions
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 16 Apr 2014 22:03:27 +0000 (18:03 -0400)]
Add Python bindings for CTF-IR clock's getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 16 Apr 2014 22:03:00 +0000 (18:03 -0400)]
Tests: Test CTF-IR Clock's getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 16 Apr 2014 22:02:28 +0000 (18:02 -0400)]
Implement CTF-IR Clock getters
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Tue, 15 Apr 2014 20:56:21 +0000 (16:56 -0400)]
Split the CTF-Writer implementation in IR and Writer parts
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 21 Mar 2014 19:05:02 +0000 (15:05 -0400)]
Split the CTF-Writer API into IR and Writer-specific parts
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Fri, 21 Mar 2014 17:36:15 +0000 (13:36 -0400)]
Split ctf-writer's stream.h into stream.h and stream-class.h
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Thu, 26 Jun 2014 14:42:00 +0000 (10:42 -0400)]
Fix (Python bindings): Return a string if a sequence's element are chars
An AttributeError exception was raised when accessing the value property
of a sequence that contains a string.
Reported-by: Yiyang Dai <daiyiyang@hotmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Sebastian Andrzej Siewior [Tue, 27 May 2014 08:08:13 +0000 (10:08 +0200)]
Fix: don't use a return code in _bt_ctf_stream_append_discarded_events
That function is defined as void:
| File "/usr/lib/python3/dist-packages/babeltrace.py", line 2284, in
| append_discarded_events
| if ret < 0:
| TypeError: unorderable types: NoneType() < int()
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jérémie Galarneau [Wed, 21 May 2014 15:38:08 +0000 (11:38 -0400)]
Fix: Report the sequence's length field's value as length
bt_ctf_get_field_list currently returns the underlying array's
size which is always the highest element count encountered to
date.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Fredrik Markström [Fri, 16 May 2014 02:10:38 +0000 (10:10 +0800)]
Fix: Align buffers from objstack_alloc on sizeof(void *)
The buffers from objstack_alloc will store pointers, so they must
be aligned on a pointer's size, or else it will cause issues on the
CPUs which do not support unaligned addresses access.
Signed-off-by: Fredrik Markstrom <fredrik.markstrom@gmail.com>
Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Jesper Derehag [Wed, 23 Apr 2014 15:45:26 +0000 (17:45 +0200)]
Add fallback for betoh/htobe if they do not exist
For older systems endian.h may not contain the betoh/htobe macros.
If they are missing, add them and make sure that any user of
htobe/betoh uses the compat/endian.h
Signed-off-by: Jesper Derehag <jderehag@hotmail.com>
Tested-by: Jesper Derehag <jderehag@hotmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Jérémie Galarneau [Fri, 25 Apr 2014 13:22:33 +0000 (09:22 -0400)]
Fix: Variable name typo in SequenceField and Event classes
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Julien Desfossez [Tue, 15 Apr 2014 18:28:23 +0000 (14:28 -0400)]
Fix python: remove weird char at the end of line
There was the character \xc2 at the end of one line that caused an
import error on some ubuntu distros.
Reported-by: Francis Giraldeau <francis.giraldeau@gmail.com>
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Amit Margalit [Tue, 8 Apr 2014 07:51:00 +0000 (10:51 +0300)]
Added bt_ctf_get_decl_event_id() API function.
Signed-Off-By: Amit Margalit <amitm@il.ibm.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Mathieu Desnoyers [Tue, 18 Mar 2014 17:53:03 +0000 (13:53 -0400)]
Fix: add missing files to gitignore
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers [Sat, 15 Mar 2014 16:31:47 +0000 (12:31 -0400)]
Fix: ctf-text: add missing double-quotes around enum tag
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Lars Persson [Wed, 12 Mar 2014 09:05:17 +0000 (10:05 +0100)]
Use autoconf AM_MAINTAINER_MODE
Give distribution maintainers the option to skip rebuilding
autoconf and automake generated files. The default behaviour
is still to have the rebuild rules enabled.
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Lars Persson [Wed, 12 Mar 2014 07:12:46 +0000 (08:12 +0100)]
Fix: Support out of tree builds in babeltrace
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.039885 seconds and 4 git commands to generate.