ros2_tracing icon indicating copy to clipboard operation
ros2_tracing copied to clipboard

Update calls to/uses of LTTng-UST API

Open christophebedard opened this issue 2 years ago • 1 comments

(Issue moved from GitLab, see: https://gitlab.com/ros-tracing/ros2_tracing/-/issues/133)

Ubuntu 22.04 (for ROS 2 Humble in May 2022 and later) has LTTng-UST 2.13. Althought it's still backwards-compatible, macros and functions were renamed to add a LTTNG_UST_/lttng_ust_ prefix, e.g.:

  • tracepoint() -> lttng_ust_tracepoint()
  • TRACEPOINT_EVENT() -> LTTNG_UST_TRACEPOINT_EVENT()

see:

  • https://lttng.org/docs/v2.13/#doc-whats-new
  • https://lttng.org/man/3/lttng-ust/v2.13/#doc-_compatibility_with_previous_apis

christophebedard avatar Nov 22 '22 22:11 christophebedard

RHEL 9 has LTTng 2.12, so we might have to wait until all Linux platforms have >=2.13.

christophebedard avatar Apr 06 '23 23:04 christophebedard