13 #include "marker-control.h"
18 void inthandler(int sig
)
20 printf("in handler\n");
24 int init_int_handler(void)
29 result
= sigemptyset(&act
.sa_mask
);
31 PERROR("sigemptyset");
35 act
.sa_handler
= inthandler
;
36 act
.sa_flags
= SA_RESTART
;
38 /* Only defer ourselves. Also, try to restart interrupted
39 * syscalls to disturb the traced program as little as possible.
41 result
= sigaction(SIGINT
, &act
, NULL
);
57 printf("Hello, World!\n");
61 trace_mark(ust
, bar
, "str %s", "FOOBAZ");
62 trace_mark(ust
, bar2
, "number1 %d number2 %d", 53, 9800);
63 trace_hello_tptest(i
);
69 ltt_trace_stop("auto");
70 ltt_trace_destroy("auto");
This page took 0.032295 seconds and 4 git commands to generate.