Skip to content

Commit

Permalink
Merge pull request ceph#51875 from Matan-B/wip-matanb-crimson-supress…
Browse files Browse the repository at this point in the history
…-tcmalloc

crimson/osd/lsan_suppressions.cc: Add MallocExtension::Initialize()

Reviewed-by: Samuel Just <[email protected]>
  • Loading branch information
athanatos authored Jun 6, 2023
2 parents cf1446c + 380bc6d commit 03a63b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/crimson/osd/lsan_suppressions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
__attribute__((used))

static char kLSanDefaultSuppressions[] =
"leak:InitModule\n";
"leak:InitModule\n"
"leak:MallocExtension::Initialize\n";

SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() {
return kLSanDefaultSuppressions;
Expand Down
2 changes: 1 addition & 1 deletion src/perfglue/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if(ALLOCATOR STREQUAL "tcmalloc" AND NOT WITH_SEASTAR)
if(ALLOCATOR STREQUAL "tcmalloc")
add_library(heap_profiler STATIC
heap_profiler.cc)
target_link_libraries(heap_profiler
Expand Down
3 changes: 2 additions & 1 deletion src/test/crimson/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ add_executable(test-async-echo
target_link_libraries(test-async-echo ceph-common global)

add_executable(unittest-seastar-alienstore-thread-pool
test_alienstore_thread_pool.cc)
test_alienstore_thread_pool.cc
${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc)
add_ceph_unittest(unittest-seastar-alienstore-thread-pool
--memory 256M --smp 1)
target_link_libraries(unittest-seastar-alienstore-thread-pool
Expand Down
6 changes: 4 additions & 2 deletions src/test/crimson/seastore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ target_link_libraries(

add_executable(unittest-object-data-handler
test_object_data_handler.cc
../gtest_seastar.cc)
../gtest_seastar.cc
${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc)
add_ceph_unittest(unittest-object-data-handler
--memory 256M --smp 1)
target_link_libraries(
Expand All @@ -52,7 +53,8 @@ target_link_libraries(

add_executable(unittest-collection-manager
test_collection_manager.cc
../gtest_seastar.cc)
../gtest_seastar.cc
${PROJECT_SOURCE_DIR}/src/crimson/osd/lsan_suppressions.cc)
add_ceph_test(unittest-collection-manager
unittest-collection-manager --memory 256M --smp 1)
target_link_libraries(
Expand Down

0 comments on commit 03a63b9

Please sign in to comment.