X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81e2987ceb9329c50f0ac8109504aa5c784071e2..cdd4d20278cbee5a9f11f9f455bff8836410568c:/src/xbt/memory_map.hpp diff --git a/src/xbt/memory_map.hpp b/src/xbt/memory_map.hpp index e4e138d6d1..5938899b1b 100644 --- a/src/xbt/memory_map.hpp +++ b/src/xbt/memory_map.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2015. The SimGrid Team. +/* Copyright (c) 2007-2019. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -11,15 +11,13 @@ #include #include -#include -#include - namespace simgrid { namespace xbt { /** An virtual memory map entry from /proc/$pid/maps */ struct VmMap { - std::uint64_t start_addr, end_addr; + std::uint64_t start_addr; + std::uint64_t end_addr; int prot; /* Memory protection */ int flags; /* Additional memory flags */ std::uint64_t offset; /* Offset in the file/whatever */ @@ -29,8 +27,7 @@ struct VmMap { std::string pathname; /* Path name of the mapped file */ }; -XBT_PRIVATE std::vector get_memory_map(pid_t pid); - +std::vector get_memory_map(pid_t pid); } }