lib: add bt_trace_{get,set}_uid
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 23 May 2024 20:23:06 +0000 (16:23 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit19dd0390beaf277efc7a2c319ff48bff46c097d6
tree275ec3d33429a0b6479312445f4dec7575de7d0c
parentae8acddb2b7ccc05cf0c1e69d213356dae7abc51
lib: add bt_trace_{get,set}_uid

In MIP 1, the trace UID replaces the trace UUID.  A trace UID is an
arbitrary string.  When the trace UID is unset, its value is NULL.

 - Add bt_trace_get_uid and bt_trace_set_uid, to be used with MIP >= 1.

 - Make bt_trace_get_uuid and bt_trace_set_uuid only available with
   MIP == 0.

 - Add BT_ASSERT_PRE_UID_NON_NULL, for use in bt_trace_set_uid.

 - Handle the trace UID in lib-logging.c:format_trace.

 - Free the UID in destroy_trace.

Philippe updated the documentation.

Change-Id: I3d84a9e6f04d632d187c8adfc4d625ce4c4357c0
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/9972
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
doc/api/libbabeltrace2/Doxyfile.in
include/babeltrace2/trace-ir/trace.h
src/lib/assert-cond.h
src/lib/lib-logging.c
src/lib/trace-ir/trace.c
src/lib/trace-ir/trace.h
This page took 0.025218 seconds and 4 git commands to generate.