ctf: add ClkClsConfig and use it
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 3 Aug 2022 01:29:48 +0000 (21:29 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Aug 2022 16:06:15 +0000 (12:06 -0400)
commit4daaf7a75a2e8198d08a3c888f7f47e778fafadc
tree001b2b90a9ce843a5b6bd10ccc2373d80eb0a38d
parentdfee8bf0ad86ea19bb6a4009473ab641f58b8608
ctf: add ClkClsConfig and use it

Different parts of the code in the ctf plugin (in fs-src, lttng-live and
common) use these three values:

 - clock offset (seconds)
 - clock offset (nanoseconds)
 - force origin to be Unix epoch

Gather these three values in a new structure, `ClkClsConfig`, so that
these they can easily be passed around.  This replaces the existing
ctf_fs_metadata_config structure, which contained the exact same thing,
but was specific to the fs component class.

Change-Id: If9b4d88c9fd5eb3352c5de4007dc4343fac485c1
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8228
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/common/src/Makefile.am
src/plugins/ctf/common/src/clk-cls-cfg.hpp [new file with mode: 0644]
src/plugins/ctf/common/src/metadata/tsdl/decoder.cpp
src/plugins/ctf/common/src/metadata/tsdl/decoder.hpp
src/plugins/ctf/common/src/metadata/tsdl/visitor-generate-ir.cpp
src/plugins/ctf/fs-src/fs.cpp
src/plugins/ctf/fs-src/fs.hpp
src/plugins/ctf/fs-src/metadata.cpp
src/plugins/ctf/fs-src/metadata.hpp
src/plugins/ctf/lttng-live/metadata.cpp
This page took 0.024983 seconds and 5 git commands to generate.