X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fhello%2Fhello.c;h=03d07b675e8e99107ec12c78bd6a5de1f4ef9815;hb=193183fb924aef705f30358e54e7386a3a64c78d;hp=afa4a713bf2569b536404c77cf322fbfe9f1a486;hpb=41aaf8a5de3c7c3570e0fe063f1565385b4a4dbd;p=lttng-ust.git diff --git a/tests/hello/hello.c b/tests/hello/hello.c index afa4a713..03d07b67 100644 --- a/tests/hello/hello.c +++ b/tests/hello/hello.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "ust_tests_hello.h" @@ -39,6 +40,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"); @@ -63,16 +65,22 @@ int init_int_handler(void) 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(); printf("Hello, World!\n"); - sleep(1); + sleep(10); - for (i = 0; i < 50; i++) { - tracepoint(ust_tests_hello_tptest, i); - usleep(100000); + //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); } return 0; }