-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
dmclock: initial commit of dmclock QoS library #14330
Changes from 1 commit
d6b04e3
0bca9fe
06b037b
e80a884
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,6 +332,17 @@ add_subdirectory(json_spirit) | |
|
||
include_directories("${CMAKE_SOURCE_DIR}/src/xxHash") | ||
|
||
set(GMOCK_INCLUDE_DIRS | ||
"${CMAKE_SOURCE_DIR}/src/googletest/googletest/include/gmock") | ||
set(GTEST_INCLUDE_DIRS | ||
"${CMAKE_SOURCE_DIR}/src/googletest/googletest/include/gtest") | ||
|
||
include_directories("${CMAKE_SOURCE_DIR}/src/dmclock/src") | ||
include_directories("${CMAKE_SOURCE_DIR}/src/dmclock/support/src") | ||
|
||
# needed for source files that friend unit tests (e.g., using FRIEND_TEST) | ||
include_directories("${CMAKE_SOURCE_DIR}/src/googletest/googletest/include") | ||
|
||
set(xio_common_srcs) | ||
if(HAVE_XIO) | ||
list(APPEND xio_common_srcs | ||
|
@@ -809,6 +820,7 @@ set(cls_references_files objclass/class_api.cc) | |
add_library(cls_references_objs OBJECT ${cls_references_files}) | ||
|
||
add_subdirectory(osd) | ||
|
||
set(ceph_osd_srcs | ||
ceph_osd.cc) | ||
add_executable(ceph-osd ${ceph_osd_srcs} | ||
|
@@ -842,6 +854,18 @@ add_subdirectory(compressor) | |
|
||
add_subdirectory(tools) | ||
|
||
# dmClock | ||
|
||
add_subdirectory(dmclock) # after gmock | ||
add_dependencies(tests dmclock-tests dmclock-data-struct-tests) | ||
|
||
if(WITH_TESTS) | ||
install(PROGRAMS | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-tests | ||
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/dmclock-data-struct-tests | ||
DESTINATION bin) | ||
endif(WITH_TESTS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ivancich This is where the build of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we could change the guard to some other conditional (and not package these two binaries), then the problem I'm having will be solved I think! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. e.g. in and then s/WITH_TESTS/WITH_DMCLOCK_TESTS/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then somebody who wanted to build these binaries could pass There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you look at where this is heading (https://github.com/ivancich/ceph-fork/tree/wip-bring-in-dmclock-p2-gtest) all that is gone. dmclock tests won't even be built unless you do something like "make dmclock-tests". They're detached from ceph's tests. I think that'll give you what you want, no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. although this [1] appears to be building the dmclock tests |
||
|
||
if(HAVE_INTEL) | ||
add_subdirectory(crypto/isa-l) | ||
endif(HAVE_INTEL) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line would get moved into the proposed
WITH_DMCLOCK_TESTS
conditional