APM:Libraries
Perf_Lttng_TracePoints.h
Go to the documentation of this file.
1 /*
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License as published by
4  the Free Software Foundation, either version 3 of the License, or
5  (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program. If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #undef TRACEPOINT_PROVIDER
17 #define TRACEPOINT_PROVIDER ardupilot
18 
19 #undef TRACEPOINT_INCLUDE
20 #define TRACEPOINT_INCLUDE <AP_HAL_Linux/Perf_Lttng_TracePoints.h>
21 
22 #if !defined(_PERF_LTTNG_TRACEPOINT_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
23 #define _PERF_LTTNG_TRACEPOINT_H
24 
25 #include <lttng/tracepoint.h>
26 
28  ardupilot,
29  begin,
30  TP_ARGS(
31  const char*, name_arg
32  ),
33  TP_FIELDS(
34  ctf_string(name_field, name_arg)
35  )
36 )
37 
39  ardupilot,
40  end,
41  TP_ARGS(
42  const char*, name_arg
43  ),
44  TP_FIELDS(
45  ctf_string(name_field, name_arg)
46  )
47 )
48 
50  ardupilot,
52  TP_ARGS(
53  const char*, name_arg,
54  int, count_arg
55  ),
56  TP_FIELDS(
57  ctf_string(name_field, name_arg)
58  ctf_integer(int, count_field, count_arg)
59  )
60 )
61 
62 #endif
63 
64 #include <lttng/tracepoint-event.h>
TRACEPOINT_EVENT(ardupilot, begin, TP_ARGS(const char *, name_arg), TP_FIELDS(ctf_string(name_field, name_arg))) TRACEPOINT_EVENT(ardupilot
TP_ARGS(const char *, name_arg)
TP_FIELDS(ctf_string(name_field, name_arg))) TRACEPOINT_EVENT(ardupilot