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