Skip to content

Commit

Permalink
Use TRACETOOLS_ prefix for tracepoint-related macros (ros2#686)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 8, 2023
1 parent 2ae7b41 commit a67d6df
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rmw_fastrtps_cpp/src/publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ rmw_fastrtps_cpp::create_publisher(
cleanup_datawriter.cancel();
cleanup_info.cancel();

TRACEPOINT(
TRACETOOLS_TRACEPOINT(
rmw_publisher_init,
static_cast<const void *>(rmw_publisher),
info->publisher_gid.data);
Expand Down
4 changes: 2 additions & 2 deletions rmw_fastrtps_cpp/src/subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ __create_dynamic_subscription(
cleanup_datareader.cancel();
cleanup_info.cancel();

TRACEPOINT(
TRACETOOLS_TRACEPOINT(
rmw_subscription_init,
static_cast<const void *>(rmw_subscription),
info->subscription_gid_.data);
Expand Down Expand Up @@ -721,7 +721,7 @@ __create_subscription(
cleanup_datareader.cancel();
cleanup_info.cancel();

TRACEPOINT(
TRACETOOLS_TRACEPOINT(
rmw_subscription_init,
static_cast<const void *>(rmw_subscription),
info->subscription_gid_.data);
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_publish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ __rmw_publish(
data.type = FASTRTPS_SERIALIZED_DATA_TYPE_ROS_MESSAGE;
data.data = const_cast<void *>(ros_message);
data.impl = info->type_support_impl_;
TRACEPOINT(rmw_publish, ros_message);
TRACETOOLS_TRACEPOINT(rmw_publish, ros_message);
if (!info->data_writer_->write(&data)) {
RMW_SET_ERROR_MSG("cannot publish data");
return RMW_RET_ERROR;
Expand Down
2 changes: 1 addition & 1 deletion rmw_fastrtps_shared_cpp/src/rmw_take.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ _take(
}
}

TRACEPOINT(
TRACETOOLS_TRACEPOINT(
rmw_take,
static_cast<const void *>(subscription),
static_cast<const void *>(ros_message),
Expand Down

0 comments on commit a67d6df

Please sign in to comment.