SMACC2
trace_provider.hpp
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// the pragma once does not work here
16// #pragma once
17
18/*****************************************************************************************************************
19 *
20 * Authors: Pablo Inigo Blasco, Brett Aldrich
21 *
22 ******************************************************************************************************************/
23
24#undef TRACEPOINT_PROVIDER
25#define TRACEPOINT_PROVIDER ros2
26
27#undef TRACEPOINT_INCLUDE
28#define TRACEPOINT_INCLUDE "smacc2/smacc_tracing/trace_provider.hpp"
29
30#if !defined(_TRACEPOINT_PROVIDER_PROVIDER_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
31#define _TRACEPOINT_PROVIDER_PROVIDER_H
32
33#include <lttng/tracepoint.h>
34
35TRACEPOINT_EVENT(ros2, spinOnce, TP_ARGS(), TP_FIELDS())
36
38 ros2, smacc2_event, TP_ARGS(const char *, event_type),
39 TP_FIELDS(ctf_string(event_type, event_type)))
40
42 ros2, smacc2_state_update_start, TP_ARGS(const char *, updatable_element_name),
43 TP_FIELDS(ctf_string(updatable_element_name, updatable_element_name)))
44
46 ros2, smacc2_state_update_end, TP_ARGS(const char *, updatable_element_name),
47 TP_FIELDS(ctf_string(updatable_element_name, updatable_element_name)))
48
52
56
60
64
68
72
76 const char *, state_name, const char *, orthogonal_name, const char *, client_behavior_name),
78 ctf_string(client_behavior_name, client_behavior_name)))
79
82 TP_ARGS(
83 const char *, state_name, const char *, orthogonal_name, const char *, client_behavior_name),
85 ctf_string(client_behavior_name, client_behavior_name)))
86
89 TP_ARGS(
90 const char *, state_name, const char *, orthogonal_name, const char *, client_behavior_name),
92 ctf_string(client_behavior_name, client_behavior_name)))
93
96 TP_ARGS(
97 const char *, state_name, const char *, orthogonal_name, const char *, client_behavior_name),
99 ctf_string(client_behavior_name, client_behavior_name)))
100
101#endif /* _TRACEPOINT_PROVIDER_PROVIDER_H */
102
103#include <lttng/tracepoint-event.h>
const char * state_name
const char const char * orthogonal_name
smacc2_state_update_start
smacc2_state_onExit_end
smacc2_state_onRuntimeConfigure_start
ctf_string(client_behavior_name, client_behavior_name))) TRACEPOINT_EVENT(ros2
smacc2_state_onEntry_end
smacc2_client_behavior_on_exit_end
smacc2_state_onRuntimeConfigure_end
TRACEPOINT_EVENT(ros2, spinOnce, TP_ARGS(), TP_FIELDS()) TRACEPOINT_EVENT(ros2
smacc2_client_behavior_on_exit_start
smacc2_state_onEntry_start
smacc2_event
TP_FIELDS(ctf_string(event_type, event_type))) TRACEPOINT_EVENT(ros2
smacc2_client_behavior_on_entry_start
TP_ARGS(const char *, event_type)
smacc2_state_onExit_start
smacc2_state_update_end
smacc2_client_behavior_on_entry_end