projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: don't use GNU old-style field designator extension
[lttng-ust.git]
/
tests
/
fork
/
fork.c
diff --git
a/tests/fork/fork.c
b/tests/fork/fork.c
index 17162574195a9f89853ea35f7138cc61b5df0536..0d2906901e4ccb1b8ab0320bd3e610253b9d9157 100644
(file)
--- a/
tests/fork/fork.c
+++ b/
tests/fork/fork.c
@@
-22,6
+22,7
@@
#include <sys/types.h>
#include <stdlib.h>
#include <sys/types.h>
#include <stdlib.h>
+#define TRACEPOINT_DEFINE
#define TRACEPOINT_CREATE_PROBES
#include "ust_tests_fork.h"
#define TRACEPOINT_CREATE_PROBES
#include "ust_tests_fork.h"
@@
-35,7
+36,7
@@
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());
- tracepoint(ust_tests_fork
_
before_fork);
+ tracepoint(ust_tests_fork
,
before_fork);
result = fork();
if (result == -1) {
result = fork();
if (result == -1) {
@@
-47,7
+48,7
@@
int main(int argc, char **argv, char *env[])
printf("Child pid is %d\n", getpid());
printf("Child pid is %d\n", getpid());
- tracepoint(ust_tests_fork
_
after_fork_child, getpid());
+ tracepoint(ust_tests_fork
,
after_fork_child, getpid());
result = execve(argv[1], args, env);
if (result == -1) {
result = execve(argv[1], args, env);
if (result == -1) {
@@
-55,7
+56,7
@@
int main(int argc, char **argv, char *env[])
return 1;
}
} else {
return 1;
}
} else {
- tracepoint(ust_tests_fork
_
after_fork_parent);
+ tracepoint(ust_tests_fork
,
after_fork_parent);
}
return 0;
}
return 0;
This page took
0.023946 seconds
and
4
git commands to generate.