From: lizhipeng Date: Fri, 22 Aug 2025 07:25:32 +0000 (+0800) Subject: rados/lttng: add lttng open *tp.so failed error message X-Git-Tag: testing/wip-vshankar-testing-20250915.121327-debug~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a4a6cfe3fc0e9808a834510d207ccd6d754b0fa;p=ceph-ci.git rados/lttng: add lttng open *tp.so failed error message fixes:https://tracker.ceph.com/issues/72059 Signed-off-by: lizhipeng --- diff --git a/src/common/TracepointProvider.cc b/src/common/TracepointProvider.cc index 413f4e8c4a9..6c7c1037fb1 100644 --- a/src/common/TracepointProvider.cc +++ b/src/common/TracepointProvider.cc @@ -3,6 +3,7 @@ #include "common/TracepointProvider.h" #include "common/config.h" +#include "common/dout.h" TracepointProvider::TracepointProvider(CephContext *cct, const char *library, const char *config_key) @@ -40,6 +41,10 @@ void TracepointProvider::verify_config(const ConfigProxy& conf) { } m_handle = dlopen(m_library.c_str(), RTLD_NOW | RTLD_NODELETE); + if (!m_handle) { + lderr(m_cct) << __func__ << " failed dlopen(): "<< m_library.c_str() <<", " + << dlerror() << dendl; + } ceph_assert(m_handle); }