Add *subscription_callback_added and link subscription_handle to rcl_subscription_init
This commit is contained in:
parent
922ba77f97
commit
b09f72081c
3 changed files with 34 additions and 1 deletions
|
@ -45,9 +45,18 @@ void TRACEPOINT(
|
||||||
*/
|
*/
|
||||||
void TRACEPOINT(
|
void TRACEPOINT(
|
||||||
rcl_subscription_init,
|
rcl_subscription_init,
|
||||||
|
const void * subscription_handle,
|
||||||
const char * node_name,
|
const char * node_name,
|
||||||
const char * topic_name);
|
const char * topic_name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* tp: rclcpp_subscription_callback_added
|
||||||
|
*/
|
||||||
|
void TRACEPOINT(
|
||||||
|
rclcpp_subscription_callback_added,
|
||||||
|
const void * subscription_handle,
|
||||||
|
const void * callback);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tp: rclcpp_subscription_callback_start
|
* tp: rclcpp_subscription_callback_start
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -41,15 +41,30 @@ TRACEPOINT_EVENT(
|
||||||
ros2,
|
ros2,
|
||||||
rcl_subscription_init,
|
rcl_subscription_init,
|
||||||
TP_ARGS(
|
TP_ARGS(
|
||||||
|
const void*, subscription_handle_arg,
|
||||||
const char*, node_name_arg,
|
const char*, node_name_arg,
|
||||||
const char*, topic_name_arg
|
const char*, topic_name_arg
|
||||||
),
|
),
|
||||||
TP_FIELDS(
|
TP_FIELDS(
|
||||||
|
ctf_integer_hex(const void*, subscription_handle, subscription_handle_arg)
|
||||||
ctf_string(node_name, node_name_arg)
|
ctf_string(node_name, node_name_arg)
|
||||||
ctf_string(topic_name, topic_name_arg)
|
ctf_string(topic_name, topic_name_arg)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
TRACEPOINT_EVENT(
|
||||||
|
ros2,
|
||||||
|
rclcpp_subscription_callback_added,
|
||||||
|
TP_ARGS(
|
||||||
|
const void*, subscription_handle_arg,
|
||||||
|
const void*, callback_arg
|
||||||
|
),
|
||||||
|
TP_FIELDS(
|
||||||
|
ctf_integer_hex(const void*, subscription_handle, subscription_handle_arg)
|
||||||
|
ctf_integer_hex(const void*, callback, callback_arg)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
TRACEPOINT_EVENT(
|
TRACEPOINT_EVENT(
|
||||||
ros2,
|
ros2,
|
||||||
rclcpp_subscription_callback_start,
|
rclcpp_subscription_callback_start,
|
||||||
|
|
|
@ -42,10 +42,19 @@ void TRACEPOINT(
|
||||||
|
|
||||||
void TRACEPOINT(
|
void TRACEPOINT(
|
||||||
rcl_subscription_init,
|
rcl_subscription_init,
|
||||||
|
const void * subscription_handle,
|
||||||
const char * node_name,
|
const char * node_name,
|
||||||
const char * topic_name)
|
const char * topic_name)
|
||||||
{
|
{
|
||||||
CONDITIONAL_TP(ros2, rcl_subscription_init, node_name, topic_name);
|
CONDITIONAL_TP(ros2, rcl_subscription_init, subscription_handle, node_name, topic_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
void TRACEPOINT(
|
||||||
|
rclcpp_subscription_callback_added,
|
||||||
|
const void * subscription_handle,
|
||||||
|
const void * callback)
|
||||||
|
{
|
||||||
|
CONDITIONAL_TP(ros2, rclcpp_subscription_callback_added, subscription_handle, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TRACEPOINT(
|
void TRACEPOINT(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue