Allow weak binding from instrumented apps to liblttng-ust
[lttng-ust.git] / tests / fork / fork.c
index 17162574195a9f89853ea35f7138cc61b5df0536..0d2906901e4ccb1b8ab0320bd3e610253b9d9157 100644 (file)
@@ -22,6 +22,7 @@
 #include <sys/types.h>
 #include <stdlib.h>
 
+#define TRACEPOINT_DEFINE
 #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());
-       tracepoint(ust_tests_fork_before_fork);
+       tracepoint(ust_tests_forkbefore_fork);
 
        result = fork();
        if (result == -1) {
@@ -47,7 +48,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) {
@@ -55,7 +56,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.024333 seconds and 4 git commands to generate.