X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Fhello.c;h=b265b348f2d0fa8615b194893b15065ecfdc6165;hb=e822f505be95ac8c30c7b535a7b48c05ed0c1293;hp=0725163645e0e12757db364b9383d1590fb23607;hpb=5dba59370c99b0d253f1bda39b12a0a076ef09c6;p=lttng-ust.git diff --git a/tests/hello/hello.c b/tests/hello/hello.c index 07251636..b265b348 100644 --- a/tests/hello/hello.c +++ b/tests/hello/hello.c @@ -28,6 +28,7 @@ #include #include "ust_tests_hello.h" +TRACEPOINT_LIB void inthandler(int sig) { @@ -40,6 +41,7 @@ int init_int_handler(void) int result; struct sigaction act; + memset(&act, 0, sizeof(act)); result = sigemptyset(&act.sa_mask); if (result == -1) { perror("sigemptyset"); @@ -66,6 +68,8 @@ int main(int argc, char **argv) int i; long values[] = { 1, 2, 3 }; char text[10] = "test"; + double dbl = 2.0; + float flt = 2222.0; init_int_handler(); @@ -73,10 +77,11 @@ int main(int argc, char **argv) sleep(1); - for (i = 0; i < 50; i++) { + //for (i = 0; i < 50; i++) { + for (i = 0; i < 1000000; i++) { tracepoint(ust_tests_hello_tptest, i, values, - text, strlen(text)); - usleep(100000); + text, strlen(text), dbl, flt); + //usleep(100000); } return 0; }