include: implement REUSE with SPDX identifiers
[lttng-ust.git] / include / lttng / ust-tracepoint-event-write.h
CommitLineData
1c196845
MJ
1// SPDX-FileCopyrightText: 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: MIT
4774c8f3 4
b4064f28
MJ
5#undef lttng_ust_field_integer
6#define lttng_ust_field_integer(_type, _item, _src) \
7 lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BYTE_ORDER, 10, 0)
4774c8f3 8
b4064f28
MJ
9#undef lttng_ust_field_integer_hex
10#define lttng_ust_field_integer_hex(_type, _item, _src) \
11 lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BYTE_ORDER, 16, 0)
4774c8f3 12
b4064f28
MJ
13#undef lttng_ust_field_integer_network
14#define lttng_ust_field_integer_network(_type, _item, _src) \
15 lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, 10, 0)
4774c8f3 16
b4064f28
MJ
17#undef lttng_ust_field_integer_network_hex
18#define lttng_ust_field_integer_network_hex(_type, _item, _src) \
19 lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, 16, 0)
4774c8f3 20
891226fc
MJ
21#undef lttng_ust_field_float
22#define lttng_ust_field_float(_type, _item, _src) \
23 lttng_ust__field_float(_type, _item, _src, 0)
4774c8f3 24
10937ee5
MJ
25#undef lttng_ust_field_array
26#define lttng_ust_field_array(_type, _item, _src, _length) \
27 lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5
MD
28 _length, none, 0, 10)
29
10937ee5
MJ
30#undef lttng_ust_field_array_hex
31#define lttng_ust_field_array_hex(_type, _item, _src, _length) \
32 lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5
MD
33 _length, none, 0, 16)
34
10937ee5
MJ
35#undef lttng_ust_field_array_network
36#define lttng_ust_field_array_network(_type, _item, _src, _length) \
37 lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f3ec4cb5
MD
38 _length, none, 0, 10)
39
10937ee5
MJ
40#undef lttng_ust_field_array_network_hex
41#define lttng_ust_field_array_network_hex(_type, _item, _src, _length) \
42 lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f3ec4cb5 43 _length, none, 0, 16)
4774c8f3 44
10937ee5
MJ
45#undef lttng_ust_field_array_text
46#define lttng_ust_field_array_text(_type, _item, _src, _length) \
47 lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5 48 _length, UTF8, 0, 10)
4774c8f3 49
1d188af9
MJ
50#undef lttng_ust_field_sequence
51#define lttng_ust_field_sequence(_type, _item, _src, _length_type, _src_length) \
52 lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f968510a
PP
53 _length_type, _src_length, none, 0, 10)
54
1d188af9
MJ
55#undef lttng_ust_field_sequence_hex
56#define lttng_ust_field_sequence_hex(_type, _item, _src, _length_type, _src_length) \
57 lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
48d660d1
MD
58 _length_type, _src_length, none, 0, 16)
59
1d188af9
MJ
60#undef lttng_ust_field_sequence_network
61#define lttng_ust_field_sequence_network(_type, _item, _src, _length_type, _src_length) \
62 lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
48d660d1
MD
63 _length_type, _src_length, none, 0, 10)
64
1d188af9
MJ
65#undef lttng_ust_field_sequence_network_hex
66#define lttng_ust_field_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
67 lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f968510a 68 _length_type, _src_length, none, 0, 16)
4774c8f3 69
1d188af9
MJ
70#undef lttng_ust_field_sequence_text
71#define lttng_ust_field_sequence_text(_type, _item, _src, _length_type, _src_length) \
72 lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f968510a 73 _length_type, _src_length, UTF8, 0, 10)
4774c8f3 74
3202f63a
MJ
75#undef lttng_ust_field_string
76#define lttng_ust_field_string(_item, _src) \
77 lttng_ust__field_string(_item, _src, 0)
c785c634 78
ddde62ca
MJ
79#undef lttng_ust_field_unused
80#define lttng_ust_field_unused(_src) \
81 lttng_ust__field_unused(_src)
5152f6df 82
78684808
MJ
83#undef lttng_ust_field_enum
84#define lttng_ust_field_enum(_provider, _name, _type, _item, _src) \
85 lttng_ust__field_enum(_provider, _name, _type, _item, _src, 0)
This page took 0.037556 seconds and 4 git commands to generate.