projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add missing JUL loglevel handling
[lttng-ust.git]
/
liblttng-ust-dl
/
ustdl.c
diff --git
a/liblttng-ust-dl/ustdl.c
b/liblttng-ust-dl/ustdl.c
index dbde8b7fedd9976d7f4f28619c58d0c16afe3e3c..ceb9b5bad8115140c03848bb21cf01373cbd02d0 100644
(file)
--- a/
liblttng-ust-dl/ustdl.c
+++ b/
liblttng-ust-dl/ustdl.c
@@
-16,6
+16,7
@@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#define _LGPL_SOURCE
#define _GNU_SOURCE
#include <inttypes.h>
#include <dlfcn.h>
#define _GNU_SOURCE
#include <inttypes.h>
#include <dlfcn.h>
@@
-89,7
+90,7
@@
void lttng_ust_baddr_push(void *so_base, const char *so_name)
void *dlopen(const char *filename, int flag)
{
void *handle = _lttng_ust_dl_libc_dlopen(filename, flag);
void *dlopen(const char *filename, int flag)
{
void *handle = _lttng_ust_dl_libc_dlopen(filename, flag);
- if (handle) {
+ if (
__tracepoint_ptrs_registered &&
handle) {
struct link_map *p = NULL;
if (dlinfo(handle, RTLD_DI_LINKMAP, &p) != -1 && p != NULL
&& p->l_addr != 0)
struct link_map *p = NULL;
if (dlinfo(handle, RTLD_DI_LINKMAP, &p) != -1 && p != NULL
&& p->l_addr != 0)
@@
-100,7
+101,7
@@
void *dlopen(const char *filename, int flag)
int dlclose(void *handle)
{
int dlclose(void *handle)
{
- if (handle) {
+ if (
__tracepoint_ptrs_registered &&
handle) {
struct link_map *p = NULL;
if (dlinfo(handle, RTLD_DI_LINKMAP, &p) != -1 && p != NULL
&& p->l_addr != 0)
struct link_map *p = NULL;
if (dlinfo(handle, RTLD_DI_LINKMAP, &p) != -1 && p != NULL
&& p->l_addr != 0)
This page took
0.023429 seconds
and
4
git commands to generate.