lib: add bt_clock_class_has_same_identity function
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 5 Sep 2023 14:59:59 +0000 (10:59 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commitc33d46d29c33a9fe675cc333199098a4e3c51513
tree412529994367666fb2544eed164b7575afcb8bd1
parent85f6ebeb602b158fb858862850f79eda00a69046
lib: add bt_clock_class_has_same_identity function

Add the bt_clock_class_has_same_identity utility function, which tells
if two clock classes have the same identify.

The criteria for whether two clock classes have the same identity are
the same as in CTF 2:

    Two clock classes which satisfy all the following conditions are
    said to have the same identity:

     - Both share the same namespace property value, or both don’t have
       any namespace property.
     - Both have a name property and share the same value.
     - Both have a uid property and share the same value.

Philippe updated the documentation.

Change-Id: I55e4e13274d413a15873099045f14690feab09c4
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10749
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12726
include/babeltrace2/trace-ir/clock-class.h
src/lib/trace-ir/clock-class.c
This page took 0.024588 seconds and 4 git commands to generate.