babeltrace.git
11 years agoAdd new option --clock-offset-ns
Ikaheimonen, JP [Thu, 2 May 2013 14:19:33 +0000 (10:19 -0400)] 
Add new option --clock-offset-ns

Add a new option --clock-offset-ns. It requires a parameter
that specifies a clock offset (in nanoseconds) that is added
to each timestamp.

This works exactly as the option --clock-offset, except that
the value is given in nanoseconds instead of full seconds.

The two options --clock-offset and --clock-offset-ns are
compatible with each other, and it's possible to give both.
For example, having the options

--clock-offset 2 --clock-offset-ns 1000000

means that 2.001 seconds is added to each timestamp.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: add missing error return when create_event_definitions fails
Mathieu Desnoyers [Thu, 25 Apr 2013 14:15:39 +0000 (10:15 -0400)] 
Fix: add missing error return when create_event_definitions fails

Also add more verbose error printout to help identifying the culprit of
metadata issues.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: ctf-text should link on libbabeltrace-ctf
Mathieu Desnoyers [Thu, 25 Apr 2013 13:47:40 +0000 (09:47 -0400)] 
Fix: ctf-text should link on libbabeltrace-ctf

Refs: #410

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove clock to bt_trace_descriptor
Mathieu Desnoyers [Tue, 23 Apr 2013 13:48:26 +0000 (09:48 -0400)] 
Move clock to bt_trace_descriptor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoRemove unused stream_heap
Mathieu Desnoyers [Tue, 23 Apr 2013 13:40:56 +0000 (09:40 -0400)] 
Remove unused stream_heap

Now moved used within iterator structure (by prior commit).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove trace collection pointer to bt_trace_descriptor
Mathieu Desnoyers [Tue, 23 Apr 2013 13:31:55 +0000 (09:31 -0400)] 
Move trace collection pointer to bt_trace_descriptor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove bt_handle to bt_trace_descriptor
Mathieu Desnoyers [Tue, 23 Apr 2013 13:26:42 +0000 (09:26 -0400)] 
Move bt_handle to bt_trace_descriptor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove bt_context to bt_trace_descriptor
Mathieu Desnoyers [Tue, 23 Apr 2013 13:25:30 +0000 (09:25 -0400)] 
Move bt_context to bt_trace_descriptor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoPrivatize struct bt_trace descriptor, move trace path
Mathieu Desnoyers [Tue, 23 Apr 2013 13:22:18 +0000 (09:22 -0400)] 
Privatize struct bt_trace descriptor, move trace path

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd backward ref from bt_stream_pos to bt_trace_descriptor
Mathieu Desnoyers [Tue, 23 Apr 2013 13:05:52 +0000 (09:05 -0400)] 
Add backward ref from bt_stream_pos to bt_trace_descriptor

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix kFreeBSD build
Mathieu Desnoyers [Mon, 22 Apr 2013 16:12:50 +0000 (12:12 -0400)] 
Fix kFreeBSD build

Use general error numbers available on kFreeBSD.

Reported-by: Petr Salinger <Petr.Salinger@seznam.cz>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: babeltrace-log timestamps should be in nsec
Mathieu Desnoyers [Mon, 22 Apr 2013 14:21:48 +0000 (10:21 -0400)] 
Fix: babeltrace-log timestamps should be in nsec

Those were in usec, and babeltrace expect nsec by default for default
clock.

Most of the work has been focused on LTTng and read-side lately,
therefore babeltrace-log went under the radar.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoUse objstack for AST allocation
Mathieu Desnoyers [Fri, 19 Apr 2013 10:06:24 +0000 (06:06 -0400)] 
Use objstack for AST allocation

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoRemove unused gc field
Mathieu Desnoyers [Fri, 19 Apr 2013 09:05:42 +0000 (05:05 -0400)] 
Remove unused gc field

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoUse objstack to store nodes
Mathieu Desnoyers [Fri, 19 Apr 2013 09:01:10 +0000 (05:01 -0400)] 
Use objstack to store nodes

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoUse objstack for strings
Mathieu Desnoyers [Fri, 19 Apr 2013 08:50:37 +0000 (04:50 -0400)] 
Use objstack for strings

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImplement objstack for parser
Mathieu Desnoyers [Tue, 16 Apr 2013 02:42:57 +0000 (22:42 -0400)] 
Implement objstack for parser

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: octal and hex string handling
Mathieu Desnoyers [Wed, 17 Apr 2013 17:05:21 +0000 (13:05 -0400)] 
Fix: octal and hex string handling

Following C99:

Octal does not start by \o, but rather is in the form:

  \n \nn or \nnn

  where n is octal.

Hexadecimal is:

  \xH \xHH or \xHHH

  where H is hexadecimal.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoSimplify error node
Mathieu Desnoyers [Tue, 16 Apr 2013 13:53:49 +0000 (09:53 -0400)] 
Simplify error node

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoLexer cleanup
Mathieu Desnoyers [Tue, 9 Apr 2013 01:49:07 +0000 (21:49 -0400)] 
Lexer cleanup

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: invalid integer suffix parsing
Mathieu Desnoyers [Tue, 9 Apr 2013 01:45:44 +0000 (21:45 -0400)] 
Fix: invalid integer suffix parsing

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoTest cleanup
Mathieu Desnoyers [Tue, 9 Apr 2013 01:42:49 +0000 (21:42 -0400)] 
Test cleanup

Remove unused binary file.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoTest cleanup
Mathieu Desnoyers [Tue, 9 Apr 2013 01:41:46 +0000 (21:41 -0400)] 
Test cleanup

Remove unused binary file.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoTest cleanup
Mathieu Desnoyers [Tue, 9 Apr 2013 01:40:43 +0000 (21:40 -0400)] 
Test cleanup

Remove unused binary files.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: bootstrap should call libtoolize
Mathieu Desnoyers [Tue, 9 Apr 2013 00:55:19 +0000 (20:55 -0400)] 
Fix: bootstrap should call libtoolize

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix bootstrap script
Mathieu Desnoyers [Tue, 9 Apr 2013 00:42:26 +0000 (20:42 -0400)] 
Fix bootstrap script

Run autoreconf -i. Fix git repo initial bootstrap (needed to be run
twice).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoUse uint64_t for packet_map_len
Mathieu Desnoyers [Mon, 8 Apr 2013 13:15:15 +0000 (09:15 -0400)] 
Use uint64_t for packet_map_len

packet_map_len is in bits, and we should use uint64_t to represent bits,
rather than size_t.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd smalltrace succeed/fail test cases
Mathieu Desnoyers [Mon, 8 Apr 2013 12:36:44 +0000 (08:36 -0400)] 
Add smalltrace succeed/fail test cases

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoSupport packets and trace files smaller than page size
Mathieu Desnoyers [Mon, 8 Apr 2013 12:35:20 +0000 (08:35 -0400)] 
Support packets and trace files smaller than page size

Fixes #450

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove ctf-metadata plugin into its own shared object
Mathieu Desnoyers [Sat, 6 Apr 2013 23:38:05 +0000 (19:38 -0400)] 
Move ctf-metadata plugin into its own shared object

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImplement ctf-metadata output plugin
Mathieu Desnoyers [Sat, 6 Apr 2013 19:47:13 +0000 (15:47 -0400)] 
Implement ctf-metadata output plugin

Fixes #284

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoHandle make_node errors with TLS dummy node
Mathieu Desnoyers [Thu, 4 Apr 2013 17:15:27 +0000 (13:15 -0400)] 
Handle make_node errors with TLS dummy node

Neater than a segmentation fault when out of memory.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoRemove nested expressions
Etienne Bergeron [Thu, 4 Apr 2013 17:12:31 +0000 (13:12 -0400)] 
Remove nested expressions

Those are useless: the priorities are already known within the data
structure without those extra nodes.

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoEliminate dead code
Mathieu Desnoyers [Thu, 4 Apr 2013 16:55:54 +0000 (12:55 -0400)] 
Eliminate dead code

This code is now unused after
commit d876a5baf224612e7e44d3cfda2dc1d57ea91ea4

Suggested-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: trace_collection_add() add after check
Mathieu Desnoyers [Thu, 4 Apr 2013 16:53:14 +0000 (12:53 -0400)] 
Fix: trace_collection_add() add after check

Fix segmentation fault by adding trace into trace collection only after
check for time correlation has succeeded.

Reported-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoHandle integers in lexer rather than grammar
Etienne Bergeron [Thu, 4 Apr 2013 16:38:57 +0000 (12:38 -0400)] 
Handle integers in lexer rather than grammar

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImplement perror printf
Mathieu Desnoyers [Thu, 4 Apr 2013 16:35:36 +0000 (12:35 -0400)] 
Implement perror printf

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoSupport escape characters in metadata strings
Etienne Bergeron [Thu, 4 Apr 2013 13:44:24 +0000 (09:44 -0400)] 
Support escape characters in metadata strings

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd error node to AST
Etienne Bergeron [Wed, 3 Apr 2013 17:58:30 +0000 (13:58 -0400)] 
Add error node to AST

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoIntroduce macro to enforce matching enum to string for node types
Etienne Bergeron [Wed, 3 Apr 2013 17:54:11 +0000 (13:54 -0400)] 
Introduce macro to enforce matching enum to string for node types

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: add semantic check in grammar
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Fix: add semantic check in grammar

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImplement likely/unlikely ifdefs
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Implement likely/unlikely ifdefs

- don't redefine likely/unlikely on compilers already defining them,
- don't use builtins on compilers not supporting them.

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix unary constant use after error
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Fix unary constant use after error

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoUse new print macros in ctf-parser.y
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Use new print macros in ctf-parser.y

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoPrint error on invalid token
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Print error on invalid token

Includes an optimisation for ignored token parsing.

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImplement macros for error printout
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Implement macros for error printout

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd line number to parser nodes
Etienne Bergeron [Tue, 2 Apr 2013 23:24:22 +0000 (19:24 -0400)] 
Add line number to parser nodes

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: handle errors gracefully
Mathieu Desnoyers [Tue, 2 Apr 2013 20:34:18 +0000 (16:34 -0400)] 
Fix: handle errors gracefully

- Return errors in io struct generator rather than using assertions,
- check for NULL concatenate string return values,
- fix memleak on ctf_trace_declaration_visit error path.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: memleak on error path
Mathieu Desnoyers [Tue, 2 Apr 2013 19:25:55 +0000 (15:25 -0400)] 
Fix: memleak on error path

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd missing NULL pointer check
Mathieu Desnoyers [Tue, 2 Apr 2013 19:25:05 +0000 (15:25 -0400)] 
Add missing NULL pointer check

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoShow token in CTF parser error
Mathieu Desnoyers [Sat, 30 Mar 2013 15:16:59 +0000 (11:16 -0400)] 
Show token in CTF parser error

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoRemove unused lineno from struct ctf_scanner
Mathieu Desnoyers [Sat, 30 Mar 2013 15:13:04 +0000 (11:13 -0400)] 
Remove unused lineno from struct ctf_scanner

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoShow line numbers in CTF parser errors
Mathieu Desnoyers [Sat, 30 Mar 2013 14:07:11 +0000 (10:07 -0400)] 
Show line numbers in CTF parser errors

Suggested-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoIgnore Windows-style EOL character in metadata
Mathieu Desnoyers [Fri, 29 Mar 2013 20:45:07 +0000 (16:45 -0400)] 
Ignore Windows-style EOL character in metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoReplace AM_PROG_MKDIR obsolete macro with AC_PROG_MKDIR_P
Christian Babeux [Sat, 23 Mar 2013 23:00:37 +0000 (19:00 -0400)] 
Replace AM_PROG_MKDIR obsolete macro with AC_PROG_MKDIR_P

The bootstrap script is complaining with a deprecation warning [1] for
the AM_PROG_MKDIR_P Automake macro.

Relevant bootstrap output:

configure.ac:13: warning: The 'AM_PROG_MKDIR_P' macro is deprecated,
                 and will soon be removed.
configure.ac:13: You should use the Autoconf-provided 'AC_PROG_MKDIR_P'
                 macro instead,
configure.ac:13: and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your
                 Makefile.am files.

Fix this by updating configure.ac with the proposed AC_PROG_MKDIR_P macro.

[1] - https://www.gnu.org/software/automake/manual/html_node/Obsolete-Macros.html

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoVersion 1.1.0 v1.1.0
Mathieu Desnoyers [Sat, 23 Mar 2013 17:34:22 +0000 (13:34 -0400)] 
Version 1.1.0

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoReinsert "at end of stream" message for discarded events
Mathieu Desnoyers [Sat, 23 Mar 2013 17:19:52 +0000 (13:19 -0400)] 
Reinsert "at end of stream" message for discarded events

Ref #469

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoImprovement: Message from babeltrace concerning discarded events needs improvement
Mathieu Desnoyers [Sat, 23 Mar 2013 17:13:52 +0000 (13:13 -0400)] 
Improvement: Message from babeltrace concerning discarded events needs improvement

New output example:

[warning] Tracer discarded 18508 events between [13:07:22.210641404] and [13:07:22.210642166] in trace UUID 857bd6395891954ab9d3defb2aeb98f7, at path: "/home/compudj/lttng-traces/auto-20130323-130705/kernel", within stream id 0, at relative path: "channel0_1". You should consider recording a new trace with larger buffers or with fewer events enabled.

Fixes #469

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoCleanup: typo fix
Mathieu Desnoyers [Sat, 23 Mar 2013 16:40:08 +0000 (12:40 -0400)] 
Cleanup: typo fix

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoCleanup: add end of line at end of verbose message
Mathieu Desnoyers [Sat, 23 Mar 2013 16:28:56 +0000 (12:28 -0400)] 
Cleanup: add end of line at end of verbose message

Fixes #470

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: misleading message from babeltrace --verbose
Mathieu Desnoyers [Sat, 23 Mar 2013 16:23:03 +0000 (12:23 -0400)] 
Fix: misleading message from babeltrace --verbose

Fixes #468

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: babeltrace --fields all overrides --no-delta
Mathieu Desnoyers [Sat, 23 Mar 2013 16:18:59 +0000 (12:18 -0400)] 
Fix: babeltrace --fields all  overrides --no-delta

Fixes #463

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd verbosity to stream id error message
Mathieu Desnoyers [Wed, 20 Mar 2013 23:21:23 +0000 (19:21 -0400)] 
Add verbosity to stream id error message

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: Ensure the specified input format is CTF
Jérémie Galarneau [Fri, 1 Mar 2013 02:27:45 +0000 (21:27 -0500)] 
Fix: Ensure the specified input format is CTF

Add a check to make sure the input trace format argument passed to the
babeltrace converter is "ctf" as it is currently the only one supported.

Add a note to this effect in the man page.

Fixes #462

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: Undefined behavior of double free on strlist in get_names_args
Christian Babeux [Fri, 1 Mar 2013 02:26:32 +0000 (21:26 -0500)] 
Fix: Undefined behavior of double free on strlist in get_names_args

Signed-off-by: Christian Babeux <christian.babeux@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: ctf-text: don't close stdout
Mathieu Desnoyers [Fri, 22 Feb 2013 20:26:47 +0000 (15:26 -0500)] 
Fix: ctf-text: don't close stdout

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: warning message for unexpected trace byte order
Mathieu Desnoyers [Fri, 22 Feb 2013 16:09:43 +0000 (11:09 -0500)] 
Fix: warning message for unexpected trace byte order

Fixes #443

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace the struct declaration
Julien Desfossez [Fri, 15 Feb 2013 19:26:54 +0000 (14:26 -0500)] 
Namespace the struct declaration

This struct is exposed in the public API so we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace the struct definition
Julien Desfossez [Fri, 15 Feb 2013 19:22:09 +0000 (14:22 -0500)] 
Namespace the struct definition

This struct is exposed in the public API, so we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace the struct format
Julien Desfossez [Fri, 15 Feb 2013 19:21:31 +0000 (14:21 -0500)] 
Namespace the struct format

This struct is exposed in the public API, we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace the struct mmap_stream
Julien Desfossez [Fri, 15 Feb 2013 19:20:54 +0000 (14:20 -0500)] 
Namespace the struct mmap_stream

This struct is exposed in the public API so we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace the struct trace_descriptor
Julien Desfossez [Fri, 15 Feb 2013 19:20:16 +0000 (14:20 -0500)] 
Namespace the struct trace_descriptor

This struct is exposed in the public API so we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace struct stream_pos
Julien Desfossez [Fri, 15 Feb 2013 19:18:47 +0000 (14:18 -0500)] 
Namespace struct stream_pos

This struct is exposed by the API, so we need to namespace it.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoNamespace compliance for dependencies function
Julien Desfossez [Fri, 15 Feb 2013 19:17:57 +0000 (14:17 -0500)] 
Namespace compliance for dependencies function

Use the bt_ prefix instead of babeltrace_

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoCleanup error messages
Mathieu Desnoyers [Thu, 14 Feb 2013 22:25:21 +0000 (17:25 -0500)] 
Cleanup error messages

Ensure we print a more meaningful error message when empty metadata
string is encountered.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: babeltrace: make '-w' actually work
Sebastian Andrzej Siewior [Thu, 14 Feb 2013 15:38:16 +0000 (10:38 -0500)] 
Fix: babeltrace: make '-w' actually work

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoConvert the unit tests to the TAP format
Jérémie Galarneau [Wed, 13 Feb 2013 19:41:28 +0000 (14:41 -0500)] 
Convert the unit tests to the TAP format

[ Mathieu Desnoyers: minor style edits. ]

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoSpelling cleanups within comments
Etienne Bergeron [Wed, 13 Feb 2013 02:32:13 +0000 (21:32 -0500)] 
Spelling cleanups within comments

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoMove the bitfield test to tests/lib/
Jérémie Galarneau [Thu, 7 Feb 2013 22:30:52 +0000 (17:30 -0500)] 
Move the bitfield test to tests/lib/

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoFix: Added a null pointer check to bt_ctf_field_name
Jérémie Galarneau [Mon, 28 Jan 2013 16:06:59 +0000 (11:06 -0500)] 
Fix: Added a null pointer check to bt_ctf_field_name

This function is called indirectly when calling __repr__ (print) in the
python bindings on the definition object returned by the
get_top_level_scope method thus resulting in a segmentation fault when
the name attribute is not set.

Fixes #373

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoAdd babeltrace.pc to gitignore
Mathieu Desnoyers [Fri, 25 Jan 2013 17:00:08 +0000 (12:00 -0500)] 
Add babeltrace.pc to gitignore

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespacing: place flex/bison symbols under bt_yy namespace
Mathieu Desnoyers [Thu, 24 Jan 2013 23:25:04 +0000 (18:25 -0500)] 
namespacing: place flex/bison symbols under bt_yy namespace

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the lookup_integer function
Julien Desfossez [Thu, 24 Jan 2013 22:25:34 +0000 (17:25 -0500)] 
namespace the lookup_integer function

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the definition functions
Julien Desfossez [Thu, 24 Jan 2013 22:25:16 +0000 (17:25 -0500)] 
namespace the definition functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the variant functions
Julien Desfossez [Thu, 24 Jan 2013 22:25:00 +0000 (17:25 -0500)] 
namespace the variant functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the declaration functions
Julien Desfossez [Thu, 24 Jan 2013 22:24:45 +0000 (17:24 -0500)] 
namespace the declaration functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the collection functions
Julien Desfossez [Thu, 24 Jan 2013 22:24:24 +0000 (17:24 -0500)] 
namespace the collection functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the heap functions
Julien Desfossez [Thu, 24 Jan 2013 22:24:09 +0000 (17:24 -0500)] 
namespace the heap functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the struct functions
Julien Desfossez [Thu, 24 Jan 2013 22:23:54 +0000 (17:23 -0500)] 
namespace the struct functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the string functions
Julien Desfossez [Thu, 24 Jan 2013 22:23:39 +0000 (17:23 -0500)] 
namespace the string functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the sequence functions
Julien Desfossez [Thu, 24 Jan 2013 22:23:19 +0000 (17:23 -0500)] 
namespace the sequence functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the int functions
Julien Desfossez [Thu, 24 Jan 2013 22:22:59 +0000 (17:22 -0500)] 
namespace the int functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the enum functions
Julien Desfossez [Thu, 24 Jan 2013 22:21:48 +0000 (17:21 -0500)] 
namespace the enum functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace definition_ref and definition_unref
Julien Desfossez [Thu, 24 Jan 2013 22:22:14 +0000 (17:22 -0500)] 
namespace definition_ref and definition_unref

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace declaration_ref and declaration_unref
Julien Desfossez [Thu, 24 Jan 2013 22:21:27 +0000 (17:21 -0500)] 
namespace declaration_ref and declaration_unref

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the array functions
Julien Desfossez [Thu, 24 Jan 2013 22:20:54 +0000 (17:20 -0500)] 
namespace the array functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agonamespace the scope_path functions
Julien Desfossez [Thu, 24 Jan 2013 22:20:38 +0000 (17:20 -0500)] 
namespace the scope_path functions

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoHide internal functions of libbabeltrace-ctf
Julien Desfossez [Thu, 24 Jan 2013 22:20:11 +0000 (17:20 -0500)] 
Hide internal functions of libbabeltrace-ctf

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoHide internal functions of ctf-text
Julien Desfossez [Thu, 24 Jan 2013 22:19:51 +0000 (17:19 -0500)] 
Hide internal functions of ctf-text

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
11 years agoBT_HIDDEN macro
Julien Desfossez [Thu, 24 Jan 2013 22:19:22 +0000 (17:19 -0500)] 
BT_HIDDEN macro

This macro will be used across the codebase to set the visibility of a
function to hidden.
Updated also the functions that were setting the attribute manually.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
This page took 0.041383 seconds and 4 git commands to generate.