test and fix array, sequence, string
[lttng-ust.git] / tests / hello / ust_tests_hello.h
1 #undef TRACEPOINT_SYSTEM
2 #define TRACEPOINT_SYSTEM ust_tests_hello
3
4 #if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5 #define _TRACEPOINT_UST_TESTS_HELLO_H
6
7 /*
8 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 *
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24
25 #include <ust/tracepoint.h>
26
27 TRACEPOINT_EVENT(ust_tests_hello_tptest,
28 TP_PROTO(int anint, long *values,
29 char *text, size_t textlen),
30 TP_ARGS(anint, values, text, textlen),
31 TP_FIELDS(
32 ctf_integer(int, intfield, anint)
33 ctf_integer_hex(int, intfield2, anint)
34 ctf_integer_network(int, intfield3, anint)
35 ctf_integer_network_hex(int, intfield4, anint)
36 ctf_array(long, arrfield1, values, 3)
37 ctf_array_text(char, arrfield2, text, 10)
38 ctf_sequence(char, seqfield1, text,
39 size_t, textlen)
40 ctf_sequence_text(char, seqfield2, text,
41 size_t, textlen)
42 ctf_string(stringfield, text)
43 ))
44
45 TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler,
46 TP_FIELDS())
47
48 #endif /* _TRACEPOINT_TP_H */
49
50 #undef TRACEPOINT_INCLUDE_PATH
51 #define TRACEPOINT_INCLUDE_PATH .
52 #undef TRACEPOINT_INCLUDE_FILE
53 #define TRACEPOINT_INCLUDE_FILE ust_tests_hello
54
55 /* This part must be outside protection */
56 #include <ust/tracepoint-event.h>
This page took 0.032306 seconds and 5 git commands to generate.