]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/TracepointProvider: add assert if dlopen error. 13430/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 15 Feb 2017 13:23:34 +0000 (21:23 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Wed, 15 Feb 2017 13:23:34 +0000 (21:23 +0800)
Because some reasons, if dlopen error the ceph-osd still work. But we
don't see related tracepoint by 'lttng list -u'. So add this assert to
make easily find the problem.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/TracepointProvider.cc

index 92aa4033d6e8b35fcb23508a48e57aad5576f195..d2165ba32f506d97559be6a89261a879c3b88a96 100644 (file)
@@ -40,5 +40,6 @@ void TracepointProvider::verify_config(const struct md_config_t *conf) {
   }
 
   m_handle = dlopen(m_library.c_str(), RTLD_NOW);
+  assert(m_handle);
 }