Tracepoint array/sequence: add nowrite hex macros
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 May 2016 20:30:21 +0000 (16:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 6 May 2016 20:30:21 +0000 (16:30 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/ust-tracepoint-event-nowrite.h
include/lttng/ust-tracepoint-event-reset.h
tests/hello/ust_tests_hello.h

index c0b42665ae4805ed68f7fb2991728f15b0f3c262..c1d9c03a6bc0dfa3a18a4eda58b7dcdbe29de6fa 100644 (file)
 #define ctf_array_nowrite(_type, _item, _src, _length)         \
        _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, _length, none, 1, 10)
 
+#undef ctf_array_nowrite_hex
+#define ctf_array_nowrite_hex(_type, _item, _src, _length)     \
+       _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, _length, none, 1, 16)
+
+#undef ctf_array_network_nowrite
+#define ctf_array_network_nowrite(_type, _item, _src, _length) \
+       _ctf_array_encoded(_type, _item, _src, BIG_ENDIAN,      \
+                       _length, none, 1, 10)
+
+#undef ctf_array_network_nowrite_hex
+#define ctf_array_network_nowrite_hex(_type, _item, _src, _length) \
+       _ctf_array_encoded(_type, _item, _src, BIG_ENDIAN,      \
+                       _length, none, 1, 16)
+
 #undef ctf_array_text_nowrite
 #define ctf_array_text_nowrite(_type, _item, _src, _length)    \
        _ctf_array_encoded(_type, _item, _src, BYTE_ORDER, _length, UTF8, 1, 10)
        _ctf_sequence_encoded(_type, _item, _src, BYTE_ORDER,   \
                        _length_type, _src_length, none, 1, 16)
 
+#undef ctf_sequence_network_nowrite
+#define ctf_sequence_network_nowrite(_type, _item, _src, _length_type, _src_length) \
+       _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN,   \
+                       _length_type, _src_length, none, 1, 10)
+
+#undef ctf_sequence_network_nowrite_hex
+#define ctf_sequence_network_nowrite_hex(_type, _item, _src, _length_type, _src_length) \
+       _ctf_sequence_encoded(_type, _item, _src, BIG_ENDIAN,   \
+                       _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, BYTE_ORDER,   \
index a89e6efa70314e1378e3ad0f5774aa2bd5281cdf..47bb5a8d38fe700f8f0eac2ca0cb669c61c00445 100644 (file)
 #undef ctf_array
 #define ctf_array(_type, _item, _src, _length)
 
+#undef ctf_array_hex
+#define ctf_array_hex(_type, _item, _src, _length)
+
+#undef ctf_array_network
+#define ctf_array_network(_type, _item, _src, _length)
+
+#undef ctf_array_network_hex
+#define ctf_array_network_hex(_type, _item, _src, _length)
+
 #undef ctf_array_text
 #define ctf_array_text(_type, _item, _src, _length)
 
 #undef ctf_sequence
 #define ctf_sequence(_type, _item, _src, _length_type, _src_length)
 
+#undef ctf_sequence_hex
+#define ctf_sequence_hex(_type, _item, _src, _length_type, _src_length)
+
+#undef ctf_sequence_network
+#define ctf_sequence_network(_type, _item, _src, _length_type, _src_length)
+
+#undef ctf_sequence_network_hex
+#define ctf_sequence_network_hex(_type, _item, _src, _length_type, _src_length)
+
 #undef ctf_sequence_text
 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length)
 
 #undef ctf_array_nowrite
 #define ctf_array_nowrite(_type, _item, _src, _length)
 
+#undef ctf_array_nowrite_hex
+#define ctf_array_nowrite_hex(_type, _item, _src, _length)
+
+#undef ctf_array_network_nowrite
+#define ctf_array_network_nowrite(_type, _item, _src, _length)
+
+#undef ctf_array_network_nowrite_hex
+#define ctf_array_network_nowrite_hex(_type, _item, _src, _length)
+
 #undef ctf_array_text_nowrite
 #define ctf_array_text_nowrite(_type, _item, _src, _length)
 
 #undef ctf_sequence_nowrite
 #define ctf_sequence_nowrite(_type, _item, _src, _length_type, _src_length)
 
+#undef ctf_sequence_nowrite_hex
+#define ctf_sequence_nowrite_hex(_type, _item, _src, _length_type, _src_length)
+
+#undef ctf_sequence_network_nowrite
+#define ctf_sequence_network_nowrite(_type, _item, _src, _length_type, _src_length)
+
+#undef ctf_sequence_network_nowrite_hex
+#define ctf_sequence_network_nowrite_hex(_type, _item, _src, _length_type, _src_length)
+
 #undef ctf_sequence_text_nowrite
 #define ctf_sequence_text_nowrite(_type, _item, _src, _length_type, _src_length)
 
index ec5c00cd378b9773421738d2a10012aa6365f57b..372828f83474b4228551ca960b0e8f10b9afd859 100644 (file)
@@ -40,6 +40,8 @@ TRACEPOINT_EVENT(ust_tests_hello, tptest,
                ctf_integer(long, longfield, anint)
                ctf_integer_network(int, netintfield, netint)
                ctf_integer_network_hex(int, netintfieldhex, netint)
+               ctf_array_nowrite(long, arrfield1z, values, 3)
+               ctf_array(long, blah, values, 3)
                ctf_array(long, arrfield1, values, 3)
                ctf_array_hex(long, arrfield1_hex, values, 3)
                ctf_array_network(long, arrfield1_network, values, 3)
@@ -47,6 +49,8 @@ TRACEPOINT_EVENT(ust_tests_hello, tptest,
                ctf_array_text(char, arrfield2, text, 10)
                ctf_sequence(char, seqfield1, text,
                             size_t, textlen)
+               ctf_sequence_nowrite(char, seqfield1z, text,
+                            size_t, textlen)
                ctf_sequence_hex(char, seqfield1_hex, text,
                             size_t, textlen)
                ctf_sequence_text(char, seqfield2, text,
This page took 0.026428 seconds and 4 git commands to generate.