diff --git a/include/ircd/allocator.h b/include/ircd/allocator.h index 0d2041112..d06b50c22 100644 --- a/include/ircd/allocator.h +++ b/include/ircd/allocator.h @@ -37,6 +37,15 @@ namespace ircd::allocator string_view info(const mutable_buffer &); }; +/// Valgrind memcheck hypercall suite +namespace ircd::vg::mem +{ + bool defined(const const_buffer &); + void set_defined(const const_buffer &); + void set_undefined(const const_buffer &); + void set_noaccess(const const_buffer &); +} + /// Profiling counters. The purpose of this device is to gauge whether unwanted /// or non-obvious allocations are taking place for a specific section. This /// profiler has that very specific purpose and is not a replacement for diff --git a/ircd/allocator.cc b/ircd/allocator.cc index 2fde3cd80..51671e002 100644 --- a/ircd/allocator.cc +++ b/ircd/allocator.cc @@ -9,6 +9,7 @@ // full license for this software is available in the LICENSE file. #include