projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change libtap.so to a local static library which is not installed
[lttng-ust.git]
/
tests
/
fork
/
fork.c
diff --git
a/tests/fork/fork.c
b/tests/fork/fork.c
index 5ce3d6d665165c8cd2285377fa63403451116b44..f9b515c19c8ba70b5d68b21b939a022c62221359 100644
(file)
--- a/
tests/fork/fork.c
+++ b/
tests/fork/fork.c
@@
-32,7
+32,10
@@
int main(int argc, char **argv, char *env[])
}
printf("Fork test program, parent pid is %d\n", getpid());
}
printf("Fork test program, parent pid is %d\n", getpid());
- trace_mark(ust, before_fork, MARK_NOARGS);
+ ust_marker(before_fork, UST_MARKER_NOARGS);
+
+ /* Sleep here to make sure the consumer is initialized before we fork */
+ sleep(1);
result = fork();
if(result == -1) {
result = fork();
if(result == -1) {
@@
-44,9
+47,9
@@
int main(int argc, char **argv, char *env[])
printf("Child pid is %d\n", getpid());
printf("Child pid is %d\n", getpid());
-
trace_mark(ust, after_fork_child, MARK
_NOARGS);
+
ust_marker(after_fork_child, UST_MARKER
_NOARGS);
-
trace_mark(ust,
before_exec, "pid %d", getpid());
+
ust_marker(
before_exec, "pid %d", getpid());
result = execve(argv[1], args, env);
if(result == -1) {
result = execve(argv[1], args, env);
if(result == -1) {
@@
-54,10
+57,10
@@
int main(int argc, char **argv, char *env[])
return 1;
}
return 1;
}
-
trace_mark(ust,
after_exec, "pid %d", getpid());
+
ust_marker(
after_exec, "pid %d", getpid());
}
else {
}
else {
-
trace_mark(ust, after_fork_parent, MARK
_NOARGS);
+
ust_marker(after_fork_parent, UST_MARKER
_NOARGS);
}
return 0;
}
return 0;
This page took
0.0246 seconds
and
4
git commands to generate.