Commit | Line | Data |
---|---|---|
c0c0989a MJ |
1 | /* |
2 | * SPDX-License-Identifier: MIT | |
3 | * | |
4 | * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
5 | */ | |
6 | ||
5b393d64 MJ |
7 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
8 | #define LTTNG_UST_TRACEPOINT_PROVIDER ust_tests_hello | |
81614639 | 9 | |
c2c72dde | 10 | #if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
41aaf8a5 | 11 | #define _TRACEPOINT_UST_TESTS_HELLO_H |
81614639 | 12 | |
4318ae1b | 13 | #include <lttng/tracepoint.h> |
f121009f | 14 | #include <stdbool.h> |
b4051ad8 | 15 | #include <stddef.h> |
6e71f8c9 | 16 | |
7f2f82c3 | 17 | LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest, |
cadfcbfc | 18 | LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values, |
f121009f MD |
19 | char *, text, size_t, textlen, |
20 | double, doublearg, float, floatarg, | |
21 | bool, boolarg), | |
efa14d16 | 22 | LTTNG_UST_TP_FIELDS( |
b4064f28 MJ |
23 | lttng_ust_field_integer(int, intfield, anint) |
24 | lttng_ust_field_integer_hex(int, intfield2, anint) | |
25 | lttng_ust_field_integer(long, longfield, anint) | |
26 | lttng_ust_field_integer_network(int, netintfield, netint) | |
27 | lttng_ust_field_integer_network_hex(int, netintfieldhex, netint) | |
10937ee5 MJ |
28 | lttng_ust_field_array_nowrite(long, arrfield1z, values, 3) |
29 | lttng_ust_field_array(long, blah, values, 3) | |
30 | lttng_ust_field_array(long, arrfield1, values, 3) | |
31 | lttng_ust_field_array_hex(long, arrfield1_hex, values, 3) | |
32 | lttng_ust_field_array_network(long, arrfield1_network, values, 3) | |
33 | lttng_ust_field_array_network_hex(long, arrfield1_network_hex, values, 3) | |
34 | lttng_ust_field_array_text(char, arrfield2, text, 10) | |
1d188af9 | 35 | lttng_ust_field_sequence(char, seqfield1, text, |
e1eb29be | 36 | size_t, textlen) |
1d188af9 | 37 | lttng_ust_field_sequence_nowrite(char, seqfield1z, text, |
35ebe09b | 38 | size_t, textlen) |
1d188af9 | 39 | lttng_ust_field_sequence_hex(char, seqfield1_hex, text, |
f3ec4cb5 | 40 | size_t, textlen) |
1d188af9 | 41 | lttng_ust_field_sequence_text(char, seqfield2, text, |
e1eb29be | 42 | size_t, textlen) |
1d188af9 | 43 | lttng_ust_field_sequence_network(long, seqfield_network_3, values, |
48d660d1 | 44 | size_t, 3) |
3202f63a | 45 | lttng_ust_field_string(stringfield, text) |
891226fc MJ |
46 | lttng_ust_field_float(float, floatfield, floatarg) |
47 | lttng_ust_field_float(double, doublefield, doublearg) | |
b4064f28 MJ |
48 | lttng_ust_field_integer(bool, boolfield, boolarg) |
49 | lttng_ust_field_integer_nowrite(int, filterfield, anint) | |
e1eb29be MD |
50 | ) |
51 | ) | |
81614639 | 52 | |
7f2f82c3 | 53 | LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler, |
cadfcbfc | 54 | LTTNG_UST_TP_ARGS(), |
efa14d16 | 55 | LTTNG_UST_TP_FIELDS() |
e1eb29be | 56 | ) |
81614639 | 57 | |
d13aca5c | 58 | #endif /* _TRACEPOINT_UST_TESTS_HELLO_H */ |
81614639 | 59 | |
bb71a8ea MJ |
60 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
61 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_tests_hello.h" | |
ad5c7b82 | 62 | |
0f6c5917 | 63 | /* This part must be outside ifdef protection */ |
4318ae1b | 64 | #include <lttng/tracepoint-event.h> |