ff30759dd1e33802a744c8e1635836ab950c2a90
[lttng-modules.git] / probes / lttng-events-nowrite.h
1 /*
2 * lttng-events-write.h
3 *
4 * Copyright (C) 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; only
9 * version 2.1 of the License.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20
21 #undef ctf_integer_nowrite
22 #define ctf_integer_nowrite(_type, _item, _user_src) \
23 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 0, 1)
24
25 #undef ctf_integer_hex_nowrite
26 #define ctf_integer_hex_nowrite(_type, _item, _user_src) \
27 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 0, 1)
28
29 #undef ctf_integer_oct_nowrite
30 #define ctf_integer_oct_nowrite(_type, _item, _user_src) \
31 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 8, 0, 1)
32
33 #undef ctf_integer_network_nowrite
34 #define ctf_integer_network_nowrite(_type, _item, _user_src) \
35 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 0, 1)
36
37 #undef ctf_integer_network_hex_nowrite
38 #define ctf_integer_network_hex_nowrite(_type, _item, _user_src) \
39 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 0, 1)
40
41 #undef ctf_array_nowrite
42 #define ctf_array_nowrite(_type, _item, _user_src, _length) \
43 _ctf_array_encoded(_type, _item, _user_src, _length, none, 0, 1)
44
45 #undef ctf_array_text_nowrite
46 #define ctf_array_text_nowrite(_type, _item, _user_src, _length) \
47 _ctf_array_encoded(_type, _item, _user_src, _length, UTF8, 0, 1)
48
49 #undef ctf_array_bitfield_nowrite
50 #define ctf_array_bitfield_nowrite(_type, _item, _src, _length) \
51 _ctf_array_bitfield(_type, _item, _src, _length, 0, 1)
52
53 #undef ctf_sequence_nowrite
54 #define ctf_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
55 _ctf_sequence_encoded(_type, _item, _user_src, \
56 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 0, 1)
57
58 #undef ctf_sequence_text_nowrite
59 #define ctf_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
60 _ctf_sequence_encoded(_type, _item, _user_src, \
61 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 0, 1)
62
63 #undef ctf_sequence_bitfield_nowrite
64 #define ctf_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
65 _ctf_sequence_bitfield(_type, _item, _src, \
66 _length_type, _src_length, 0, 1)
67
68 #undef ctf_string_nowrite
69 #define ctf_string_nowrite(_item, _user_src) \
70 _ctf_string(_item, _user_src, 0, 1)
71
72 #undef ctf_enum_nowrite
73 #define ctf_enum_nowrite(_name, _type, _item, _src) \
74 _ctf_enum(_name, _type, _item, _src, 0, 1)
75
76 /* user src */
77 #undef ctf_user_integer_nowrite
78 #define ctf_user_integer_nowrite(_type, _item, _user_src) \
79 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 10, 1, 1)
80
81 #undef ctf_user_integer_hex_nowrite
82 #define ctf_user_integer_hex_nowrite(_type, _item, _user_src) \
83 _ctf_integer_ext(_type, _item, _user_src, __BYTE_ORDER, 16, 1, 1)
84
85 #undef ctf_user_integer_network_nowrite
86 #define ctf_user_integer_network_nowrite(_type, _item, _user_src) \
87 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 10, 1, 1)
88
89 #undef ctf_user_integer_network_hex_nowrite
90 #define ctf_user_integer_network_hex_nowrite(_type, _item, _user_src) \
91 _ctf_integer_ext(_type, _item, _user_src, __BIG_ENDIAN, 16, 1, 1)
92
93 #undef ctf_user_array_nowrite
94 #define ctf_user_array_nowrite(_type, _item, _user_src, _length) \
95 _ctf_array_encoded(_type, _item, _user_src, _length, none, 1, 1)
96
97 #undef ctf_user_array_text_nowrite
98 #define ctf_user_array_text_nowrite(_type, _item, _user_src, _length) \
99 _ctf_array_encoded(_type, _item, _user_src, _length, UTF8, 1, 1)
100
101 #undef ctf_user_array_bitfield_nowrite
102 #define ctf_user_array_bitfield_nowrite(_type, _item, _src, _length) \
103 _ctf_array_bitfield(_type, _item, _src, _length, 1, 1)
104
105 #undef ctf_user_sequence_nowrite
106 #define ctf_user_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
107 _ctf_sequence_encoded(_type, _item, _user_src, \
108 _length_type, _user_src_length, none, __BYTE_ORDER, 10, 1, 1)
109
110 #undef ctf_user_sequence_text_nowrite
111 #define ctf_user_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
112 _ctf_sequence_encoded(_type, _item, _user_src, \
113 _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 1, 1)
114
115 #undef ctf_user_sequence_bitfield_nowrite
116 #define ctf_user_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) \
117 _ctf_sequence_bitfield(_type, _item, _src, \
118 _length_type, _src_length, 1, 1)
119
120 #undef ctf_user_string_nowrite
121 #define ctf_user_string_nowrite(_item, _user_src) \
122 _ctf_string(_item, _user_src, 1, 1)
123
124 #undef ctf_user_enum_nowrite
125 #define ctf_user_enum_nowrite(_name, _type, _item, _src) \
126 _ctf_enum(_name, _type, _item, _src, 1, 1)
This page took 0.031287 seconds and 3 git commands to generate.