b2d7d07026d3276f1cc48769cbb4df4b060ae414
6 #include <ust/marker.h>
8 int main(int argc
, char **argv
, char *env
[])
13 fprintf(stderr
, "usage: fork PROG_TO_EXEC\n");
17 printf("Fork test program, parent pid is %d\n", getpid());
18 trace_mark(ust
, before_fork
, MARK_NOARGS
);
26 char *args
[] = {"fork2", NULL
};
28 printf("Child pid is %d\n", getpid());
30 trace_mark(ust
, after_fork_child
, MARK_NOARGS
);
32 trace_mark(ust
, before_exec
, "pid %d", getpid());
34 result
= execve(argv
[1], args
, env
);
40 trace_mark(ust
, after_exec
, "pid %d", getpid());
43 trace_mark(ust
, after_fork_parent
, MARK_NOARGS
);
This page took 0.033894 seconds and 4 git commands to generate.