Commit | Line | Data |
---|---|---|
8d8a24c8 | 1 | #undef TRACEPOINT_SYSTEM |
41aaf8a5 | 2 | #define TRACEPOINT_SYSTEM ust_tests_hello |
81614639 | 3 | |
41aaf8a5 MD |
4 | #if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
5 | #define _TRACEPOINT_UST_TESTS_HELLO_H | |
81614639 | 6 | |
1ea2c2df MD |
7 | #ifdef __cplusplus |
8 | extern "C" { | |
9 | #endif | |
10 | ||
81614639 MD |
11 | /* |
12 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
a09dac63 PMF |
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 | |
d13aca5c MD |
16 | * License as published by the Free Software Foundation; version 2.1 of |
17 | * the License. | |
a09dac63 PMF |
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 | ||
93d0f2ea | 29 | #include <ust/tracepoint.h> |
6e71f8c9 | 30 | |
8d8a24c8 | 31 | TRACEPOINT_EVENT(ust_tests_hello_tptest, |
e1eb29be MD |
32 | TP_PROTO(int anint, long *values, |
33 | char *text, size_t textlen, | |
34 | double doublearg, float floatarg), | |
35 | TP_ARGS(anint, values, text, textlen, | |
36 | doublearg, floatarg), | |
37 | TP_FIELDS( | |
38 | ctf_integer(int, intfield, anint) | |
39 | ctf_integer_hex(int, intfield2, anint) | |
40 | ctf_integer_network(int, intfield3, anint) | |
41 | ctf_integer_network_hex(int, intfield4, anint) | |
42 | ctf_array(long, arrfield1, values, 3) | |
43 | ctf_array_text(char, arrfield2, text, 10) | |
44 | ctf_sequence(char, seqfield1, text, | |
45 | size_t, textlen) | |
46 | ctf_sequence_text(char, seqfield2, text, | |
47 | size_t, textlen) | |
48 | ctf_string(stringfield, text) | |
49 | ctf_float(float, floatfield, floatarg) | |
50 | ctf_float(double, doublefield, doublearg) | |
51 | ) | |
52 | ) | |
81614639 | 53 | |
8d8a24c8 | 54 | TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler, |
e1eb29be MD |
55 | TP_FIELDS() |
56 | ) | |
81614639 | 57 | |
d13aca5c | 58 | #endif /* _TRACEPOINT_UST_TESTS_HELLO_H */ |
81614639 | 59 | |
8d8a24c8 MD |
60 | #undef TRACEPOINT_INCLUDE_PATH |
61 | #define TRACEPOINT_INCLUDE_PATH . | |
62 | #undef TRACEPOINT_INCLUDE_FILE | |
41aaf8a5 | 63 | #define TRACEPOINT_INCLUDE_FILE ust_tests_hello |
ad5c7b82 | 64 | |
81614639 | 65 | /* This part must be outside protection */ |
8d8a24c8 | 66 | #include <ust/tracepoint-event.h> |
1ea2c2df MD |
67 | |
68 | #ifdef __cplusplus | |
69 | } | |
70 | #endif |