Tracepoint API change: combine TP_PROTO and TP_VARS into TP_ARGS, remove _NOARGS...
[lttng-ust.git] / tests / fork / fork.c
index be96d817d8df9fa8172f8090187069b37b8f6ca8..f15a692535d165a1d0ecb7c914e3f18b5d3e7120 100644 (file)
@@ -24,7 +24,6 @@
 
 #define TRACEPOINT_CREATE_PROBES
 #include "ust_tests_fork.h"
-TRACEPOINT_LIB
 
 int main(int argc, char **argv, char *env[])
 {
@@ -36,7 +35,7 @@ int main(int argc, char **argv, char *env[])
        }
 
        printf("Fork test program, parent pid is %d\n", getpid());
-       tracepoint(ust_tests_fork_before_fork);
+       tracepoint(ust_tests_forkbefore_fork);
 
        result = fork();
        if (result == -1) {
@@ -48,7 +47,7 @@ int main(int argc, char **argv, char *env[])
 
                printf("Child pid is %d\n", getpid());
 
-               tracepoint(ust_tests_fork_after_fork_child, getpid());
+               tracepoint(ust_tests_forkafter_fork_child, getpid());
 
                result = execve(argv[1], args, env);
                if (result == -1) {
@@ -56,7 +55,7 @@ int main(int argc, char **argv, char *env[])
                        return 1;
                }
        } else {
-               tracepoint(ust_tests_fork_after_fork_parent);
+               tracepoint(ust_tests_forkafter_fork_parent);
        }
 
        return 0;
This page took 0.025207 seconds and 4 git commands to generate.