SMACC2
Loading...
Searching...
No Matches
smacc_tracing.cpp
Go to the documentation of this file.
1// Copyright 2021 RobosoftAI Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15/*****************************************************************************************************************
16 *
17 * Authors: Pablo Inigo Blasco, Brett Aldrich
18 *
19 ******************************************************************************************************************/
20
22
23#ifdef TRACETOOLS_LTTNG_ENABLED
25#define CONDITIONAL_TP(...) tracepoint(TRACETOOLS_TRACEPOINT_PROVIDER, __VA_ARGS__)
26#else
27#define CONDITIONAL_TP(...)
28#endif
29
31
32void ros_trace_smacc2_event(const char * event_type) { CONDITIONAL_TP(smacc2_event, event_type); }
33
34void ros_trace_smacc2_state_update_start(const char * updatable_element_name)
35{
36 CONDITIONAL_TP(smacc2_state_update_start, updatable_element_name);
37}
38
39void ros_trace_smacc2_state_update_end(const char * updatable_element_name)
40{
41 CONDITIONAL_TP(smacc2_state_update_end, updatable_element_name);
42}
43
48
53
58
63
68
73
75 const char * state_name, const char * orthogonal_name, const char * client_behavior_name)
76{
79}
80
82 const char * state_name, const char * orthogonal_name, const char * client_behavior_name)
83{
86}
87
89 const char * state_name, const char * orthogonal_name, const char * client_behavior_name)
90{
93}
94
96 const char * state_name, const char * orthogonal_name, const char * client_behavior_name)
97{
100}
void ros_trace_smacc2_client_behavior_on_exit_end(const char *state_name, const char *orthogonal_name, const char *client_behavior_name)
void ros_trace_smacc2_event(const char *event_type)
void ros_trace_smacc2_client_behavior_on_entry_start(const char *state_name, const char *orthogonal_name, const char *client_behavior_name)
void ros_trace_spinOnce()
void ros_trace_smacc2_state_onRuntimeConfigure_start(const char *state_name)
void ros_trace_smacc2_state_update_start(const char *updatable_element_name)
void ros_trace_smacc2_client_behavior_on_exit_start(const char *state_name, const char *orthogonal_name, const char *client_behavior_name)
void ros_trace_smacc2_client_behavior_on_entry_end(const char *state_name, const char *orthogonal_name, const char *client_behavior_name)
void ros_trace_smacc2_state_onEntry_end(const char *state_name)
void ros_trace_smacc2_state_onExit_end(const char *state_name)
void ros_trace_smacc2_state_onExit_start(const char *state_name)
void ros_trace_smacc2_state_onEntry_start(const char *state_name)
#define CONDITIONAL_TP(...)
void ros_trace_smacc2_state_onRuntimeConfigure_end(const char *state_name)
void ros_trace_smacc2_state_update_end(const char *updatable_element_name)
const char * state_name
const char const char * orthogonal_name
smacc2_state_update_start
smacc2_state_onExit_end
smacc2_state_onRuntimeConfigure_start
smacc2_state_onEntry_end
smacc2_client_behavior_on_exit_end
smacc2_state_onRuntimeConfigure_end
smacc2_client_behavior_on_exit_start
smacc2_state_onEntry_start
smacc2_event
smacc2_client_behavior_on_entry_start
smacc2_state_onExit_start
smacc2_state_update_end
smacc2_client_behavior_on_entry_end