Tracepoint: add ctf sequence for network byte order integers
[lttng-ust.git] / include / lttng / ust-tracepoint-event-write.h
index 444702fceab6a61f4edc200d2651240c9110f6c1..faf26e2c0ced9fa0b7e3159f49c1399dd591bc4a 100644 (file)
 
 #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
This page took 0.023117 seconds and 4 git commands to generate.