ctf: make src.ctf.fs append error causes
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 13 Aug 2019 15:56:18 +0000 (11:56 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 26 Aug 2019 16:57:50 +0000 (12:57 -0400)
commitd23b766e7b7542ddff2211264b4ece1f3a347773
tree998de95be32064d7cb8c179d271cc84766169911
parent1db12e0dc4ab058df9de9801caf3f00841c92ce5
ctf: make src.ctf.fs append error causes

This patch makes the src.ctf.fs plugin code append error causes whenever
an error status is returned.

A few new macros are added to comp-logging.h to support that.

Some functions are called both in component context and component class
context.  When appending error causes, we need to call the
function/macro for the right context.  My solution to this is to pass
both bt_self_component and bt_self_component_class pointers, but expect
only one of them to be set.  The new macro
BT_COMP_OR_COMP_CLASS_LOGE_APPEND_CAUSE takes care of calling the right
function for whichever is set.

Change-Id: I8d54f463d9a13066abdc140ef41f374e4daed303
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1966
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
include/Makefile.am
include/babeltrace2/babeltrace.h
include/babeltrace2/graph/self-component-class.h [new file with mode: 0644]
src/logging/comp-logging.h
src/plugins/ctf/fs-src/fs.c
src/plugins/ctf/fs-src/fs.h
src/plugins/ctf/fs-src/query.c
This page took 0.027233 seconds and 4 git commands to generate.