lib: add bt_trace_class_get_graph_mip_version
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 31 May 2023 19:59:08 +0000 (15:59 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commitfbc90342dade0eea8fc4f464bda7f63b6151802a
treeb775c249541955a4505d75f5354dc4a4eb3fcb29
parent21950ad46556927e89e494f3fa0f823730739a4e
lib: add bt_trace_class_get_graph_mip_version

Add bt_trace_class_get_graph_mip_version, which returns the MIP version
for the graph the trace class is in.

This will be necessary for the Python bindings functions dealing with
trace IR that need to change their behavior according to the MIP
version.  Right now, the MIP version can be obtained from a self
component.  But some Python functions (for instance
_TraceClass.create_variant_field_class) only have a IR object to work
with, and it's not possible to get the self component from there.
Adding a function to get the self component from a trace class was
considered, but it was deemed to complex because of object lifetime and
refcount cycle issues.

Philippe updated the documentation.

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