10 #include <ust/marker.h>
14 void inthandler(int sig
)
16 printf("in handler\n");
20 int init_int_handler(void)
25 result
= sigemptyset(&act
.sa_mask
);
27 PERROR("sigemptyset");
31 act
.sa_handler
= inthandler
;
32 act
.sa_flags
= SA_RESTART
;
34 /* Only defer ourselves. Also, try to restart interrupted
35 * syscalls to disturb the traced program as little as possible.
37 result
= sigaction(SIGINT
, &act
, NULL
);
52 printf("Hello, World!\n");
56 trace_mark(ust
, bar
, "str %s", "FOOBAZ");
57 trace_mark(ust
, bar2
, "number1 %d number2 %d", 53, 9800);
58 trace_hello_tptest(i
);
64 ltt_trace_stop("auto");
65 ltt_trace_destroy("auto");
This page took 0.031757 seconds and 5 git commands to generate.