5f05e225641610960346a80773f57f55862d9bdc
9 #include "../libmarkers/marker.h"
12 #include "marker-control.h"
17 void probe(const struct marker
*mdata
,
18 void *probe_private
, void *call_private
,
19 const char *fmt
, va_list *args
)
24 void inthandler(int sig
)
26 printf("in handler\n");
30 int init_int_handler(void)
35 result
= sigemptyset(&act
.sa_mask
);
37 PERROR("sigemptyset");
41 act
.sa_handler
= inthandler
;
42 act
.sa_flags
= SA_RESTART
;
44 /* Only defer ourselves. Also, try to restart interrupted
45 * syscalls to disturb the traced program as little as possible.
47 result
= sigaction(SIGINT
, &act
, NULL
);
63 printf("Hello, World!\n");
67 trace_mark(ust
, bar
, "str %s", "FOOBAZ");
68 trace_mark(ust
, bar2
, "number1 %d number2 %d", 53, 9800);
69 trace_hello_tptest(i
);
75 ltt_trace_stop("auto");
76 ltt_trace_destroy("auto");
This page took 0.032723 seconds and 3 git commands to generate.