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(TRACEPOINT_PROVIDER, __VA_ARGS__)
26#else
27#define CONDITIONAL_TP(...)
28#endif
29
30void TRACEPOINT(spinOnce) { CONDITIONAL_TP(spinOnce); }
31
32void TRACEPOINT(smacc2_event, const char * event_type) { CONDITIONAL_TP(smacc2_event, event_type); }
33
34void TRACEPOINT(smacc2_state_update_start, const char * updatable_element_name)
35{
36 CONDITIONAL_TP(smacc2_state_update_start, updatable_element_name);
37}
38
39void TRACEPOINT(smacc2_state_update_end, const char * updatable_element_name)
40{
41 CONDITIONAL_TP(smacc2_state_update_end, updatable_element_name);
42}
43
45{
47}
48
50{
52}
53
55{
57}
58
60{
62}
63
65{
67}
68
70{
72}
73
76 const char * client_behavior_name)
77{
80}
81
84 const char * client_behavior_name)
85{
88}
89
92 const char * client_behavior_name)
93{
96}
97
100 const char * client_behavior_name)
101{
104}
void TRACEPOINT(spinOnce)
#define CONDITIONAL_TP(...)
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