Markers: remove channel name from trace_mark()
[ust.git] / tests / dlopen / dlopen.c
index 9fb0edd90b3dcce49dd9b5e0d51ecec004d0912c..d367580c3698cf86641cb2e7399def4d542837f6 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+/* The aim of this test is to verify whether ust behaves correctly when
+ * tracing a marker that is in a dlopen()'d library. It also checks the
+ * library can be unloaded.
+ */
+
 #include <dlfcn.h>
 #include <stdio.h>
 #include <ust/marker.h>
@@ -23,7 +28,7 @@ int main()
 {
        int (*fptr)();
 
-       trace_mark(ust, from_main_before_lib, "%s", "Event occured in the main program before"
+       trace_mark(from_main_before_lib, "%s", "Event occured in the main program before"
                                                " the opening of the library\n");
        void *lib_handle = dlopen("libdummy.so", RTLD_LAZY);
 
@@ -42,7 +47,7 @@ int main()
        (*fptr)();
        dlclose(lib_handle);
 
-       trace_mark(ust, from_main_after_lib,"%s", "Event occured in the main program after "
+       trace_mark(from_main_after_lib,"%s", "Event occured in the main program after "
                                                "the library has been closed\n");
 
        return 0;
This page took 0.022548 seconds and 4 git commands to generate.