X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Futils%2Ftestapp%2Fgen-ust-nevents%2Ftp.h;h=c9f214ea4e9a3509f8928915443184eb42fd9c43;hb=28f23191dcbf047429d51950a337a57d7a3f866a;hp=351ce83cc9889ed8dde3f5316d9d890571786828;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33;p=lttng-tools.git diff --git a/tests/utils/testapp/gen-ust-nevents/tp.h b/tests/utils/testapp/gen-ust-nevents/tp.h index 351ce83cc..c9f214ea4 100644 --- a/tests/utils/testapp/gen-ust-nevents/tp.h +++ b/tests/utils/testapp/gen-ust-nevents/tp.h @@ -13,106 +13,156 @@ #include -TRACEPOINT_EVENT(tp, tptest1, - TP_ARGS(int, anint, int, netint, long *, values, - char *, text, size_t, textlen, - double, doublearg, float, floatarg), - TP_FIELDS( - ctf_integer(int, intfield, anint) - ctf_integer_hex(int, intfield2, anint) - ctf_integer(long, longfield, anint) - ctf_integer_network(int, netintfield, netint) - ctf_integer_network_hex(int, netintfieldhex, netint) - ctf_array(long, arrfield1, values, 3) - ctf_array_text(char, arrfield2, text, 10) - ctf_sequence(char, seqfield1, text, size_t, textlen) - 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(tp, tptest2, - TP_ARGS(int, anint, int, netint, long *, values, - char *, text, size_t, textlen, - double, doublearg, float, floatarg), - TP_FIELDS( - ctf_integer(int, intfield, anint) - ctf_integer_hex(int, intfield2, anint) - ctf_integer(long, longfield, anint) - ctf_integer_network(int, netintfield, netint) - ctf_integer_network_hex(int, netintfieldhex, netint) - ctf_array(long, arrfield1, values, 3) - ctf_array_text(char, arrfield2, text, 10) - ctf_sequence(char, seqfield1, text, size_t, textlen) - 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(tp, tptest3, - TP_ARGS(int, anint, int, netint, long *, values, - char *, text, size_t, textlen, - double, doublearg, float, floatarg), - TP_FIELDS( - ctf_integer(int, intfield, anint) - ctf_integer_hex(int, intfield2, anint) - ctf_integer(long, longfield, anint) - ctf_integer_network(int, netintfield, netint) - ctf_integer_network_hex(int, netintfieldhex, netint) - ctf_array(long, arrfield1, values, 3) - ctf_array_text(char, arrfield2, text, 10) - ctf_sequence(char, seqfield1, text, size_t, textlen) - 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(tp, tptest4, - TP_ARGS(int, anint, int, netint, long *, values, - char *, text, size_t, textlen, - double, doublearg, float, floatarg), - TP_FIELDS( - ctf_integer(int, intfield, anint) - ctf_integer_hex(int, intfield2, anint) - ctf_integer(long, longfield, anint) - ctf_integer_network(int, netintfield, netint) - ctf_integer_network_hex(int, netintfieldhex, netint) - ctf_array(long, arrfield1, values, 3) - ctf_array_text(char, arrfield2, text, 10) - ctf_sequence(char, seqfield1, text, size_t, textlen) - 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(tp, tptest5, - TP_ARGS(int, anint, int, netint, long *, values, - char *, text, size_t, textlen, - double, doublearg, float, floatarg), - TP_FIELDS( - ctf_integer(int, intfield, anint) - ctf_integer_hex(int, intfield2, anint) - ctf_integer(long, longfield, anint) - ctf_integer_network(int, netintfield, netint) - ctf_integer_network_hex(int, netintfieldhex, netint) - ctf_array(long, arrfield1, values, 3) - ctf_array_text(char, arrfield2, text, 10) - ctf_sequence(char, seqfield1, text, size_t, textlen) - 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( + tp, + tptest1, + TP_ARGS(int, + anint, + int, + netint, + long *, + values, + char *, + text, + size_t, + textlen, + double, + doublearg, + float, + floatarg), + TP_FIELDS(ctf_integer(int, intfield, anint) ctf_integer_hex( + int, intfield2, anint) ctf_integer(long, longfield, anint) + ctf_integer_network(int, netintfield, netint) ctf_integer_network_hex( + int, netintfieldhex, netint) ctf_array(long, arrfield1, values, 3) + ctf_array_text(char, arrfield2, text, 10) ctf_sequence( + char, seqfield1, text, size_t, textlen) + 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( + tp, + tptest2, + TP_ARGS(int, + anint, + int, + netint, + long *, + values, + char *, + text, + size_t, + textlen, + double, + doublearg, + float, + floatarg), + TP_FIELDS(ctf_integer(int, intfield, anint) ctf_integer_hex( + int, intfield2, anint) ctf_integer(long, longfield, anint) + ctf_integer_network(int, netintfield, netint) ctf_integer_network_hex( + int, netintfieldhex, netint) ctf_array(long, arrfield1, values, 3) + ctf_array_text(char, arrfield2, text, 10) ctf_sequence( + char, seqfield1, text, size_t, textlen) + 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( + tp, + tptest3, + TP_ARGS(int, + anint, + int, + netint, + long *, + values, + char *, + text, + size_t, + textlen, + double, + doublearg, + float, + floatarg), + TP_FIELDS(ctf_integer(int, intfield, anint) ctf_integer_hex( + int, intfield2, anint) ctf_integer(long, longfield, anint) + ctf_integer_network(int, netintfield, netint) ctf_integer_network_hex( + int, netintfieldhex, netint) ctf_array(long, arrfield1, values, 3) + ctf_array_text(char, arrfield2, text, 10) ctf_sequence( + char, seqfield1, text, size_t, textlen) + 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( + tp, + tptest4, + TP_ARGS(int, + anint, + int, + netint, + long *, + values, + char *, + text, + size_t, + textlen, + double, + doublearg, + float, + floatarg), + TP_FIELDS(ctf_integer(int, intfield, anint) ctf_integer_hex( + int, intfield2, anint) ctf_integer(long, longfield, anint) + ctf_integer_network(int, netintfield, netint) ctf_integer_network_hex( + int, netintfieldhex, netint) ctf_array(long, arrfield1, values, 3) + ctf_array_text(char, arrfield2, text, 10) ctf_sequence( + char, seqfield1, text, size_t, textlen) + 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( + tp, + tptest5, + TP_ARGS(int, + anint, + int, + netint, + long *, + values, + char *, + text, + size_t, + textlen, + double, + doublearg, + float, + floatarg), + TP_FIELDS(ctf_integer(int, intfield, anint) ctf_integer_hex( + int, intfield2, anint) ctf_integer(long, longfield, anint) + ctf_integer_network(int, netintfield, netint) ctf_integer_network_hex( + int, netintfieldhex, netint) ctf_array(long, arrfield1, values, 3) + ctf_array_text(char, arrfield2, text, 10) ctf_sequence( + char, seqfield1, text, size_t, textlen) + ctf_sequence_text(char, seqfield2, text, size_t, textlen) + ctf_string(stringfield, text) + ctf_float(float, floatfield, floatarg) + ctf_float(double, + doublefield, + doublearg))) #endif /* _TRACEPOINT_TP_H */ -#undef TRACEPOINT_INCLUDE_FILE -#define TRACEPOINT_INCLUDE_FILE ./tp.h +#undef TRACEPOINT_INCLUDE +#define TRACEPOINT_INCLUDE "./tp.h" /* This part must be outside ifdef protection */ #include