Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pub/sub init, publish and take instrumentation using tracetools #329

Merged
merged 2 commits into from
Aug 12, 2021

Conversation

christophebedard
Copy link
Member

@christophebedard christophebedard commented Aug 2, 2021

This adds tracing instrumentation for publisher/subscription initialization at the rmw level. By recording the pub/sub GIDs, we can match ROS 2 pubs/subs with the corresponding DDS writers/readers. For example, with Cyclone DDS: eclipse-cyclonedds/cyclonedds#898

This also adds a tracepoint for rmw_publish and rmw_take so that we can track published/taken messages at the rmw level.

Requires https://gitlab.com/ros-tracing/ros2_tracing/-/merge_requests/254

action-ros-ci-repos-override: https://gist.githubusercontent.com/christophebedard/a83485b0bdea8458e61d59ed5668e27f/raw/2cb93590b8e18e6cb976408610f864acb47d1021/ros2.repos
action-ros-ci-repos-override: https://raw.githubusercontent.com/ros2/rmw_cyclonedds/master/.github/resources/local.repos

Signed-off-by: Christophe Bedard [email protected]

@christophebedard christophebedard force-pushed the instrumentation-pub-sub-take branch from 0e6f84c to 3978e6d Compare August 3, 2021 13:57
@christophebedard
Copy link
Member Author

christophebedard commented Aug 4, 2021

CI with:

--packages-above rmw_cyclonedds_cpp rmw rcl rclcpp tracetools tracetools_test:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

We'll merge the ros2_tracing merge request and then create a new release before merging this PR.

@christophebedard
Copy link
Member Author

@ros-pull-request-builder retest this please

@wjwwood
Copy link
Member

wjwwood commented Aug 12, 2021

Merging with ros2/rclcpp#1738 and ros2/rcl#930

@wjwwood wjwwood merged commit 99964e6 into ros2:master Aug 12, 2021
@christophebedard
Copy link
Member Author

Thank you @wjwwood!

clalancette pushed a commit to eboasson/rmw_cyclonedds that referenced this pull request May 18, 2022
…os2#329)

* Add pub/sub init, publish and take instrumentation using tracetools

Signed-off-by: Christophe Bedard <[email protected]>

* Remove redundant publisher field in rmw_publish tracepoint

Signed-off-by: Christophe Bedard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants