Merge branch 'refactor-tracepoint-interface' into 'master'
Move some parameter handling to tracepoint definition file See merge request micro-ROS/ros_tracing/ros2_tracing!124
This commit is contained in:
commit
f5e83e0615
2 changed files with 7 additions and 8 deletions
|
@ -29,17 +29,17 @@
|
|||
#include <lttng/tracepoint.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
TRACEPOINT_EVENT(
|
||||
TRACEPOINT_PROVIDER,
|
||||
rcl_init,
|
||||
TP_ARGS(
|
||||
const void *, context_handle_arg,
|
||||
const char *, version_arg
|
||||
const void *, context_handle_arg
|
||||
),
|
||||
TP_FIELDS(
|
||||
ctf_integer_hex(const void *, context_handle, context_handle_arg)
|
||||
ctf_string(version, version_arg)
|
||||
ctf_string(version, tracetools_VERSION)
|
||||
)
|
||||
)
|
||||
|
||||
|
@ -215,11 +215,11 @@ TRACEPOINT_EVENT(
|
|||
callback_start,
|
||||
TP_ARGS(
|
||||
const void *, callback_arg,
|
||||
int, is_intra_process_arg
|
||||
const bool, is_intra_process_arg
|
||||
),
|
||||
TP_FIELDS(
|
||||
ctf_integer_hex(const void *, callback, callback_arg)
|
||||
ctf_integer(int, is_intra_process, is_intra_process_arg)
|
||||
ctf_integer(int, is_intra_process, (is_intra_process_arg ? 1 : 0))
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
@ -47,8 +47,7 @@ void TRACEPOINT(
|
|||
{
|
||||
CONDITIONAL_TP(
|
||||
rcl_init,
|
||||
context_handle,
|
||||
tracetools_VERSION);
|
||||
context_handle);
|
||||
}
|
||||
|
||||
void TRACEPOINT(
|
||||
|
@ -204,7 +203,7 @@ void TRACEPOINT(
|
|||
CONDITIONAL_TP(
|
||||
callback_start,
|
||||
callback,
|
||||
(is_intra_process ? 1 : 0));
|
||||
is_intra_process);
|
||||
}
|
||||
|
||||
void TRACEPOINT(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue