Skip to content

Commit 7d4f6b1

Browse files
micro-ROS rolling Library auto-update 23-02-2023 06:19 (#1301)
Co-authored-by: pablogs9 <[email protected]>
1 parent b99bbda commit 7d4f6b1

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

built_packages

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ https://github.com/ros2/ament_cmake_ros.git ede6248e1f36aaef85eb4eac23c782a134ef
1919
https://github.com/ros2/common_interfaces.git 4bac182a0a582b5e6b784d9fa9f0dabc1aca4d35
2020
https://github.com/ros2/example_interfaces.git 58899de0f85388be333e32bcb78c551a6877db4d
2121
https://github.com/ros2/libyaml_vendor.git 0c814892fe8c31aeb20688a8b43906aeefda015e
22-
https://github.com/ros2/rcl.git fcabfaca94809627aefc1bd1c290e2a07a859492
22+
https://github.com/ros2/rcl.git d15594effa63065a19a9f69960ea80f5ac5be8bd
2323
https://github.com/ros2/rcl_interfaces.git 0aa89223ab92fc028173047a2ba3d987b0f01f71
2424
https://github.com/ros2/rcl_logging.git cdef749a304f734ba275f8466a4883db6400dc75
2525
https://github.com/ros2/rclc 3b4ff9e46ad63ca08a1131760a86b0f42c2bba63
@@ -33,4 +33,4 @@ https://github.com/ros2/rosidl_defaults.git 34a204f3ce0528c6ec3bb89d33404422eb87
3333
https://github.com/ros2/test_interface_files.git 3abbbf68d939cac86e53992b68ee93f9a37fff41
3434
https://github.com/ros2/unique_identifier_msgs.git 1ced881f07e5d5744d01867b1caedbc13c856195
3535
https://github.com/yaml/libyaml.git 2c891fc7a770e8ba2fec34fc6b545c672beb37e6
36-
https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git/ e7a9669589b33fbab579007e5022da332a6bbf42
36+
https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git/ 80961966934357384e98ebea6a61150032d27a40

src/tracetools/tracetools.h

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,31 @@
4848
(ros_trace_ ## event_name)()
4949
# define _TRACEPOINT_ARGS(event_name, ...) \
5050
(ros_trace_ ## event_name)(__VA_ARGS__)
51+
# define _DO_TRACEPOINT_NOARGS(event_name) \
52+
(ros_trace_do_ ## event_name)()
53+
# define _DO_TRACEPOINT_ARGS(event_name, ...) \
54+
(ros_trace_do_ ## event_name)(__VA_ARGS__)
5155
# define _DECLARE_TRACEPOINT_NOARGS(event_name) \
52-
TRACETOOLS_PUBLIC void ros_trace_ ## event_name();
56+
TRACETOOLS_PUBLIC void ros_trace_ ## event_name(); \
57+
TRACETOOLS_PUBLIC bool ros_trace_enabled_ ## event_name(); \
58+
TRACETOOLS_PUBLIC void ros_trace_do_ ## event_name();
5359
# define _DECLARE_TRACEPOINT_ARGS(event_name, ...) \
54-
TRACETOOLS_PUBLIC void ros_trace_ ## event_name(__VA_ARGS__);
60+
TRACETOOLS_PUBLIC void ros_trace_ ## event_name(__VA_ARGS__); \
61+
TRACETOOLS_PUBLIC bool ros_trace_enabled_ ## event_name(); \
62+
TRACETOOLS_PUBLIC void ros_trace_do_ ## event_name(__VA_ARGS__);
5563

5664
# define _GET_MACRO_TRACEPOINT(...) \
5765
_GET_MACRO( \
5866
__VA_ARGS__, \
5967
_TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, \
6068
_TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_ARGS, _TRACEPOINT_NOARGS, \
6169
shoud_not_be_called_without_any_arguments)
70+
# define _GET_MACRO_DO_TRACEPOINT(...) \
71+
_GET_MACRO( \
72+
__VA_ARGS__, \
73+
_DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, \
74+
_DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_ARGS, \
75+
_DO_TRACEPOINT_ARGS, _DO_TRACEPOINT_NOARGS, shoud_not_be_called_without_any_arguments)
6276
# define _GET_MACRO_DECLARE_TRACEPOINT(...) \
6377
_GET_MACRO( \
6478
__VA_ARGS__, \
@@ -77,10 +91,16 @@
7791
*/
7892
# define TRACEPOINT(...) \
7993
_GET_MACRO_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__)
94+
# define TRACEPOINT_ENABLED(event_name) \
95+
ros_trace_enabled_ ## event_name()
96+
# define DO_TRACEPOINT(...) \
97+
_GET_MACRO_DO_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__)
8098
# define DECLARE_TRACEPOINT(...) \
8199
_GET_MACRO_DECLARE_TRACEPOINT(__VA_ARGS__)(__VA_ARGS__)
82100
#else
83101
# define TRACEPOINT(...) ((void) (0))
102+
# define TRACEPOINT_ENABLED(event_name) false
103+
# define DO_TRACEPOINT(...) ((void) (0))
84104
# define DECLARE_TRACEPOINT(...)
85105
#endif // TRACETOOLS_DISABLED
86106

0 commit comments

Comments
 (0)