Add history depth to rcl_subscription_init tracepoint
This commit is contained in:
parent
5ee44035d4
commit
eac0db07f8
3 changed files with 8 additions and 4 deletions
|
@ -54,7 +54,8 @@ void TRACEPOINT(
|
||||||
const void * node_handle,
|
const void * node_handle,
|
||||||
const void * rmw_handle,
|
const void * rmw_handle,
|
||||||
const void * subscription_handle,
|
const void * subscription_handle,
|
||||||
const char * topic_name);
|
const char * topic_name,
|
||||||
|
const size_t depth);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tp: rclcpp_subscription_callback_added
|
* tp: rclcpp_subscription_callback_added
|
||||||
|
|
|
@ -54,13 +54,15 @@ TRACEPOINT_EVENT(
|
||||||
const void *, node_handle_arg,
|
const void *, node_handle_arg,
|
||||||
const void *, rmw_handle_arg,
|
const void *, rmw_handle_arg,
|
||||||
const void *, subscription_handle_arg,
|
const void *, subscription_handle_arg,
|
||||||
const char *, topic_name_arg
|
const char *, topic_name_arg,
|
||||||
|
const size_t, depth_arg
|
||||||
),
|
),
|
||||||
TP_FIELDS(
|
TP_FIELDS(
|
||||||
ctf_integer_hex(const void *, node_handle, node_handle_arg)
|
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 *, rmw_handle, rmw_handle_arg)
|
||||||
ctf_integer_hex(const void *, subscription_handle, subscription_handle_arg)
|
ctf_integer_hex(const void *, subscription_handle, subscription_handle_arg)
|
||||||
ctf_string(topic_name, topic_name_arg)
|
ctf_string(topic_name, topic_name_arg)
|
||||||
|
ctf_integer(const size_t, depth, depth_arg)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,10 @@ void TRACEPOINT(
|
||||||
const void * node_handle,
|
const void * node_handle,
|
||||||
const void * rmw_handle,
|
const void * rmw_handle,
|
||||||
const void * subscription_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(
|
void TRACEPOINT(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue