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 | |
53569322 | 9 | |
c2c72dde | 10 | #if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
53569322 MD |
11 | #define _TRACEPOINT_UST_TESTS_HELLO_H |
12 | ||
53569322 | 13 | #include <lttng/tracepoint.h> |
b4051ad8 | 14 | #include <stddef.h> |
53569322 MD |
15 | #include <stdbool.h> |
16 | ||
7f2f82c3 | 17 | LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest, |
cadfcbfc | 18 | LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values, |
53569322 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(long, arrfield1, values, 3) |
29 | lttng_ust_field_array_text(char, arrfield2, text, 10) | |
1d188af9 | 30 | lttng_ust_field_sequence(char, seqfield1, text, |
53569322 | 31 | size_t, textlen) |
1d188af9 | 32 | lttng_ust_field_sequence_text(char, seqfield2, text, |
53569322 | 33 | size_t, textlen) |
3202f63a | 34 | lttng_ust_field_string(stringfield, text) |
891226fc MJ |
35 | lttng_ust_field_float(float, floatfield, floatarg) |
36 | lttng_ust_field_float(double, doublefield, doublearg) | |
b4064f28 MJ |
37 | lttng_ust_field_integer(bool, boolfield, boolarg) |
38 | lttng_ust_field_integer_nowrite(int, filterfield, anint) | |
53569322 MD |
39 | ) |
40 | ) | |
41 | ||
7f2f82c3 | 42 | LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler, |
cadfcbfc | 43 | LTTNG_UST_TP_ARGS(), |
efa14d16 | 44 | LTTNG_UST_TP_FIELDS() |
53569322 MD |
45 | ) |
46 | ||
47 | #endif /* _TRACEPOINT_UST_TESTS_HELLO_H */ | |
48 | ||
bb71a8ea MJ |
49 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
50 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_tests_hello.h" | |
53569322 MD |
51 | |
52 | /* This part must be outside ifdef protection */ | |
53 | #include <lttng/tracepoint-event.h> |