diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-10-13 08:36:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-10-13 08:36:33 +0000 |
commit | a30a849b78fa4fe8552141b7b2802d1af1b18c09 (patch) | |
tree | fab3c8bf29bf2d565595d4fa6a9413916ff02fee /CMakeLists.txt | |
parent | Adding upstream version 1.17.1. (diff) | |
download | netdata-a30a849b78fa4fe8552141b7b2802d1af1b18c09.tar.xz netdata-a30a849b78fa4fe8552141b7b2802d1af1b18c09.zip |
Adding upstream version 1.18.0.upstream/1.18.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f2ec3169..75a5427a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -400,6 +400,10 @@ set(PERF_PLUGIN_FILES collectors/perf.plugin/perf_plugin.c ) +set(SLABINFO_PLUGIN_FILES + collectors/slabinfo.plugin/slabinfo.c + ) + set(PROC_PLUGIN_FILES collectors/proc.plugin/ipc.c collectors/proc.plugin/plugin_proc.c @@ -728,6 +732,7 @@ IF(LINUX) SET(ENABLE_PLUGIN_CGROUP_NETWORK True) SET(ENABLE_PLUGIN_APPS True) SET(ENABLE_PLUGIN_PERF True) + SET(ENABLE_PLUGIN_SLABINFO True) ELSEIF(FREEBSD) add_executable(netdata config.h ${NETDATA_FILES} ${FREEBSD_PLUGIN_FILES}) @@ -737,6 +742,7 @@ ELSEIF(FREEBSD) SET(ENABLE_PLUGIN_CGROUP_NETWORK False) SET(ENABLE_PLUGIN_APPS True) SET(ENABLE_PLUGIN_PERF False) + SET(ENABLE_PLUGIN_SLABINFO False) ELSEIF(MACOS) add_executable(netdata config.h ${NETDATA_FILES} ${MACOS_PLUGIN_FILES}) @@ -746,6 +752,7 @@ ELSEIF(MACOS) SET(ENABLE_PLUGIN_CGROUP_NETWORK False) SET(ENABLE_PLUGIN_APPS False) SET(ENABLE_PLUGIN_PERF False) + SET(ENABLE_PLUGIN_SLABINFO False) ENDIF() @@ -844,6 +851,20 @@ ENDIF() # ----------------------------------------------------------------------------- +# slabinfo.plugin + +IF(ENABLE_PLUGIN_SLABINFO) + message(STATUS "slabinfo.plugin: enabled") + add_executable(slabinfo.plugin config.h ${SLABINFO_PLUGIN_FILES}) + target_link_libraries (slabinfo.plugin libnetdata ${NETDATA_COMMON_LIBRARIES}) + target_include_directories(slabinfo.plugin PUBLIC ${NETDATA_COMMON_INCLUDE_DIRS}) + target_compile_options(slabinfo.plugin PUBLIC ${NETDATA_COMMON_CFLAGS}) +ELSE() + message(STATUS "slabinfo.plugin: disabled") +ENDIF() + + +# ----------------------------------------------------------------------------- # cgroup-network IF(ENABLE_PLUGIN_CGROUP_NETWORK) |