Rename rclcpp_callback_start|end to rclcpp_subscription_callback_start|end
This commit is contained in:
parent
cd75a0a2e1
commit
dd85e2af74
4 changed files with 12 additions and 12 deletions
|
@ -39,14 +39,14 @@ void ros_trace_rcl_publisher_init(const char * node_name, const char * node_name
|
|||
void ros_trace_rcl_subscription_init(const char * node_name, const char * topic_name);
|
||||
|
||||
/**
|
||||
* tp: rclcpp_callback_start
|
||||
* tp: rclcpp_subscription_callback_start
|
||||
*/
|
||||
void ros_trace_rclcpp_callback_start(const void * callback, const bool is_intra_process);
|
||||
void ros_trace_rclcpp_subscription_callback_start(const void * callback, const bool is_intra_process);
|
||||
|
||||
/**
|
||||
* tp: rclcpp_callback_end
|
||||
* tp: rclcpp_subscription_callback_end
|
||||
*/
|
||||
void ros_trace_rclcpp_callback_end(const void * callback);
|
||||
void ros_trace_rclcpp_subscription_callback_end(const void * callback);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ TRACEPOINT_EVENT(
|
|||
|
||||
TRACEPOINT_EVENT(
|
||||
ros2,
|
||||
rclcpp_callback_start,
|
||||
rclcpp_subscription_callback_start,
|
||||
TP_ARGS(
|
||||
const void*, callback_arg,
|
||||
int, is_intra_process_arg
|
||||
|
@ -65,7 +65,7 @@ TRACEPOINT_EVENT(
|
|||
|
||||
TRACEPOINT_EVENT(
|
||||
ros2,
|
||||
rclcpp_callback_end,
|
||||
rclcpp_subscription_callback_end,
|
||||
TP_ARGS(
|
||||
const void*, callback_arg
|
||||
),
|
||||
|
|
|
@ -6,8 +6,8 @@ for event in \
|
|||
ros2:rcl_node_init \
|
||||
ros2:rcl_publisher_init \
|
||||
ros2:rcl_subscription_init \
|
||||
ros2:rclcpp_callback_start \
|
||||
ros2:rclcpp_callback_end
|
||||
ros2:rclcpp_subscription_callback_start \
|
||||
ros2:rclcpp_subscription_callback_end
|
||||
do
|
||||
lttng enable-event -c ros2 -u $event
|
||||
done
|
||||
|
|
|
@ -42,16 +42,16 @@ void ros_trace_rcl_subscription_init(const char * node_name, const char * topic_
|
|||
#endif
|
||||
}
|
||||
|
||||
void ros_trace_rclcpp_callback_start(const void * callback, const bool is_intra_process)
|
||||
void ros_trace_rclcpp_subscription_callback_start(const void * callback, const bool is_intra_process)
|
||||
{
|
||||
#ifdef WITH_LTTNG
|
||||
tracepoint(ros2, rclcpp_callback_start, callback, (is_intra_process ? 1 : 0));
|
||||
tracepoint(ros2, rclcpp_subscription_callback_start, callback, (is_intra_process ? 1 : 0));
|
||||
#endif
|
||||
}
|
||||
|
||||
void ros_trace_rclcpp_callback_end(const void * callback)
|
||||
void ros_trace_rclcpp_subscription_callback_end(const void * callback)
|
||||
{
|
||||
#ifdef WITH_LTTNG
|
||||
tracepoint(ros2, rclcpp_callback_end, callback);
|
||||
tracepoint(ros2, rclcpp_subscription_callback_end, callback);
|
||||
#endif
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue