#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
+#include <string.h>
#include "ust_tests_hello.h"
int result;
struct sigaction act;
+ memset(&act, 0, sizeof(act));
result = sigemptyset(&act.sa_mask);
if (result == -1) {
perror("sigemptyset");
{
int i;
long values[] = { 1, 2, 3 };
+ char text[10] = "test";
+ double dbl = 2.0;
+ float flt = 2222.0;
init_int_handler();
sleep(1);
for (i = 0; i < 50; i++) {
- tracepoint(ust_tests_hello_tptest, i, values);
+ tracepoint(ust_tests_hello_tptest, i, values,
+ text, strlen(text), dbl, flt);
usleep(100000);
}
return 0;