Skip to content

Commit

Permalink
[NSDI] commit
Browse files Browse the repository at this point in the history
  • Loading branch information
1a1a11a committed Mar 23, 2021
1 parent 6192a5d commit f734972
Show file tree
Hide file tree
Showing 39 changed files with 7,654 additions and 223 deletions.
2 changes: 2 additions & 0 deletions .sshyncignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
cmake-*
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if (HAVE_TEST)
check_symbol_exists(ck_assert_int_eq check.h CHECK_WORKING)
endif(CHECK_FOUND)
# if we don't have a working version of check, build it
if(NOT CHECK_WORKING OR FORCE_CHECK_BUILD)
if(NOT CHECK_LIBRARIES OR FORCE_CHECK_BUILD)
set(LIBCHECK_PREFIX "${CMAKE_BINARY_DIR}/check")
execute_process(
COMMAND "bash" "${PROJECT_SOURCE_DIR}/ci/install-check.sh" "${LIBCHECK_PREFIX}"
Expand All @@ -195,7 +195,7 @@ if (HAVE_TEST)
set(CHECK_ROOT_DIR "${LIBCHECK_PREFIX}")
find_package(CHECK)
endif(LIBCHECK_RETCODE)
endif(NOT CHECK_WORKING OR FORCE_CHECK_BUILD)
endif(NOT CHECK_LIBRARIES OR FORCE_CHECK_BUILD)

# use fluxcapacitor to mock time
if(OS_PLATFORM STREQUAL "OS_LINUX")
Expand Down Expand Up @@ -263,11 +263,12 @@ add_subdirectory(src)
if(HAVE_TEST)
include_directories(${include_directories} ${CHECK_INCLUDES})
add_subdirectory(test)
if(${OS_PLATFORM} MATCHES "OS_LINUX")
add_subdirectory(benchmarks)
endif()
endif(HAVE_TEST)

#if(${OS_PLATFORM} MATCHES "OS_LINUX")
add_subdirectory(benchmarks)
#endif()


###################
# print a summary #
Expand Down
41 changes: 32 additions & 9 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,24 +1,47 @@
add_subdirectory(storage_cuckoo)
add_subdirectory(storage_slab)
add_subdirectory(storage_seg)
#add_subdirectory(storage_LHD)

set(SOURCE bench_storage.c)

set(SOURCE bench_storage.c shared.c)

set(MODULES_SLAB
bench_storage_slab
slab
time)
bench_storage_slab
slab)

set(MODULES_CUCKOO
bench_storage_cuckoo
cuckoo
time)
bench_storage_cuckoo
cuckoo)

set(MODULES_SEG
bench_storage_seg
seg)

#set(MODULES_LHD
# bench_storage_LHD
# LHD)

set(LIBS
ccommon-static
${CMAKE_THREAD_LIBS_INIT})
time
ccommon-static
${CMAKE_THREAD_LIBS_INIT})

add_executable(bench_slab ${SOURCE})
target_link_libraries(bench_slab ${MODULES_SLAB} ${LIBS})

add_executable(bench_cuckoo ${SOURCE})
target_link_libraries(bench_cuckoo ${MODULES_CUCKOO} ${LIBS})

add_executable(bench_seg ${SOURCE})
target_link_libraries(bench_seg ${MODULES_SEG} ${LIBS})

set(SOURCE_TRACE_REPLAY trace_replay/trace_replay.c trace_replay/reader.c shared.c)
add_executable(trace_replay_slab ${SOURCE_TRACE_REPLAY})
target_link_libraries(trace_replay_slab ${MODULES_SLAB} ${LIBS})

add_executable(trace_replay_seg ${SOURCE_TRACE_REPLAY})
target_link_libraries(trace_replay_seg ${MODULES_SEG} ${LIBS})

#add_executable(trace_replay_LHD ${SOURCE_TRACE_REPLAY})
#target_link_libraries(trace_replay_LHD ${MODULES_LHD} ${LIBS})
Loading

0 comments on commit f734972

Please sign in to comment.