lttng_ust_field_integer(long, longfield, anint)
lttng_ust_field_integer_network(int, netintfield, netint)
lttng_ust_field_integer_network_hex(int, netintfieldhex, netint)
- ctf_array(long, arrfield1, values, 3)
- ctf_array_text(char, arrfield2, text, 10)
+ lttng_ust_field_array(long, arrfield1, values, 3)
+ lttng_ust_field_array_text(char, arrfield2, text, 10)
ctf_sequence(char, seqfield1, text,
size_t, textlen)
ctf_sequence_text(char, seqfield2, text,
lttng_ust_field_integer(long, longfield, anint)
lttng_ust_field_integer_network(int, netintfield, netint)
lttng_ust_field_integer_network_hex(int, netintfieldhex, netint)
- ctf_array(long, arrfield1, values, 3)
- ctf_array_text(char, arrfield2, text, 10)
+ lttng_ust_field_array(long, arrfield1, values, 3)
+ lttng_ust_field_array_text(char, arrfield2, text, 10)
ctf_sequence(char, seqfield1, text,
size_t, textlen)
ctf_sequence_text(char, seqfield2, text,
#define ctf_float lttng_ust_field_float
#define ctf_float_nowrite lttng_ust_field_float_nowrite
+
+#define ctf_array lttng_ust_field_array
+#define ctf_array_hex lttng_ust_field_array_hex
+#define ctf_array_network lttng_ust_field_array_network
+#define ctf_array_network_hex lttng_ust_field_array_network_hex
+#define ctf_array_text lttng_ust_field_array_text
+#define ctf_array_nowrite lttng_ust_field_array_nowrite
+#define ctf_array_nowrite_hex lttng_ust_field_array_nowrite_hex
+#define ctf_array_network_nowrite lttng_ust_field_array_network_nowrite
+#define ctf_array_network_nowrite_hex lttng_ust_field_array_network_nowrite_hex
+#define ctf_array_text_nowrite lttng_ust_field_array_text_nowrite
#endif /* #if LTTNG_UST_COMPAT_API(0) */
#ifdef __cplusplus
* ctf_enum(someproject_component, enum_name, int, field_e, arg0)
*
* * Array Sequence, printed as UTF8-encoded array of bytes *
- * ctf_array_text(char, field_b, string, FIXED_LEN)
+ * lttng_ust_field_array_text(char, field_b, string, FIXED_LEN)
* ctf_sequence_text(char, field_c, string, size_t, strlen)
*
* * String, printed as UTF8-encoded string *
* ctf_string(field_e, string)
*
* * Array sequence of signed integer values *
- * ctf_array(long, field_f, arg4, FIXED_LEN4)
+ * lttng_ust_field_array(long, field_f, arg4, FIXED_LEN4)
* ctf_sequence(long, field_g, arg4, size_t, arg4_len)
* )
* )
#define lttng_ust_field_float_nowrite(_type, _item, _src) \
lttng_ust__field_float(_type, _item, _src, 1)
-#undef ctf_array_nowrite
-#define ctf_array_nowrite(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, _length, none, 1, 10)
+#undef lttng_ust_field_array_nowrite
+#define lttng_ust_field_array_nowrite(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_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, LTTNG_UST_BYTE_ORDER, _length, none, 1, 16)
+#undef lttng_ust_field_array_nowrite_hex
+#define lttng_ust_field_array_nowrite_hex(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_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, LTTNG_UST_BIG_ENDIAN, \
+#undef lttng_ust_field_array_network_nowrite
+#define lttng_ust_field_array_network_nowrite(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_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, LTTNG_UST_BIG_ENDIAN, \
+#undef lttng_ust_field_array_network_nowrite_hex
+#define lttng_ust_field_array_network_nowrite_hex(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_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, LTTNG_UST_BYTE_ORDER, _length, UTF8, 1, 10)
+#undef lttng_ust_field_array_text_nowrite
+#define lttng_ust_field_array_text_nowrite(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, _length, UTF8, 1, 10)
#undef ctf_sequence_nowrite
#define ctf_sequence_nowrite(_type, _item, _src, _length_type, _src_length) \
#undef lttng_ust__field_float
#define lttng_ust__field_float(_type, _item, _src, _nowrite)
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, _length, _encoding, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, _length, _encoding, \
_nowrite, _elem_type_base)
#undef _ctf_sequence_encoded
#undef lttng_ust_field_float
#define lttng_ust_field_float(_type, _item, _src)
-#undef ctf_array
-#define ctf_array(_type, _item, _src, _length)
+#undef lttng_ust_field_array
+#define lttng_ust_field_array(_type, _item, _src, _length)
-#undef ctf_array_hex
-#define ctf_array_hex(_type, _item, _src, _length)
+#undef lttng_ust_field_array_hex
+#define lttng_ust_field_array_hex(_type, _item, _src, _length)
-#undef ctf_array_network
-#define ctf_array_network(_type, _item, _src, _length)
+#undef lttng_ust_field_array_network
+#define lttng_ust_field_array_network(_type, _item, _src, _length)
-#undef ctf_array_network_hex
-#define ctf_array_network_hex(_type, _item, _src, _length)
+#undef lttng_ust_field_array_network_hex
+#define lttng_ust_field_array_network_hex(_type, _item, _src, _length)
-#undef ctf_array_text
-#define ctf_array_text(_type, _item, _src, _length)
+#undef lttng_ust_field_array_text
+#define lttng_ust_field_array_text(_type, _item, _src, _length)
#undef ctf_sequence
#define ctf_sequence(_type, _item, _src, _length_type, _src_length)
#undef lttng_ust_field_float_nowrite
#define lttng_ust_field_float_nowrite(_type, _item, _src)
-#undef ctf_array_nowrite
-#define ctf_array_nowrite(_type, _item, _src, _length)
+#undef lttng_ust_field_array_nowrite
+#define lttng_ust_field_array_nowrite(_type, _item, _src, _length)
-#undef ctf_array_nowrite_hex
-#define ctf_array_nowrite_hex(_type, _item, _src, _length)
+#undef lttng_ust_field_array_nowrite_hex
+#define lttng_ust_field_array_nowrite_hex(_type, _item, _src, _length)
-#undef ctf_array_network_nowrite
-#define ctf_array_network_nowrite(_type, _item, _src, _length)
+#undef lttng_ust_field_array_network_nowrite
+#define lttng_ust_field_array_network_nowrite(_type, _item, _src, _length)
-#undef ctf_array_network_nowrite_hex
-#define ctf_array_network_nowrite_hex(_type, _item, _src, _length)
+#undef lttng_ust_field_array_network_nowrite_hex
+#define lttng_ust_field_array_network_nowrite_hex(_type, _item, _src, _length)
-#undef ctf_array_text_nowrite
-#define ctf_array_text_nowrite(_type, _item, _src, _length)
+#undef lttng_ust_field_array_text_nowrite
+#define lttng_ust_field_array_text_nowrite(_type, _item, _src, _length)
#undef ctf_sequence_nowrite
#define ctf_sequence_nowrite(_type, _item, _src, _length_type, _src_length)
#define lttng_ust_field_float(_type, _item, _src) \
lttng_ust__field_float(_type, _item, _src, 0)
-#undef ctf_array
-#define ctf_array(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
+#undef lttng_ust_field_array
+#define lttng_ust_field_array(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
_length, none, 0, 10)
-#undef ctf_array_hex
-#define ctf_array_hex(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
+#undef lttng_ust_field_array_hex
+#define lttng_ust_field_array_hex(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
_length, none, 0, 16)
-#undef ctf_array_network
-#define ctf_array_network(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
+#undef lttng_ust_field_array_network
+#define lttng_ust_field_array_network(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
_length, none, 0, 10)
-#undef ctf_array_network_hex
-#define ctf_array_network_hex(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
+#undef lttng_ust_field_array_network_hex
+#define lttng_ust_field_array_network_hex(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, \
_length, none, 0, 16)
-#undef ctf_array_text
-#define ctf_array_text(_type, _item, _src, _length) \
- _ctf_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
+#undef lttng_ust_field_array_text
+#define lttng_ust_field_array_text(_type, _item, _src, _length) \
+ lttng_ust__field_array_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
_length, UTF8, 0, 10)
#undef ctf_sequence
#include <lttng/ust-tracepoint-event-write.h>
#include <lttng/ust-tracepoint-event-nowrite.h>
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, \
_length, _encoding, _nowrite, \
_elem_type_base) \
- lttng_ust_ctf_array_element_type_is_supported(_type, _item);
+ lttng_ust_field_array_element_type_is_supported(_type, _item);
#undef _ctf_sequence_encoded
#define _ctf_sequence_encoded(_type, _item, _src, _byte_order, \
_length_type, _src_length, _encoding, _nowrite, \
_elem_type_base) \
- lttng_ust_ctf_array_element_type_is_supported(_type, _item);
+ lttng_ust_field_array_element_type_is_supported(_type, _item);
#undef LTTNG_UST_TP_FIELDS
#define LTTNG_UST_TP_FIELDS(...) __VA_ARGS__ /* Only one used in this phase */
.nofilter = 0, \
}),
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, \
_length, _encoding, _nowrite, \
_elem_type_base) \
LTTNG_UST_COMPOUND_LITERAL(const struct lttng_ust_event_field, { \
__event_len += lttng_ust_ring_buffer_align(__event_len, lttng_ust_rb_alignof(_type)); \
__event_len += sizeof(_type);
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, _length, _encoding, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, _length, _encoding, \
_nowrite, _elem_type_base) \
if (0) \
(void) (_src); /* Unused */ \
__stack_data += sizeof(double); \
}
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, _length, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, _length, \
_encoding, _nowrite, _elem_type_base) \
{ \
unsigned long __ctf_tmp_ulong = (unsigned long) (_length); \
(void) (_src); /* Unused */ \
lttng_ust__event_align = lttng_ust__tp_max_t(size_t, lttng_ust__event_align, lttng_ust_rb_alignof(_type));
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, _length, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, _length, \
_encoding, _nowrite, _elem_type_base) \
if (0) \
(void) (_src); /* Unused */ \
__chan->ops->event_write(&__ctx, &__tmp, sizeof(__tmp), lttng_ust_rb_alignof(__tmp));\
}
-#undef _ctf_array_encoded
-#define _ctf_array_encoded(_type, _item, _src, _byte_order, _length, \
+#undef lttng_ust__field_array_encoded
+#define lttng_ust__field_array_encoded(_type, _item, _src, _byte_order, _length, \
_encoding, _nowrite, _elem_type_base) \
if (lttng_ust_string_encoding_##_encoding == lttng_ust_string_encoding_none) \
__chan->ops->event_write(&__ctx, _src, sizeof(_type) * (_length), lttng_ust_rb_alignof(_type)); \
#endif
/**
- * lttng_ust_ctf_array_element_type_is_supported -
+ * lttng_ust_field_array_element_type_is_supported -
*
- * Adds a compilation assertion that CTF arrays and sequences declared by the
+ * Adds a compilation assertion that array and sequence fields declared by the
* user are of an integral type.
*/
-#define lttng_ust_ctf_array_element_type_is_supported(type, item) \
+#define lttng_ust_field_array_element_type_is_supported(type, item) \
lttng_ust_static_assert(lttng_ust_is_integer_type(type), \
- "Non-integer type `" #item "` not supported as element of CTF_ARRAY or CTF_SEQUENCE", \
- Non_integer_type__##item##__not_supported_as_element_of_CTF_ARRAY_or_CTF_SEQUENCE)
+ "Non-integer type `" #item "` not supported as element of LTTNG_UST_FIELD_ARRAY or LTTNG_UST_FIELD_SEQUENCE", \
+ Non_integer_type__##item##__not_supported_as_element_of_LTTNG_UST_FIELD_ARRAY_or_LTTNG_UST_FIELD_SEQUENCE)
/**
),
LTTNG_UST_TP_FIELDS(
ctf_unused(session)
- ctf_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN)
+ lttng_ust_field_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN)
)
)
lttng_ust_field_integer(long, longfield, anint)
lttng_ust_field_integer_network(int, netintfield, netint)
lttng_ust_field_integer_network_hex(int, netintfieldhex, netint)
- ctf_array(long, arrfield1, values, 3)
- ctf_array_text(char, arrfield2, text, 10)
+ lttng_ust_field_array(long, arrfield1, values, 3)
+ lttng_ust_field_array_text(char, arrfield2, text, 10)
ctf_sequence(char, seqfield1, text,
size_t, textlen)
ctf_sequence_text(char, seqfield2, text,
lttng_ust_field_integer(long, longfield, anint)
lttng_ust_field_integer_network(int, netintfield, netint)
lttng_ust_field_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)
- ctf_array_network_hex(long, arrfield1_network_hex, values, 3)
- ctf_array_text(char, arrfield2, text, 10)
+ lttng_ust_field_array_nowrite(long, arrfield1z, values, 3)
+ lttng_ust_field_array(long, blah, values, 3)
+ lttng_ust_field_array(long, arrfield1, values, 3)
+ lttng_ust_field_array_hex(long, arrfield1_hex, values, 3)
+ lttng_ust_field_array_network(long, arrfield1_network, values, 3)
+ lttng_ust_field_array_network_hex(long, arrfield1_network_hex, values, 3)
+ lttng_ust_field_array_text(char, arrfield2, text, 10)
ctf_sequence(char, seqfield1, text,
size_t, textlen)
ctf_sequence_nowrite(char, seqfield1z, text,
lttng_ust_field_integer(long, longfield, anint)
lttng_ust_field_integer_network(int, netintfield, netint)
lttng_ust_field_integer_network_hex(int, netintfieldhex, netint)
- ctf_array(long, arrfield1, values, 3)
- ctf_array_text(char, arrfield2, text, 10)
+ lttng_ust_field_array(long, arrfield1, values, 3)
+ lttng_ust_field_array_text(char, arrfield2, text, 10)
ctf_sequence(char, seqfield1, text,
size_t, textlen)
ctf_sequence_text(char, seqfield2, text,