diff options
author | Tor Brede Vekterli <[email protected]> | 2023-01-11 10:31:06 +0000 |
---|---|---|
committer | Tor Brede Vekterli <[email protected]> | 2023-01-11 12:29:54 +0000 |
commit | de82bfc3fe492c406a69799f11530fe3b9b97d57 (patch) | |
tree | 2772efbdb8060648d6acd277b597134b86981194 /vespalib/CMakeLists.txt | |
parent | 1402b8c5ac7cf608bcbdabb46873d6a3308ab69d (diff) |
Add utility functionality for trapping memory accesses
At its core this is a way to wrap a range of memory in a way where
all non-zero writes are eventually detected and, if supported by
the underlying OS and hardware, instantly detects both reads and
writes to as much as possible of the underlying memory range.
Implemented using `mprotect` of page-aligned regions under the hood.
Diffstat (limited to 'vespalib/CMakeLists.txt')
-rw-r--r-- | vespalib/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vespalib/CMakeLists.txt b/vespalib/CMakeLists.txt index a3d5054973f..87d9cb559c8 100644 --- a/vespalib/CMakeLists.txt +++ b/vespalib/CMakeLists.txt @@ -193,6 +193,7 @@ vespa_define_module( src/tests/util/generationhandler_stress src/tests/util/hamming src/tests/util/md5 + src/tests/util/memory_trap src/tests/util/mmap_file_allocator src/tests/util/mmap_file_allocator_factory src/tests/util/rcuvector |