Skip to content

Commit b45f2fb

Browse files
Merge pull request ceph#65181 from qiuxinyidian/lttng
rados/lttng: add lttng open *tp.so error message
2 parents 1b881fe + 9a4a6cf commit b45f2fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/common/TracepointProvider.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "common/TracepointProvider.h"
55
#include "common/config.h"
6+
#include "common/dout.h"
67

78
TracepointProvider::TracepointProvider(CephContext *cct, const char *library,
89
const char *config_key)
@@ -40,6 +41,10 @@ void TracepointProvider::verify_config(const ConfigProxy& conf) {
4041
}
4142

4243
m_handle = dlopen(m_library.c_str(), RTLD_NOW | RTLD_NODELETE);
44+
if (!m_handle) {
45+
lderr(m_cct) << __func__ << " failed dlopen(): "<< m_library.c_str() <<", "
46+
<< dlerror() << dendl;
47+
}
4348
ceph_assert(m_handle);
4449
}
4550

0 commit comments

Comments
 (0)