From 4296dd1e94c444e4fca8b76a638eba80de27614d Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 12 Aug 2021 15:48:40 -0400 Subject: [PATCH] Add tracing instrumentation for rcl_take (#930) * Add tracing instrumentation for rcl_take Signed-off-by: Christophe Bedard * Remove redundant publisher field in rcl_publish tracepoint Signed-off-by: Christophe Bedard * Re-add publisher handle field in rcl_publish tracepoint Signed-off-by: Christophe Bedard --- rcl/src/rcl/subscription.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rcl/src/rcl/subscription.c b/rcl/src/rcl/subscription.c index 6119943563..fcea1e7674 100644 --- a/rcl/src/rcl/subscription.c +++ b/rcl/src/rcl/subscription.c @@ -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; }