X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Fhello.c;h=b265b348f2d0fa8615b194893b15065ecfdc6165;hb=e822f505be95ac8c30c7b535a7b48c05ed0c1293;hp=9cbe149bc7465fc09b27b5b36ad4ea5bcbff1d7b;hpb=513fc97ee8790f552a761f6d99926a567779d4bc;p=lttng-ust.git diff --git a/tests/hello/hello.c b/tests/hello/hello.c index 9cbe149b..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"); @@ -75,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), dbl, flt); - usleep(100000); + //usleep(100000); } return 0; }