ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
ctf_string(stringfield, text)
- ctf_float(float, floatfield, floatarg)
- ctf_float(double, doublefield, doublearg)
+ lttng_ust_field_float(float, floatfield, floatarg)
+ lttng_ust_field_float(double, doublefield, doublearg)
)
)
LTTNG_UST_TRACEPOINT_LOGLEVEL(ust_tests_demo2, loop, LTTNG_UST_TRACEPOINT_LOGLEVEL_WARNING)
ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
ctf_string(stringfield, text)
- ctf_float(float, floatfield, floatarg)
- ctf_float(double, doublefield, doublearg)
+ lttng_ust_field_float(float, floatfield, floatarg)
+ lttng_ust_field_float(double, doublefield, doublearg)
)
)
#define ctf_integer_network lttng_ust_field_integer_network
#define ctf_integer_network_hex lttng_ust_field_integer_network_hex
#define ctf_integer_nowrite lttng_ust_field_integer_nowrite
+
+#define ctf_float lttng_ust_field_float
+#define ctf_float_nowrite lttng_ust_field_float_nowrite
#endif /* #if LTTNG_UST_COMPAT_API(0) */
#ifdef __cplusplus
#define lttng_ust_field_integer_nowrite(_type, _item, _src) \
lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BYTE_ORDER, 10, 1)
-#undef ctf_float_nowrite
-#define ctf_float_nowrite(_type, _item, _src) \
- _ctf_float(_type, _item, _src, 1)
+#undef lttng_ust_field_float_nowrite
+#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) \
#define lttng_ust__field_integer_ext(_type, _item, _src, _byte_order, _base, \
_nowrite)
-#undef _ctf_float
-#define _ctf_float(_type, _item, _src, _nowrite)
+#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_integer_network_hex
#define lttng_ust_field_integer_network_hex(_type, _item, _src)
-#undef ctf_float
-#define ctf_float(_type, _item, _src)
+#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_integer_nowrite
#define lttng_ust_field_integer_nowrite(_type, _item, _src)
-#undef ctf_float_nowrite
-#define ctf_float_nowrite(_type, _item, _src)
+#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)
#define lttng_ust_field_integer_network_hex(_type, _item, _src) \
lttng_ust__field_integer_ext(_type, _item, _src, LTTNG_UST_BIG_ENDIAN, 16, 0)
-#undef ctf_float
-#define ctf_float(_type, _item, _src) \
- _ctf_float(_type, _item, _src, 0)
+#undef lttng_ust_field_float
+#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) \
.nofilter = 0, \
}),
-#undef _ctf_float
-#define _ctf_float(_type, _item, _src, _nowrite) \
+#undef lttng_ust__field_float
+#define lttng_ust__field_float(_type, _item, _src, _nowrite) \
LTTNG_UST_COMPOUND_LITERAL(const struct lttng_ust_event_field, { \
.struct_size = sizeof(struct lttng_ust_event_field), \
.name = #_item, \
__event_len += lttng_ust_ring_buffer_align(__event_len, lttng_ust_rb_alignof(_type)); \
__event_len += sizeof(_type);
-#undef _ctf_float
-#define _ctf_float(_type, _item, _src, _nowrite) \
+#undef lttng_ust__field_float
+#define lttng_ust__field_float(_type, _item, _src, _nowrite) \
if (0) \
(void) (_src); /* Unused */ \
__event_len += lttng_ust_ring_buffer_align(__event_len, lttng_ust_rb_alignof(_type)); \
} \
__stack_data += sizeof(int64_t);
-#undef _ctf_float
-#define _ctf_float(_type, _item, _src, _nowrite) \
+#undef lttng_ust__field_float
+#define lttng_ust__field_float(_type, _item, _src, _nowrite) \
{ \
double __ctf_tmp_double = (double) (_type) (_src); \
memcpy(__stack_data, &__ctf_tmp_double, sizeof(double)); \
(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_float
-#define _ctf_float(_type, _item, _src, _nowrite) \
+#undef lttng_ust__field_float
+#define lttng_ust__field_float(_type, _item, _src, _nowrite) \
if (0) \
(void) (_src); /* Unused */ \
lttng_ust__event_align = lttng_ust__tp_max_t(size_t, lttng_ust__event_align, lttng_ust_rb_alignof(_type));
__chan->ops->event_write(&__ctx, &__tmp, sizeof(__tmp), lttng_ust_rb_alignof(__tmp));\
}
-#undef _ctf_float
-#define _ctf_float(_type, _item, _src, _nowrite) \
+#undef lttng_ust__field_float
+#define lttng_ust__field_float(_type, _item, _src, _nowrite) \
{ \
_type __tmp = (_src); \
__chan->ops->event_write(&__ctx, &__tmp, sizeof(__tmp), lttng_ust_rb_alignof(__tmp));\
ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
ctf_string(stringfield, text)
- ctf_float(float, floatfield, floatarg)
- ctf_float(double, doublefield, doublearg)
+ lttng_ust_field_float(float, floatfield, floatarg)
+ lttng_ust_field_float(double, doublefield, doublearg)
ctf_enum(ust_tests_hello, my_enum, int, enumfield, enumarg)
)
)
ctf_sequence_network(long, seqfield_network_3, values,
size_t, 3)
ctf_string(stringfield, text)
- ctf_float(float, floatfield, floatarg)
- ctf_float(double, doublefield, doublearg)
+ lttng_ust_field_float(float, floatfield, floatarg)
+ lttng_ust_field_float(double, doublefield, doublearg)
lttng_ust_field_integer(bool, boolfield, boolarg)
lttng_ust_field_integer_nowrite(int, filterfield, anint)
)
ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
ctf_string(stringfield, text)
- ctf_float(float, floatfield, floatarg)
- ctf_float(double, doublefield, doublearg)
+ lttng_ust_field_float(float, floatfield, floatarg)
+ lttng_ust_field_float(double, doublefield, doublearg)
lttng_ust_field_integer(bool, boolfield, boolarg)
lttng_ust_field_integer_nowrite(int, filterfield, anint)
)