Fix length type and text sequence base
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 11 Nov 2014 21:29:06 +0000 (16:29 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Apr 2015 20:41:45 +0000 (16:41 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/syscalls/headers/x86-64-syscalls-3.10.0-rc7_pointers_override.h
probes/lttng-events-nowrite.h
probes/lttng-events-write.h

index f656b3a62e769cb96c213e154330cf5a61586c79..af519cd6ecaee9e3b208eac1bb82dbd0cd97077c 100644 (file)
@@ -9,7 +9,7 @@ SC_LTTNG_TRACEPOINT_EVENT_CODE(connect,
                uint16_t dport;
                uint32_t v4addr;
                uint16_t v6addr[8];
-               int v4addr_len, v6addr_len;
+               unsigned int v4addr_len, v6addr_len;
        ),
        TP_code(
                sc_in(
@@ -46,8 +46,8 @@ SC_LTTNG_TRACEPOINT_EVENT_CODE(connect,
                sc_in(ctf_integer_hex(int, addrlen, addrlen))
                sc_in(ctf_integer(int, family, tp_locvar->sa_family))
                sc_in(ctf_integer_network(uint16_t, dport, tp_locvar->dport))
-               sc_in(ctf_sequence_network(uint8_t, v4addr, &tp_locvar->v4addr, int, tp_locvar->v4addr_len))
-               sc_in(ctf_sequence_network(uint16_t, v6addr, &tp_locvar->v6addr, int, tp_locvar->v6addr_len))
+               sc_in(ctf_sequence_network(uint8_t, v4addr, &tp_locvar->v4addr, unsigned int, tp_locvar->v4addr_len))
+               sc_in(ctf_sequence_network(uint16_t, v6addr, &tp_locvar->v6addr, unsigned int, tp_locvar->v6addr_len))
        )
 )
 
@@ -101,8 +101,8 @@ SC_LTTNG_TRACEPOINT_EVENT_CODE(accept,
                sc_inout(ctf_integer(int, upeer_addrlen, tp_locvar->uaddr_len))
                sc_out(ctf_integer(int, family, tp_locvar->sa_family))
                sc_out(ctf_integer_network(uint16_t, sport, tp_locvar->sport))
-               sc_in(ctf_sequence_network(uint8_t, v4addr, &tp_locvar->v4addr, int, tp_locvar->v4addr_len))
-               sc_in(ctf_sequence_network(uint16_t, v6addr, &tp_locvar->v6addr, int, tp_locvar->v6addr_len))
+               sc_in(ctf_sequence_network(uint8_t, v4addr, &tp_locvar->v4addr, unsigned int, tp_locvar->v4addr_len))
+               sc_in(ctf_sequence_network(uint16_t, v6addr, &tp_locvar->v6addr, unsigned int, tp_locvar->v6addr_len))
        )
 )
 
index 39cd424ac94ce2b8729cc25750ba3a7cf0937d23..69453ae63a0ca8555557810862d83cef20dde848 100644 (file)
@@ -54,7 +54,7 @@
 #undef ctf_sequence_text_nowrite
 #define ctf_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
        _ctf_sequence_encoded(_type, _item, _user_src,          \
-                       _length_type, _user_src_length, UTF8, __BYTE_ORDER, 0, 0, 1)
+                       _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 0, 1)
 
 #undef ctf_string_nowrite
 #define ctf_string_nowrite(_item, _user_src)                   \
@@ -93,7 +93,7 @@
 #undef ctf_user_sequence_text_nowrite
 #define ctf_user_sequence_text_nowrite(_type, _item, _user_src, _length_type, _user_src_length) \
        _ctf_sequence_encoded(_type, _item, _user_src,          \
-                       _length_type, _user_src_length, UTF8, __BYTE_ORDER, 0, 1, 1)
+                       _length_type, _user_src_length, UTF8, __BYTE_ORDER, 10, 1, 1)
 
 #undef ctf_user_string_nowrite
 #define ctf_user_string_nowrite(_item, _user_src)              \
index aed0814bb2dc8afbe8cd3fb8dceaccdf4cff9374..dde883eae4dd10479d4e2cb75119d3f783bf565f 100644 (file)
@@ -64,7 +64,7 @@
 #undef ctf_sequence_text
 #define ctf_sequence_text(_type, _item, _src, _length_type, _src_length) \
        _ctf_sequence_encoded(_type, _item, _src,               \
-                       _length_type, _src_length, UTF8, __BYTE_ORDER, 0, 0, 0)
+                       _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 0, 0)
 
 #undef ctf_string
 #define ctf_string(_item, _src)                                        \
 #undef ctf_user_sequence_text
 #define ctf_user_sequence_text(_type, _item, _src, _length_type, _src_length) \
        _ctf_sequence_encoded(_type, _item, _src,               \
-                       _length_type, _src_length, UTF8, __BYTE_ORDER, 0, 1, 0)
+                       _length_type, _src_length, UTF8, __BYTE_ORDER, 10, 1, 0)
 
 #undef ctf_user_string
 #define ctf_user_string(_item, _src)                                   \
This page took 0.032367 seconds and 4 git commands to generate.