Add history depth to rcl_subscription_init tracepoint

This commit is contained in:
Christophe Bedard 2019-05-27 16:48:45 +02:00
parent 5ee44035d4
commit eac0db07f8
3 changed files with 8 additions and 4 deletions

View file

@ -54,7 +54,8 @@ void TRACEPOINT(
const void * node_handle,
const void * rmw_handle,
const void * subscription_handle,
const char * topic_name);
const char * topic_name,
const size_t depth);
/**
* tp: rclcpp_subscription_callback_added

View file

@ -54,13 +54,15 @@ TRACEPOINT_EVENT(
const void *, node_handle_arg,
const void *, rmw_handle_arg,
const void *, subscription_handle_arg,
const char *, topic_name_arg
const char *, topic_name_arg,
const size_t, depth_arg
),
TP_FIELDS(
ctf_integer_hex(const void *, node_handle, node_handle_arg)
ctf_integer_hex(const void *, rmw_handle, rmw_handle_arg)
ctf_integer_hex(const void *, subscription_handle, subscription_handle_arg)
ctf_string(topic_name, topic_name_arg)
ctf_integer(const size_t, depth, depth_arg)
)
)

View file

@ -51,9 +51,10 @@ void TRACEPOINT(
const void * node_handle,
const void * rmw_handle,
const void * subscription_handle,
const char * topic_name)
const char * topic_name,
const size_t depth)
{
CONDITIONAL_TP(ros2, rcl_subscription_init, node_handle, rmw_handle, subscription_handle, topic_name);
CONDITIONAL_TP(ros2, rcl_subscription_init, node_handle, rmw_handle, subscription_handle, topic_name, depth);
}
void TRACEPOINT(