clock-correlation-validator: add clock correlation validation util
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 1 Mar 2024 15:59:51 +0000 (10:59 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commite0f8968a1182ea437ee4db0abc4043ba1dc286a2
treefcc311423b070b2d93312011cfacfee5d1032deb
parent0f286fd6b070f5f3de2f6d95865a547574f5cb3e
clock-correlation-validator: add clock correlation validation util

`lib/graph/iterator.c` and `plugins/utils/muxer/msg-iter.cpp` have
equivalent code to verify that the various clock classes they see are
correlatable.  Add a util to factor out this logic.

Since the lib is written in C and the muxer component in C++, we need
both interfaces.  I chose to write the core of the library with a proper
C++ interface (since that's the future!) and make a small C wrapper
around it.  If/when we migrate some parts of the lib to C++, we will be
able to drop this C wrapper.

Change-Id: Iab8968ef33c9f7d4e2e8e06e0942de749a090841
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11753
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
src/Makefile.am
src/clock-correlation-validator/clock-correlation-validator.cpp [new file with mode: 0644]
src/clock-correlation-validator/clock-correlation-validator.h [new file with mode: 0644]
src/clock-correlation-validator/clock-correlation-validator.hpp [new file with mode: 0644]
src/common/macros.h
This page took 0.023846 seconds and 4 git commands to generate.