Tracepoint API namespacing ctf_float
[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
MD
26
27#undef ctf_array
28#define ctf_array(_type, _item, _src, _length) \
baa8acf3 29 _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5
MD
30 _length, none, 0, 10)
31
32#undef ctf_array_hex
33#define ctf_array_hex(_type, _item, _src, _length) \
baa8acf3 34 _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5
MD
35 _length, none, 0, 16)
36
37#undef ctf_array_network
38#define ctf_array_network(_type, _item, _src, _length) \
baa8acf3 39 _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f3ec4cb5
MD
40 _length, none, 0, 10)
41
42#undef ctf_array_network_hex
43#define ctf_array_network_hex(_type, _item, _src, _length) \
baa8acf3 44 _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f3ec4cb5 45 _length, none, 0, 16)
4774c8f3
MD
46
47#undef ctf_array_text
48#define ctf_array_text(_type, _item, _src, _length) \
baa8acf3 49 _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f3ec4cb5 50 _length, UTF8, 0, 10)
4774c8f3
MD
51
52#undef ctf_sequence
53#define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
baa8acf3 54 _ctf_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f968510a
PP
55 _length_type, _src_length, none, 0, 10)
56
57#undef ctf_sequence_hex
58#define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
baa8acf3 59 _ctf_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
48d660d1
MD
60 _length_type, _src_length, none, 0, 16)
61
62#undef ctf_sequence_network
63#define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
baa8acf3 64 _ctf_sequence_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
48d660d1
MD
65 _length_type, _src_length, none, 0, 10)
66
67#undef ctf_sequence_network_hex
68#define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
baa8acf3 69 _ctf_sequence_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
f968510a 70 _length_type, _src_length, none, 0, 16)
4774c8f3
MD
71
72#undef ctf_sequence_text
73#define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
baa8acf3 74 _ctf_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
f968510a 75 _length_type, _src_length, UTF8, 0, 10)
4774c8f3
MD
76
77#undef ctf_string
78#define ctf_string(_item, _src) \
180901e6 79 _ctf_string(_item, _src, 0)
c785c634 80
5152f6df
MJ
81#undef ctf_unused
82#define ctf_unused(_src) \
83 _ctf_unused(_src)
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.039656 seconds and 4 git commands to generate.