X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/df00205b8db0067640f48bdb63426689aa80360f..6010e94a450a23778f1691ac4e4d30340b3ba1ea:/src/mc/Process.hpp diff --git a/src/mc/Process.hpp b/src/mc/Process.hpp index bb8c478a00..2f51240fcf 100644 --- a/src/mc/Process.hpp +++ b/src/mc/Process.hpp @@ -28,15 +28,14 @@ #include "src/simix/popping_private.h" #include "src/simix/smx_private.h" -#include "../xbt/memory_map.hpp" +#include "src/xbt/memory_map.hpp" -#include "mc_forward.hpp" -#include "mc_base.h" -#include "mc_mmalloc.h" // std_heap -#include "AddressSpace.hpp" -#include "mc_protocol.h" - -#include "ObjectInformation.hpp" +#include "src/mc/mc_forward.hpp" +#include "src/mc/mc_base.h" +#include "src/mc/mc_mmalloc.h" // std_heap +#include "src/mc/AddressSpace.hpp" +#include "src/mc/mc_protocol.h" +#include "src/mc/ObjectInformation.hpp" // Those flags are used to track down which cached information // is still up to date and which information needs to be updated. @@ -54,6 +53,13 @@ struct IgnoredRegion { size_t size; }; +struct IgnoredHeapRegion { + int block; + int fragment; + void *address; + size_t size; +}; + /** Representation of a process */ class Process final : public AddressSpace { @@ -177,6 +183,15 @@ public: return stack_areas_; } + std::vector const& ignored_heap() const + { + return ignored_heap_; + } + void ignore_heap(IgnoredHeapRegion const& region); + void unignore_heap(void *address, size_t size); + + void ignore_local_variable(const char *var_name, const char *frame_name); + private: void init_memory_map_info(); void refresh_heap(); @@ -193,6 +208,7 @@ private: int pagemap_fd_; bool privatized_; std::vector stack_areas_; + std::vector ignored_heap_; public: // object info // TODO, make private (first, objectify simgrid::mc::ObjectInformation*)