Print compiler warning/runtime warning and truncate too long tracepoint names
[lttng-ust.git] / tests / hello.cxx / ust_tests_demo.h
1 #undef TRACEPOINT_PROVIDER
2 #define TRACEPOINT_PROVIDER ust_tests_demo
3
4 #if !defined(_TRACEPOINT_UST_TESTS_DEMO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5 #define _TRACEPOINT_UST_TESTS_DEMO_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; version 2.1 of
17 * the License.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 */
28
29 #include <lttng/tracepoint.h>
30
31 TRACEPOINT_EVENT(ust_tests_demo, loop,
32 TP_ARGS(int, anint, int, netint, long *, values,
33 char *, text, size_t, textlen,
34 double, doublearg, float, floatarg),
35 TP_FIELDS(
36 ctf_integer(int, intfield, anint)
37 ctf_integer_hex(int, intfield2, anint)
38 ctf_integer(long, longfield, anint)
39 ctf_integer_network(int, netintfield, netint)
40 ctf_integer_network_hex(int, netintfieldhex, netint)
41 ctf_array(long, arrfield1, values, 3)
42 ctf_array_text(char, arrfield2, text, 10)
43 ctf_sequence(char, seqfield1, text,
44 size_t, textlen)
45 ctf_sequence_text(char, seqfield2, text,
46 size_t, textlen)
47 ctf_string(stringfield, text)
48 ctf_float(float, floatfield, floatarg)
49 ctf_float(double, doublefield, doublearg)
50 )
51 )
52
53 TRACEPOINT_EVENT(ust_tests_demo, starting,
54 TP_ARGS(int, value),
55 TP_FIELDS(
56 ctf_integer(int, value, value)
57 )
58 )
59
60 TRACEPOINT_EVENT(ust_tests_demo, done,
61 TP_ARGS(int, value),
62 TP_FIELDS(
63 ctf_integer(int, value, value)
64 )
65 )
66
67 #endif /* _TRACEPOINT_UST_TESTS_DEMO_H */
68
69 #undef TRACEPOINT_INCLUDE_PATH
70 #define TRACEPOINT_INCLUDE_PATH .
71 #undef TRACEPOINT_INCLUDE_FILE
72 #define TRACEPOINT_INCLUDE_FILE ust_tests_demo
73
74 /* This part must be outside ifdef protection */
75 #include <lttng/tracepoint-event.h>
76
77 #ifdef __cplusplus
78 }
79 #endif
This page took 0.030211 seconds and 4 git commands to generate.