Add depth field to rcl_publisher_init tracepoint

This commit is contained in:
Christophe Bedard 2019-05-27 15:19:11 +02:00
parent 56ee174ef1
commit 5ee44035d4
3 changed files with 8 additions and 4 deletions

View file

@ -43,7 +43,8 @@ void TRACEPOINT(
const void * node_handle, const void * node_handle,
const void * rmw_handle, const void * rmw_handle,
const void * publisher_handle, const void * publisher_handle,
const char * topic_name); const char * topic_name,
const size_t depth);
/** /**
* tp: rcl_subscription_init * tp: rcl_subscription_init

View file

@ -35,13 +35,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 *, publisher_handle_arg, const void *, publisher_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 *, publisher_handle, publisher_handle_arg) ctf_integer_hex(const void *, publisher_handle, publisher_handle_arg)
ctf_string(topic_name, topic_name_arg) ctf_string(topic_name, topic_name_arg)
ctf_integer(const size_t, depth, depth_arg)
) )
) )

View file

@ -40,9 +40,10 @@ void TRACEPOINT(
const void * node_handle, const void * node_handle,
const void * rmw_handle, const void * rmw_handle,
const void * publisher_handle, const void * publisher_handle,
const char * topic_name) const char * topic_name,
const size_t depth)
{ {
CONDITIONAL_TP(ros2, rcl_publisher_init, node_handle, rmw_handle, publisher_handle, topic_name); CONDITIONAL_TP(ros2, rcl_publisher_init, node_handle, rmw_handle, publisher_handle, topic_name, depth);
} }
void TRACEPOINT( void TRACEPOINT(