Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: build tracepoint libraries for vstart target #14354

Merged
merged 1 commit into from Apr 6, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -1038,6 +1038,9 @@ if(WITH_RADOSGW)
add_dependencies(vstart radosgw radosgw-admin)
endif(WITH_RADOSGW)

if(WITH_LTTNG)
add_dependencies(vstart tracepoint_libraries)
endif(WITH_LTTNG)

# Everything you need to run CephFS tests
add_custom_target(cephfs_testing DEPENDS
Expand Down
3 changes: 3 additions & 0 deletions src/tracing/CMakeLists.txt
Expand Up @@ -6,6 +6,8 @@ set(working_dir ${CMAKE_BINARY_DIR}/include)
set(header_dir ${working_dir}/tracing)
file(MAKE_DIRECTORY ${header_dir})

add_custom_target(tracepoint_libraries)

file(GLOB tps "*.tp")
foreach(tp ${tps})
get_filename_component(name ${tp} NAME_WE)
Expand Down Expand Up @@ -36,6 +38,7 @@ function(add_tracing_library name tracings version)
VERSION ${version}
SOVERSION ${soversion}
INSTALL_RPATH "")
add_dependencies(tracepoint_libraries ${name})
endfunction()

set(osd_traces oprequest.tp osd.tp pg.tp)
Expand Down