X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3bda7845c0cceaaeedd5d0371434927c8cf6231d..ea1979038ff351519752688afc00416a6fb83929:/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); } }