4463a89f2fcf0e128302a16109f3db5ef6c2fd72
10 #include <ust/marker.h>
15 void inthandler(int sig
)
17 printf("in handler\n");
21 int init_int_handler(void)
26 result
= sigemptyset(&act
.sa_mask
);
28 PERROR("sigemptyset");
32 act
.sa_handler
= inthandler
;
33 act
.sa_flags
= SA_RESTART
;
35 /* Only defer ourselves. Also, try to restart interrupted
36 * syscalls to disturb the traced program as little as possible.
38 result
= sigaction(SIGINT
, &act
, NULL
);
53 printf("Hello, World!\n");
57 trace_mark(ust
, bar
, "str %s", "FOOBAZ");
58 trace_mark(ust
, bar2
, "number1 %d number2 %d", 53, 9800);
59 trace_hello_tptest(i
);
65 ltt_trace_stop("auto");
66 ltt_trace_destroy("auto");
This page took 0.02972 seconds and 3 git commands to generate.