* 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>
{
int (*fptr)();
- trace_mark(ust, from_main_before_lib, "%s", "Event occured in the main program before"
+ ust_marker(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);
(*fptr)();
dlclose(lib_handle);
- trace_mark(ust, from_main_after_lib,"%s", "Event occured in the main program after "
+ ust_marker(from_main_after_lib,"%s", "Event occured in the main program after "
"the library has been closed\n");
return 0;