Fix: babeltrace --fields all  overrides --no-delta

Fixes #463

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix: misleading message from babeltrace --verbose

Fixes #468

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cleanup: add end of line at end of verbose message

Fixes #470

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cleanup: typo fix

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
Reinsert "at end of stream" message for discarded events

Ref #469

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Version 1.1.0

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
Ignore Windows-style EOL character in metadata

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Show line numbers in CTF parser errors

Suggested-by: Etienne Bergeron <etienne.bergeron@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Remove unused lineno from struct ctf_scanner

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Show token in CTF parser error

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Add missing NULL pointer check

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fix: memleak on error path

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
Add line number to parser nodes

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Implement macros for error printout

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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>
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>
Fix unary constant use after error

Signed-off-by: Etienne Bergeron <etienneb@google.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>