lttng-ust(3): Fix wrong len_type for sequence
authorOlivier Dion <odion@efficios.com>
Thu, 21 Mar 2024 18:42:13 +0000 (14:42 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 21 Mar 2024 19:17:49 +0000 (15:17 -0400)
`len_type' of a sequence field must be of type unsigned integer. Some
provided examples in the man page were incorrectly using a type signed
integer, resulting in correct compilation, but error while decoding.

Change-Id: Icc685b330d0704660b36f703075f453d71c5e4cb
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
doc/man/lttng-ust.3.txt

index 507aaca5e0ac070328eff4cdee587f1181240015..02c9483612f6a9f07bdd817e7c2a2ff5e319fa46 100644 (file)
@@ -1204,10 +1204,10 @@ TRACEPOINT_EVENT(
         ctf_string(string_field, my_string_arg)
         ctf_array(int, array_field, array_arg, 7)
         ctf_array_text(char, array_text_field, array_arg, 5)
-        ctf_sequence(int, seq_field, array_arg, int,
+        ctf_sequence(int, seq_field, array_arg, unsigned int,
                      my_integer_arg / 10)
         ctf_sequence_text(char, seq_text_field, array_arg,
-                          int, my_integer_arg / 5)
+                          unsigned int, my_integer_arg / 5)
         ctf_enum(my_provider, my_enum, int,
                  enum_field, array_arg[1])
     )
This page took 0.025423 seconds and 4 git commands to generate.