#undef ctf_sequence_nowrite
#define ctf_sequence_nowrite(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
_length_type, _src_length, none, 1, 10)
#undef ctf_sequence_nowrite_hex
#define ctf_sequence_nowrite_hex(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
_length_type, _src_length, none, 1, 16)
#undef ctf_sequence_text_nowrite
#define ctf_sequence_text_nowrite(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
_length_type, _src_length, UTF8, 1, 10)
#undef ctf_string_nowrite
_nowrite)
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, _length_type, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base)
#undef _ctf_string
#undef ctf_sequence
#define ctf_sequence(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
_length_type, _src_length, none, 0, 10)
#undef ctf_sequence_hex
#define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
+ _length_type, _src_length, none, 0, 16)
+
+#undef ctf_sequence_network
+#define ctf_sequence_network(_type, _item, _src, _length_type, _src_length) \
+ _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \
+ _length_type, _src_length, none, 0, 10)
+
+#undef ctf_sequence_network_hex
+#define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length) \
+ _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN, \
_length_type, _src_length, none, 0, 16)
#undef ctf_sequence_text
#define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
- _ctf_sequence_encoded(_type, _item, _src, \
+ _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER, \
_length_type, _src_length, UTF8, 0, 10)
#undef ctf_string
},
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, \
_length_type, _src_length, _encoding, _nowrite, \
_elem_type_base) \
{ \
.sequence = \
{ \
.length_type = __type_integer(_length_type, BYTE_ORDER, 10, none), \
- .elem_type = __type_integer(_type, BYTE_ORDER, _elem_type_base, _encoding), \
+ .elem_type = __type_integer(_type, _byte_order, _elem_type_base, _encoding), \
}, \
}, \
}, \
__event_len += sizeof(_type) * (_length);
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, _length_type, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base) \
__event_len += lib_ring_buffer_align(__event_len, lttng_alignof(_length_type)); \
__event_len += sizeof(_length_type); \
}
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, _length_type, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base) \
{ \
unsigned long __ctf_tmp_ulong = (unsigned long) (_src_length); \
__event_align = _tp_max_t(size_t, __event_align, lttng_alignof(_type));
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, _length_type, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base) \
__event_align = _tp_max_t(size_t, __event_align, lttng_alignof(_length_type)); \
__event_align = _tp_max_t(size_t, __event_align, lttng_alignof(_type));
__chan->ops->event_write(&__ctx, _src, sizeof(_type) * (_length));
#undef _ctf_sequence_encoded
-#define _ctf_sequence_encoded(_type, _item, _src, _length_type, \
+#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base) \
{ \
_length_type __tmpl = __stackvar.__dynamic_len[__dynamic_len_idx]; \
size_t, textlen)
ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
+ ctf_sequence_network(long, seqfield_network_3, values,
+ size_t, 3)
ctf_string(stringfield, text)
ctf_float(float, floatfield, floatarg)
ctf_float(double, doublefield, doublearg)