lib: add field location API
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 27 Oct 2023 19:18:06 +0000 (19:18 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Sep 2024 19:05:14 +0000 (15:05 -0400)
commit81a0e204ecad332bc6ae013ecba2b9e5798808f5
tree3ffca605081f54c376c9ec10b2c92ace1c271b23
parent411794ceb3d39a27e2938b62e9d19f9c6566619e
lib: add field location API

Add API functions to create field location objects.

Field locations are created using bt_field_location_create.  The caller
must pass a trace class, which is used to verify that the MIP version
of the graph is >= 1.  The caller passes a (root) scope, and an array of
components, which are the names to get from the root of the scope to the
desired field.

Accessor functions are:

 - bt_field_location_get_scope
 - bt_field_location_get_component_count
 - bt_field_location_get_component_by_index

They are intended to be used by a component consuming a trace.

Philippe updated the documentation.

Change-Id: Iad554ce39e13194bd9cc056c2d6d43ba8b87effe
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7316
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7199
doc/api/libbabeltrace2/Doxyfile.in
include/Makefile.am
include/babeltrace2/babeltrace.h
include/babeltrace2/trace-ir/field-location.h [new file with mode: 0644]
include/babeltrace2/trace-ir/field-path.h
include/babeltrace2/types.h
src/Makefile.am
src/lib/assert-cond.h
src/lib/trace-ir/field-location.c [new file with mode: 0644]
src/lib/trace-ir/field-location.h [new file with mode: 0644]
This page took 0.025046 seconds and 4 git commands to generate.