int main(int argc, char **argv)
{
int i;
+ long values[] = { 1, 2, 3 };
init_int_handler();
sleep(1);
for (i = 0; i < 50; i++) {
- tracepoint(ust_tests_hello_tptest, i);
+ tracepoint(ust_tests_hello_tptest, i, values);
usleep(100000);
}
return 0;
#include <ust/tracepoint.h>
TRACEPOINT_EVENT(ust_tests_hello_tptest,
- TP_PROTO(int anint),
- TP_ARGS(anint),
+ TP_PROTO(int anint, long *values),
+ TP_ARGS(anint, values),
TP_FIELDS(
ctf_integer(int, intfield, anint)
ctf_integer_hex(int, intfield2, anint)
ctf_integer_network(int, intfield3, anint)
ctf_integer_network_hex(int, intfield4, anint)
+ ctf_array(long, arrfield1, values, 3)
))
TRACEPOINT_EVENT_NOARGS(ust_tests_hello_tptest_sighandler,