summaryrefslogtreecommitdiffstats
path: root/src/ceph_osd.cc
diff options
context:
space:
mode:
authorKefu Chai <tchaikov@gmail.com>2017-05-28 08:45:57 +0200
committerGitHub <noreply@github.com>2017-05-28 08:45:57 +0200
commitef9d93b8eac0faa9b9f10dd6536a9663229d6d2a (patch)
tree7280aa70061d14e3435f6fbc274c276ce8da50ec /src/ceph_osd.cc
parentMerge pull request #15319 from liewegas/wip-upmap (diff)
parenttracing: remove -pie if using function instrumentation (diff)
downloadceph-ef9d93b8eac0faa9b9f10dd6536a9663229d6d2a.tar.xz
ceph-ef9d93b8eac0faa9b9f10dd6536a9663229d6d2a.zip
Merge pull request #15055 from mogeb/wip-with-instrument-functions
cmake: Add -finstrument-functions flag to OSD code Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/ceph_osd.cc')
-rw-r--r--src/ceph_osd.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ceph_osd.cc b/src/ceph_osd.cc
index c60ff866af5..2ecce87308d 100644
--- a/src/ceph_osd.cc
+++ b/src/ceph_osd.cc
@@ -56,6 +56,10 @@ TracepointProvider::Traits osd_tracepoint_traits("libosd_tp.so",
"osd_tracing");
TracepointProvider::Traits os_tracepoint_traits("libos_tp.so",
"osd_objectstore_tracing");
+#ifdef WITH_OSD_INSTRUMENT_FUNCTIONS
+TracepointProvider::Traits cyg_profile_traits("libcyg_profile_tp.so",
+ "osd_function_tracing");
+#endif
} // anonymous namespace
@@ -579,6 +583,9 @@ flushjournal_out:
TracepointProvider::initialize<osd_tracepoint_traits>(g_ceph_context);
TracepointProvider::initialize<os_tracepoint_traits>(g_ceph_context);
+#ifdef WITH_OSD_INSTRUMENT_FUNCTIONS
+ TracepointProvider::initialize<cyg_profile_traits>(g_ceph_context);
+#endif
MonClient mc(g_ceph_context);
if (mc.build_initial_monmap() < 0)