c48b6df53359474c1410323bbf3f4a3631766093
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.030877 seconds and 4 git commands to generate.