const char *, query_name
),
LTTNG_UST_TP_FIELDS(
- ctf_string(query_name, query_name)
+ lttng_ust_field_string(query_name, query_name)
)
)
const char *, alignment
),
LTTNG_UST_TP_FIELDS(
- ctf_string(alignment, alignment)
+ lttng_ust_field_string(alignment, alignment)
)
)
size_t, textlen)
lttng_ust_field_sequence_text(char, seqfield2, text,
size_t, textlen)
- ctf_string(stringfield, text)
+ lttng_ust_field_string(stringfield, text)
lttng_ust_field_float(float, floatfield, floatarg)
lttng_ust_field_float(double, doublefield, doublearg)
)
*/
LTTNG_UST_TP_FIELDS(
/*
- * The ctf_string macro takes a c string and writes it into a field
+ * The lttng_ust_field_string macro takes a c string and writes it into a field
* named "message"
*/
- ctf_string(message, text)
+ lttng_ust_field_string(message, text)
)
)
/*
message, // C++ Style comment
LTTNG_UST_TP_ARGS(const char *, text),
LTTNG_UST_TP_FIELDS(
- ctf_string(message, text)
+ lttng_ust_field_string(message, text)
)
)
/*
size_t, textlen)
lttng_ust_field_sequence_text(char, seqfield2, text,
size_t, textlen)
- ctf_string(stringfield, text)
+ lttng_ust_field_string(stringfield, text)
lttng_ust_field_float(float, floatfield, floatarg)
lttng_ust_field_float(double, doublefield, doublearg)
)
const char *, msg, unsigned int, len, void *, ip),
LTTNG_UST_TP_FIELDS(
lttng_ust_field_integer(int, line, line)
- ctf_string(file, file)
- ctf_string(func, func)
+ lttng_ust_field_string(file, file)
+ lttng_ust_field_string(func, func)
lttng_ust_field_sequence_text(char, msg, msg, unsigned int, len)
ctf_unused(ip)
)
#define ctf_sequence_network_nowrite lttng_ust_field_sequence_network_nowrite
#define ctf_sequence_network_nowrite_hex lttng_ust_field_sequence_network_nowrite_hex
#define ctf_sequence_text_nowrite lttng_ust_field_sequence_text_nowrite
+
+#define ctf_string lttng_ust_field_string
+#define ctf_string_nowrite lttng_ust_field_string_nowrite
#endif /* #if LTTNG_UST_COMPAT_API(0) */
#ifdef __cplusplus
* lttng_ust_field_sequence_text(char, field_c, string, size_t, strlen)
*
* * String, printed as UTF8-encoded string *
- * ctf_string(field_e, string)
+ * lttng_ust_field_string(field_e, string)
*
* * Array sequence of signed integer values *
* lttng_ust_field_array(long, field_f, arg4, FIXED_LEN4)
lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
_length_type, _src_length, UTF8, 1, 10)
-#undef ctf_string_nowrite
-#define ctf_string_nowrite(_item, _src) \
- _ctf_string(_item, _src, 1)
+#undef lttng_ust_field_string_nowrite
+#define lttng_ust_field_string_nowrite(_item, _src) \
+ lttng_ust__field_string(_item, _src, 1)
#undef ctf_unused_nowrite
#define ctf_unused_nowrite(_src) \
#define lttng_ust__field_sequence_encoded(_type, _item, _src, _byte_order, _length_type, \
_src_length, _encoding, _nowrite, _elem_type_base)
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite)
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_item, _src, _nowrite)
#undef _ctf_unused
#define _ctf_unused(_src)
#undef lttng_ust_field_sequence_text
#define lttng_ust_field_sequence_text(_type, _item, _src, _length_type, _src_length)
-#undef ctf_string
-#define ctf_string(_item, _src)
+#undef lttng_ust_field_string
+#define lttng_ust_field_string(_item, _src)
#undef ctf_unused
#define ctf_unused(_src)
#undef lttng_ust_field_sequence_text_nowrite
#define lttng_ust_field_sequence_text_nowrite(_type, _item, _src, _length_type, _src_length)
-#undef ctf_string_nowrite
-#define ctf_string_nowrite(_item, _src)
+#undef lttng_ust_field_string_nowrite
+#define lttng_ust_field_string_nowrite(_item, _src)
#undef ctf_unused_nowrite
#define ctf_unused_nowrite(_src)
lttng_ust__field_sequence_encoded(_type, _item, _src, LTTNG_UST_BYTE_ORDER, \
_length_type, _src_length, UTF8, 0, 10)
-#undef ctf_string
-#define ctf_string(_item, _src) \
- _ctf_string(_item, _src, 0)
+#undef lttng_ust_field_string
+#define lttng_ust_field_string(_item, _src) \
+ lttng_ust__field_string(_item, _src, 0)
#undef ctf_unused
#define ctf_unused(_src) \
.nofilter = 0, \
}),
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite) \
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_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 += sizeof(_type) * __dynamic_len[__dynamic_len_idx]; \
__dynamic_len_idx++;
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite) \
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_item, _src, _nowrite) \
__event_len += __dynamic_len[__dynamic_len_idx++] = \
strlen((_src) ? (_src) : LTTNG_UST__NULL_STRING) + 1;
__stack_data += sizeof(void *); \
}
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite) \
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_item, _src, _nowrite) \
{ \
const void *__ctf_tmp_ptr = \
((_src) ? (_src) : LTTNG_UST__NULL_STRING); \
lttng_ust__event_align = lttng_ust__tp_max_t(size_t, lttng_ust__event_align, lttng_ust_rb_alignof(_length_type)); \
lttng_ust__event_align = lttng_ust__tp_max_t(size_t, lttng_ust__event_align, lttng_ust_rb_alignof(_type));
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite) \
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_item, _src, _nowrite) \
if (0) \
(void) (_src); /* Unused */
else \
__chan->ops->event_pstrcpy_pad(&__ctx, (const char *) (_src), lttng_ust__get_dynamic_len(dest)); \
-#undef _ctf_string
-#define _ctf_string(_item, _src, _nowrite) \
+#undef lttng_ust__field_string
+#define lttng_ust__field_string(_item, _src, _nowrite) \
{ \
const char *__ctf_tmp_string = \
((_src) ? (_src) : LTTNG_UST__NULL_STRING); \
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint64_t, memsz, memsz)
lttng_ust_field_integer_hex(int, flags, flags)
- ctf_string(path, path)
+ lttng_ust_field_string(path, path)
lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
)
lttng_ust_field_integer(uint64_t, memsz, memsz)
lttng_ust_field_integer(Lmid_t, nsid, nsid)
lttng_ust_field_integer_hex(int, flags, flags)
- ctf_string(path, path)
+ lttng_ust_field_string(path, path)
lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
)
ctf_unused(ip)
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint32_t, crc, crc)
- ctf_string(filename, filename)
+ lttng_ust_field_string(filename, filename)
)
)
int, log_level,
int, thread_id),
LTTNG_UST_TP_FIELDS(
- ctf_string(msg, msg)
- ctf_string(logger_name, logger_name)
- ctf_string(class_name, class_name)
- ctf_string(method_name, method_name)
+ lttng_ust_field_string(msg, msg)
+ lttng_ust_field_string(logger_name, logger_name)
+ lttng_ust_field_string(class_name, class_name)
+ lttng_ust_field_string(method_name, method_name)
lttng_ust_field_integer(long, long_millis, millis)
lttng_ust_field_integer(int, int_loglevel, log_level)
lttng_ust_field_integer(int, int_threadid, thread_id)
int, log_level,
const char *, thread_name),
LTTNG_UST_TP_FIELDS(
- ctf_string(msg, msg)
- ctf_string(logger_name, logger_name)
- ctf_string(class_name, class_name)
- ctf_string(method_name, method_name)
- ctf_string(filename, file_name)
+ lttng_ust_field_string(msg, msg)
+ lttng_ust_field_string(logger_name, logger_name)
+ lttng_ust_field_string(class_name, class_name)
+ lttng_ust_field_string(method_name, method_name)
+ lttng_ust_field_string(filename, file_name)
lttng_ust_field_integer(int, line_number, line_number)
lttng_ust_field_integer(long, timestamp, timestamp)
lttng_ust_field_integer(int, int_loglevel, log_level)
- ctf_string(thread_name, thread_name)
+ lttng_ust_field_string(thread_name, thread_name)
)
)
LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, int_event,
LTTNG_UST_TP_ARGS(const char *, name, int, payload),
LTTNG_UST_TP_FIELDS(
- ctf_string(name, name)
+ lttng_ust_field_string(name, name)
lttng_ust_field_integer(int, int_payload, payload)
)
)
LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, int_int_event,
LTTNG_UST_TP_ARGS(const char *, name, int, payload1, int, payload2),
LTTNG_UST_TP_FIELDS(
- ctf_string(name, name)
+ lttng_ust_field_string(name, name)
lttng_ust_field_integer(int, int_payload1, payload1)
lttng_ust_field_integer(int, int_payload2, payload2)
)
LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, long_event,
LTTNG_UST_TP_ARGS(const char *, name, long, payload),
LTTNG_UST_TP_FIELDS(
- ctf_string(name, name)
+ lttng_ust_field_string(name, name)
lttng_ust_field_integer(long, long_payload, payload)
)
)
LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, long_long_event,
LTTNG_UST_TP_ARGS(const char *, name, long, payload1, long, payload2),
LTTNG_UST_TP_FIELDS(
- ctf_string(name, name)
+ lttng_ust_field_string(name, name)
lttng_ust_field_integer(long, long_payload1, payload1)
lttng_ust_field_integer(long, long_payload2, payload2)
)
LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_java, string_event,
LTTNG_UST_TP_ARGS(const char *, name, const char *, payload),
LTTNG_UST_TP_FIELDS(
- ctf_string(name, name)
- ctf_string(string_payload, payload)
+ lttng_ust_field_string(name, name)
+ lttng_ust_field_string(string_payload, payload)
)
)
const char *, threadName
),
LTTNG_UST_TP_FIELDS(
- ctf_string(asctime, asctime)
- ctf_string(msg, msg)
- ctf_string(logger_name, logger_name)
- ctf_string(funcName, funcName)
+ lttng_ust_field_string(asctime, asctime)
+ lttng_ust_field_string(msg, msg)
+ lttng_ust_field_string(logger_name, logger_name)
+ lttng_ust_field_string(funcName, funcName)
lttng_ust_field_integer(unsigned int, lineno, lineno)
lttng_ust_field_integer(unsigned int, int_loglevel, int_loglevel)
lttng_ust_field_integer(unsigned int, thread, thread)
- ctf_string(threadName, threadName)
+ lttng_ust_field_string(threadName, threadName)
)
)
ctf_unused(session)
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint64_t, memsz, memsz)
- ctf_string(path, path)
+ lttng_ust_field_string(path, path)
lttng_ust_field_integer(uint8_t, is_pic, is_pic)
lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
ctf_unused(session)
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint32_t, crc, crc)
- ctf_string(filename, filename)
+ lttng_ust_field_string(filename, filename)
)
)
ctf_unused(ip)
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint64_t, memsz, memsz)
- ctf_string(path, path)
+ lttng_ust_field_string(path, path)
lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
)
ctf_unused(ip)
lttng_ust_field_integer_hex(void *, baddr, baddr)
lttng_ust_field_integer(uint32_t, crc, crc)
- ctf_string(filename, filename)
+ lttng_ust_field_string(filename, filename)
)
)
size_t, textlen)
lttng_ust_field_sequence_text(char, seqfield2, text,
size_t, textlen)
- ctf_string(stringfield, text)
+ lttng_ust_field_string(stringfield, text)
lttng_ust_field_float(float, floatfield, floatarg)
lttng_ust_field_float(double, doublefield, doublearg)
ctf_enum(ust_tests_hello, my_enum, int, enumfield, enumarg)
size_t, textlen)
lttng_ust_field_sequence_network(long, seqfield_network_3, values,
size_t, 3)
- ctf_string(stringfield, text)
+ lttng_ust_field_string(stringfield, text)
lttng_ust_field_float(float, floatfield, floatarg)
lttng_ust_field_float(double, doublefield, doublearg)
lttng_ust_field_integer(bool, boolfield, boolarg)
size_t, textlen)
lttng_ust_field_sequence_text(char, seqfield2, text,
size_t, textlen)
- ctf_string(stringfield, text)
+ lttng_ust_field_string(stringfield, text)
lttng_ust_field_float(float, floatfield, floatarg)
lttng_ust_field_float(double, doublefield, doublearg)
lttng_ust_field_integer(bool, boolfield, boolarg)