- _float_mant_dig(_type), \
.mant_dig = _float_mant_dig(_type), \
.alignment = lttng_alignof(_type) * CHAR_BIT, \
- .signedness = lttng_is_signed_type(_type), \
.reverse_byte_order = __BYTE_ORDER != __FLOAT_WORD_ORDER, \
}, \
} \
#define ctf_integer_network_hex(_type, _item, _src) \
ctf_integer_ext(_type, _item, _src, BIG_ENDIAN, 16)
+/* ctf_float is redefined at each step */
+
#undef ctf_array
#define ctf_array(_type, _item, _src, _length) \
ctf_array_encoded(_type, _item, _src, _length, none)
int i;
long values[] = { 1, 2, 3 };
char text[10] = "test";
+ double dbl = 2.0;
+ float flt = 2222.0;
init_int_handler();
for (i = 0; i < 50; i++) {
tracepoint(ust_tests_hello_tptest, i, values,
- text, strlen(text));
+ text, strlen(text), dbl, flt);
usleep(100000);
}
return 0;
TRACEPOINT_EVENT(ust_tests_hello_tptest,
TP_PROTO(int anint, long *values,
- char *text, size_t textlen),
- TP_ARGS(anint, values, text, textlen),
+ char *text, size_t textlen,
+ double doublearg, float floatarg),
+ TP_ARGS(anint, values, text, textlen,
+ doublearg, floatarg),
TP_FIELDS(
ctf_integer(int, intfield, anint)
ctf_integer_hex(int, intfield2, anint)
ctf_sequence_text(char, seqfield2, text,
size_t, textlen)
ctf_string(stringfield, text)
+ ctf_float(float, floatfield, floatarg)
+ ctf_float(double, doublefield, doublearg)
))
TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler,