Skip to content

Commit

Permalink
Add tracing instrumentation for rcl_take (ros2#930)
Browse files Browse the repository at this point in the history
* Add tracing instrumentation for rcl_take

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>

* Remove redundant publisher field in rcl_publish tracepoint

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>

* Re-add publisher handle field in rcl_publish tracepoint

Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
  • Loading branch information
christophebedard committed Aug 12, 2021
1 parent da4f1b9 commit 4296dd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rcl/src/rcl/subscription.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ rcl_take(
}
RCUTILS_LOG_DEBUG_NAMED(
ROS_PACKAGE_NAME, "Subscription take succeeded: %s", taken ? "true" : "false");
TRACEPOINT(rcl_take, (const void *)ros_message);
if (!taken) {
return RCL_RET_SUBSCRIPTION_TAKE_FAILED;
}
Expand Down

0 comments on commit 4296dd1

Please sign in to comment.