From: Mohamad Gebai Date: Thu, 11 May 2017 13:05:31 +0000 (-0400) Subject: cmake: configuration for OSD function instrumentation X-Git-Tag: v12.1.0~57^2~15^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0baebc308c68106c705f12473713de290c32b838;p=ceph.git cmake: configuration for OSD function instrumentation Signed-off-by: Mohamad Gebai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e33cf17744dd..a324f6aeca2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -437,6 +437,8 @@ if(${WITH_LTTNG}) endif() endif(${WITH_LTTNG}) +option(WITH_OSD_INSTRUMENT_FUNCTIONS OFF) + #option for Babeltrace option(HAVE_BABELTRACE "Babeltrace libraries are enabled" ON) if(${HAVE_BABELTRACE}) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index ae8ddca5fd69..406db6b423c4 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -897,6 +897,7 @@ OPTION(osd_fast_fail_on_connection_refused, OPT_BOOL, true) // immediately mark OPTION(osd_pg_object_context_cache_count, OPT_INT, 64) OPTION(osd_tracing, OPT_BOOL, false) // true if LTTng-UST tracepoints should be enabled +OPTION(osd_function_tracing, OPT_BOOL, false) // true if function instrumentation should use LTTng OPTION(osd_fast_info, OPT_BOOL, true) // use fast info attr, if we can diff --git a/src/include/config-h.in.cmake b/src/include/config-h.in.cmake index 8a903ef61083..759e5fcebb93 100644 --- a/src/include/config-h.in.cmake +++ b/src/include/config-h.in.cmake @@ -169,6 +169,9 @@ /* Define if you want to use LTTng */ #cmakedefine WITH_LTTNG +/* Define if you want to OSD function instrumentation */ +#cmakedefine WITH_OSD_INSTRUMENT_FUNCTIONS + /* Define if you want to use Babeltrace */ #cmakedefine WITH_BABELTRACE