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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Sep 2019 15:58:22 +0000 (11:58 -0400)
commit5c3441d8c6d240d444394da1bfbd013fb18e78df
tree260e9e942ff62318c3f1f84dedf5dc0f5f434f98
parentd98f6ad1a757060bd4da0a3accae03dd5c5fd57f
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.02604 seconds and 4 git commands to generate.