projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make dist: Generate bzip2 instead of gzip
[lttng-ust.git]
/
tests
/
dlopen
/
dlopen.c
diff --git
a/tests/dlopen/dlopen.c
b/tests/dlopen/dlopen.c
index 9fb0edd90b3dcce49dd9b5e0d51ecec004d0912c..ae209028ac059f0fc3c886cd5c6094372eab79ae 100644
(file)
--- a/
tests/dlopen/dlopen.c
+++ b/
tests/dlopen/dlopen.c
@@
-15,6
+15,11
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* 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>
#include <dlfcn.h>
#include <stdio.h>
#include <ust/marker.h>
@@
-23,7
+28,7
@@
int main()
{
int (*fptr)();
{
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);
" the opening of the library\n");
void *lib_handle = dlopen("libdummy.so", RTLD_LAZY);
@@
-42,7
+47,7
@@
int main()
(*fptr)();
dlclose(lib_handle);
(*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;
"the library has been closed\n");
return 0;
This page took
0.024832 seconds
and
4
git commands to generate.