0533173dee211171e320d5868eeb325240121643
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);
74 ltt_trace_stop("auto");
75 ltt_trace_destroy("auto");
This page took 0.042167 seconds and 4 git commands to generate.