| 1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
| 2 | * |
| 3 | * lttng-events-reset.h |
| 4 | * |
| 5 | * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 6 | */ |
| 7 | |
| 8 | /* Reset macros used within LTTNG_TRACEPOINT_EVENT to "nothing" */ |
| 9 | |
| 10 | #undef LTTNG_TRACEPOINT_EVENT_CLASS_CODE |
| 11 | #define LTTNG_TRACEPOINT_EVENT_CLASS_CODE(_name, _proto, _args, _locvar, _code_pre, _fields, _code_post) |
| 12 | |
| 13 | #undef LTTNG_TRACEPOINT_EVENT_CLASS_CODE_NOARGS |
| 14 | #define LTTNG_TRACEPOINT_EVENT_CLASS_CODE_NOARGS(_name, _locvar, _code_pre, _fields, _code_post) |
| 15 | |
| 16 | #undef LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP |
| 17 | #define LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(_template, _name, _map, _proto, _args) |
| 18 | |
| 19 | #undef LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP_NOARGS |
| 20 | #define LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP_NOARGS(_template, _name, _map) |
| 21 | |
| 22 | #undef LTTNG_TRACEPOINT_ENUM |
| 23 | #define LTTNG_TRACEPOINT_ENUM(_name, _values) |
| 24 | |
| 25 | #undef TP_PROTO |
| 26 | #define TP_PROTO(args...) |
| 27 | |
| 28 | #undef TP_ARGS |
| 29 | #define TP_ARGS(args...) |
| 30 | |
| 31 | #undef TP_locvar |
| 32 | #define TP_locvar(...) |
| 33 | |
| 34 | #undef TP_code_pre |
| 35 | #define TP_code_pre(...) |
| 36 | |
| 37 | #undef TP_code_post |
| 38 | #define TP_code_post(...) |
| 39 | |
| 40 | #undef TP_FIELDS |
| 41 | #define TP_FIELDS(args...) |
| 42 | |
| 43 | #undef _ctf_integer_ext |
| 44 | #define _ctf_integer_ext(_type, _item, _src, _byte_order, _base, \ |
| 45 | _user, _nowrite) |
| 46 | |
| 47 | #undef _ctf_integer_ext_isuser0 |
| 48 | #define _ctf_integer_ext_isuser0(_type, _item, _src, _byte_order, _base, \ |
| 49 | _nowrite) |
| 50 | |
| 51 | #undef _ctf_integer_ext_isuser1 |
| 52 | #define _ctf_integer_ext_isuser1(_type, _item, _src, _byte_order, _base, \ |
| 53 | _nowrite) |
| 54 | |
| 55 | #undef _ctf_integer_ext_fetched |
| 56 | #define _ctf_integer_ext_fetched(_type, _item, _src, _byte_order, _base, \ |
| 57 | _nowrite) |
| 58 | |
| 59 | #undef _ctf_array_encoded |
| 60 | #define _ctf_array_encoded(_type, _item, _src, _length, _encoding, \ |
| 61 | _byte_order, _base, _user, _nowrite) |
| 62 | |
| 63 | #undef _ctf_array_bitfield |
| 64 | #define _ctf_array_bitfield(_type, _item, _src, _length, _user, _nowrite) |
| 65 | |
| 66 | #undef _ctf_sequence_encoded |
| 67 | #define _ctf_sequence_encoded(_type, _item, _src, _length_type, \ |
| 68 | _src_length, _encoding, _byte_order, _base, _user, _nowrite) |
| 69 | |
| 70 | #undef _ctf_sequence_bitfield |
| 71 | #define _ctf_sequence_bitfield(_type, _item, _src, _length_type, \ |
| 72 | _src_length, _byte_order, _user, _nowrite) |
| 73 | |
| 74 | #undef _ctf_string |
| 75 | #define _ctf_string(_item, _src, _user, _nowrite) |
| 76 | |
| 77 | #undef _ctf_enum |
| 78 | #define _ctf_enum(_name, _type, _item, _src, _nowrite) |
| 79 | |
| 80 | /* "write" */ |
| 81 | #undef ctf_integer |
| 82 | #define ctf_integer(_type, _item, _src) |
| 83 | |
| 84 | #undef ctf_integer_hex |
| 85 | #define ctf_integer_hex(_type, _item, _src) |
| 86 | |
| 87 | #undef ctf_integer_oct |
| 88 | #define ctf_integer_oct(_type, _item, _src) |
| 89 | |
| 90 | #undef ctf_integer_network |
| 91 | #define ctf_integer_network(_type, _item, _src) |
| 92 | |
| 93 | #undef ctf_integer_network_hex |
| 94 | #define ctf_integer_network_hex(_type, _item, _src) |
| 95 | |
| 96 | #undef ctf_float |
| 97 | #define ctf_float(_type, _item, _src) |
| 98 | |
| 99 | #undef ctf_array |
| 100 | #define ctf_array(_type, _item, _src, _length) |
| 101 | |
| 102 | #undef ctf_array_hex |
| 103 | #define ctf_array_hex(_type, _item, _src, _length) |
| 104 | |
| 105 | #undef ctf_array_network |
| 106 | #define ctf_array_network(_type, _item, _src, _length) |
| 107 | |
| 108 | #undef ctf_array_network_hex |
| 109 | #define ctf_array_network_hex(_type, _item, _src, _length) |
| 110 | |
| 111 | #undef ctf_array_text |
| 112 | #define ctf_array_text(_type, _item, _src, _length) |
| 113 | |
| 114 | #undef ctf_array_bitfield |
| 115 | #define ctf_array_bitfield(_type, _item, _src, _length) |
| 116 | |
| 117 | #undef ctf_sequence |
| 118 | #define ctf_sequence(_type, _item, _src, _length_type, _src_length) |
| 119 | |
| 120 | #undef ctf_sequence_hex |
| 121 | #define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) |
| 122 | |
| 123 | #undef ctf_sequence_network |
| 124 | #define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) |
| 125 | |
| 126 | #undef ctf_sequence_network_hex |
| 127 | #define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) |
| 128 | |
| 129 | #undef ctf_sequence_text |
| 130 | #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) |
| 131 | |
| 132 | #undef ctf_sequence_bitfield |
| 133 | #define ctf_sequence_bitfield(_type, _item, _src, _length_type, _src_length) |
| 134 | |
| 135 | #undef ctf_string |
| 136 | #define ctf_string(_item, _src) |
| 137 | |
| 138 | #undef ctf_enum |
| 139 | #define ctf_enum(_name, _type, _item, _src) |
| 140 | |
| 141 | #undef ctf_custom_field |
| 142 | #define ctf_custom_field(_type, _item, _code) |
| 143 | |
| 144 | #undef ctf_custom_type |
| 145 | #define ctf_custom_type(...) |
| 146 | |
| 147 | #undef ctf_custom_code |
| 148 | #define ctf_custom_code(...) |
| 149 | |
| 150 | #undef ctf_align |
| 151 | #define ctf_align(_type) |
| 152 | |
| 153 | /* "nowrite" */ |
| 154 | #undef ctf_integer_nowrite |
| 155 | #define ctf_integer_nowrite(_type, _item, _src) |
| 156 | |
| 157 | #undef ctf_float_nowrite |
| 158 | #define ctf_float_nowrite(_type, _item, _src) |
| 159 | |
| 160 | #undef ctf_array_nowrite |
| 161 | #define ctf_array_nowrite(_type, _item, _src, _length) |
| 162 | |
| 163 | #undef ctf_array_network_nowrite |
| 164 | #define ctf_array_network_nowrite(_type, _item, _src, _length) |
| 165 | |
| 166 | #undef ctf_array_text_nowrite |
| 167 | #define ctf_array_text_nowrite(_type, _item, _src, _length) |
| 168 | |
| 169 | #undef ctf_array_bitfield_nowrite |
| 170 | #define ctf_array_bitfield_nowrite(_type, _item, _src, _length) |
| 171 | |
| 172 | #undef ctf_sequence_nowrite |
| 173 | #define ctf_sequence_nowrite(_type, _item, _src, _length_type, _src_length) |
| 174 | |
| 175 | #undef ctf_sequence_network_nowrite |
| 176 | #define ctf_sequence_network_nowrite(_type, _item, _src, _length_type, _src_length) |
| 177 | |
| 178 | #undef ctf_sequence_text_nowrite |
| 179 | #define ctf_sequence_text_nowrite(_type, _item, _src, _length_type, _src_length) |
| 180 | |
| 181 | #undef ctf_sequence_bitfield_nowrite |
| 182 | #define ctf_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) |
| 183 | |
| 184 | #undef ctf_string_nowrite |
| 185 | #define ctf_string_nowrite(_item, _src) |
| 186 | |
| 187 | #undef ctf_enum_nowrite |
| 188 | #define ctf_enum_nowrite(_name, _type, _item, _src) |
| 189 | |
| 190 | /* "user" - "write" */ |
| 191 | #undef ctf_user_integer |
| 192 | #define ctf_user_integer(_type, _item, _user_src) |
| 193 | |
| 194 | #undef ctf_user_integer_hex |
| 195 | #define ctf_user_integer_hex(_type, _item, _user_src) |
| 196 | |
| 197 | #undef ctf_user_integer_network |
| 198 | #define ctf_user_integer_network(_type, _item, _user_src) |
| 199 | |
| 200 | #undef ctf_user_integer_network_hex |
| 201 | #define ctf_user_integer_network_hex(_type, _item, _user_src) |
| 202 | |
| 203 | #undef ctf_user_float |
| 204 | #define ctf_user_float(_type, _item, _user_src) |
| 205 | |
| 206 | #undef ctf_user_array |
| 207 | #define ctf_user_array(_type, _item, _user_src, _length) |
| 208 | |
| 209 | #undef ctf_user_array_hex |
| 210 | #define ctf_user_array_hex(_type, _item, _user_src, _length) |
| 211 | |
| 212 | #undef ctf_user_array_network |
| 213 | #define ctf_user_array_network(_type, _item, _user_src, _length) |
| 214 | |
| 215 | #undef ctf_user_array_network_hex |
| 216 | #define ctf_user_array_network_hex(_type, _item, _user_src, _length) |
| 217 | |
| 218 | #undef ctf_user_array_text |
| 219 | #define ctf_user_array_text(_type, _item, _user_src, _length) |
| 220 | |
| 221 | #undef ctf_user_array_bitfield |
| 222 | #define ctf_user_array_bitfield(_type, _item, _src, _length) |
| 223 | |
| 224 | #undef ctf_user_sequence |
| 225 | #define ctf_user_sequence(_type, _item, _user_src, _length_type, _user_src_length) |
| 226 | |
| 227 | #undef ctf_user_sequence_hex |
| 228 | #define ctf_user_sequence_hex(_type, _item, _user_src, _length_type, _user_src_length) |
| 229 | |
| 230 | #undef ctf_user_sequence_network |
| 231 | #define ctf_user_sequence_network(_type, _item, _user_src, _length_type, _user_src_length) |
| 232 | |
| 233 | #undef ctf_user_sequence_network_hex |
| 234 | #define ctf_user_sequence_network_hex(_type, _item, _user_src, _length_type, _user_src_length) |
| 235 | |
| 236 | #undef ctf_user_sequence_text |
| 237 | #define ctf_user_sequence_text(_type, _item, _user_src, _length_type, _user_src_length) |
| 238 | |
| 239 | #undef ctf_user_sequence_bitfield |
| 240 | #define ctf_user_sequence_bitfield(_type, _item, _src, _length_type, _src_length) |
| 241 | |
| 242 | #undef ctf_user_string |
| 243 | #define ctf_user_string(_item, _user_src) |
| 244 | |
| 245 | #undef ctf_user_enum |
| 246 | #define ctf_user_enum(_name, _type, _item, _src) |
| 247 | |
| 248 | /* "user" - "nowrite" */ |
| 249 | #undef ctf_user_integer_nowrite |
| 250 | #define ctf_user_integer_nowrite(_type, _item, _user_src) |
| 251 | |
| 252 | #undef ctf_user_float_nowrite |
| 253 | #define ctf_user_float_nowrite(_type, _item, _user_src) |
| 254 | |
| 255 | #undef ctf_user_array_nowrite |
| 256 | #define ctf_user_array_nowrite(_type, _item, _user_src, _length) |
| 257 | |
| 258 | #undef ctf_user_array_network_nowrite |
| 259 | #define ctf_user_array_network_nowrite(_type, _item, _user_src, _length) |
| 260 | |
| 261 | #undef ctf_user_array_text_nowrite |
| 262 | #define ctf_user_array_text_nowrite(_type, _item, _user_src, _length) |
| 263 | |
| 264 | #undef ctf_user_array_bitfield_nowrite |
| 265 | #define ctf_user_array_bitfield_nowrite(_type, _item, _src, _length) |
| 266 | |
| 267 | #undef ctf_user_sequence_nowrite |
| 268 | #define ctf_user_sequence_nowrite(_type, _item, _user_src, _length_type, _user_src_length) |
| 269 | |
| 270 | #undef ctf_user_sequence_network_nowrite |
| 271 | #define ctf_user_sequence_network_nowrite(_type, _item, _user_src, _length_type, _user_src_length) |
| 272 | |
| 273 | #undef ctf_user_sequence_text_nowrite |
| 274 | #define ctf_user_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) |
| 275 | |
| 276 | #undef ctf_user_sequence_bitfield_nowrite |
| 277 | #define ctf_user_sequence_bitfield_nowrite(_type, _item, _src, _length_type, _src_length) |
| 278 | |
| 279 | #undef ctf_user_string_nowrite |
| 280 | #define ctf_user_string_nowrite(_item, _user_src) |
| 281 | |
| 282 | #undef ctf_user_enum_nowrite |
| 283 | #define ctf_user_enum_nowrite(_name, _type, _item, _src) |