include: implement REUSE with SPDX identifiers
[lttng-ust.git] / include / lttng / ust-tracepoint-event-write.h
... / ...
CommitLineData
1// SPDX-FileCopyrightText: 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2//
3// SPDX-License-Identifier: MIT
4
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)
8
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)
12
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)
16
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)
20
21#undef lttng_ust_field_float
22#define lttng_ust_field_float(_type, _item, _src) \
23 lttng_ust__field_float(_type, _item, _src, 0)
24
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, \
28 _length, none, 0, 10)
29
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, \
33 _length, none, 0, 16)
34
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, \
38 _length, none, 0, 10)
39
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, \
43 _length, none, 0, 16)
44
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, \
48 _length, UTF8, 0, 10)
49
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, \
53 _length_type, _src_length, none, 0, 10)
54
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, \
58 _length_type, _src_length, none, 0, 16)
59
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, \
63 _length_type, _src_length, none, 0, 10)
64
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, \
68 _length_type, _src_length, none, 0, 16)
69
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, \
73 _length_type, _src_length, UTF8, 0, 10)
74
75#undef lttng_ust_field_string
76#define lttng_ust_field_string(_item, _src) \
77 lttng_ust__field_string(_item, _src, 0)
78
79#undef lttng_ust_field_unused
80#define lttng_ust_field_unused(_src) \
81 lttng_ust__field_unused(_src)
82
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.022085 seconds and 4 git commands to generate.