Skip to content

Commit

Permalink
NEWS: Add note for malloc hook test bugfix, bump to v1.6.0-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Jun 19, 2019
1 parent f3596f4 commit bd027f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
##
#

## 1.6.0-rc2 (June 13, 2019)
## 1.6.0-rc3 (June 19, 2019)
Features:
- Modular architecture for UCT transports
- ROCm transport re-design: support for managed memory, direct copy, ROCm GDR
Expand All @@ -33,6 +33,8 @@ Bugfixes:
- Fix data race in UCP proxy endpoint
- Static checker fixes
- Fallback to ibv_create_cq() if ibv_create_cq_ex() returns ENOSYS
- Fix malloc hooks test
- Fix checking return status in ucp_client_server example

Tested configurations:
- RDMA: MLNX_OFED 4.5, distribution inbox drivers, rdma-core 22.1
Expand Down
14 changes: 10 additions & 4 deletions test/gtest/ucm/malloc_hook.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ UCS_TEST_F(malloc_hook, test_event_failed) {
status = ucm_test_events(UCM_EVENT_VM_UNMAPPED);
EXPECT_TRUE(status == UCS_ERR_UNSUPPORTED);

/* restore original mmap body */
/* restore original munmap body */
status = ucm_bistro_restore(rp);
ASSERT_UCS_OK(status);
}
Expand All @@ -1040,21 +1040,27 @@ UCS_TEST_F(malloc_hook, test_event_unmap) {
UCS_TEST_SKIP_R("skipping on non-BISTRO hooks");
}

status = event.set(UCM_EVENT_MUNMAP);
status = event.set(UCM_EVENT_MMAP | UCM_EVENT_MUNMAP | UCM_EVENT_VM_UNMAPPED);
ASSERT_UCS_OK(status);

/* set hook to mmap call */
status = ucm_bistro_patch(symbol, (void*)bistro_hook<1>::munmap, &rp);
ASSERT_UCS_OK(status);
EXPECT_NE((intptr_t)rp, NULL);

/* munmap should be broken */
status = ucm_test_events(UCM_EVENT_MUNMAP);
EXPECT_TRUE(status == UCS_ERR_UNSUPPORTED);

status = ucm_test_events(UCM_EVENT_VM_UNMAPPED);
/* vm_unmap should be broken as well, because munmap is broken */
status = ucm_test_events(UCM_EVENT_MUNMAP);
EXPECT_TRUE(status == UCS_ERR_UNSUPPORTED);

/* mmap should still work */
status = ucm_test_events(UCM_EVENT_MMAP);
EXPECT_TRUE(status == UCS_OK);

/* restore original mmap body */
/* restore original munmap body */
status = ucm_bistro_restore(rp);
ASSERT_UCS_OK(status);
}
Expand Down

0 comments on commit bd027f1

Please sign in to comment.