projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test: add UST dl helper test
[lttng-tools.git]
/
tests
/
regression
/
ust
/
ust-dl
/
prog.c
diff --git a/tests/regression/ust/ust-dl/prog.c
b/tests/regression/ust/ust-dl/prog.c
new file mode 100644
(file)
index 0000000..
015eee6
--- /dev/null
+++ b/
tests/regression/ust/ust-dl/prog.c
@@ -0,0
+1,16
@@
+#include <dlfcn.h>
+
+int main()
+{
+ void *handle;
+ int (*foo)();
+
+ handle = dlopen("libfoo.so", RTLD_LAZY);
+ foo = dlsym(handle, "foo");
+
+ (*foo)();
+
+ dlclose(handle);
+
+ return 0;
+}
This page took
0.026509 seconds
and
5
git commands to generate.