X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b5b885cc2a87003f2774fcd64358e735b8dcd2e2..4667db33a753d88cbcd186f191fb1e65f49f4bd6:/src/mc/malloc.hpp diff --git a/src/mc/malloc.hpp b/src/mc/malloc.hpp new file mode 100644 index 0000000000..82acd86f0b --- /dev/null +++ b/src/mc/malloc.hpp @@ -0,0 +1,38 @@ +/* Copyright (c) 2010-2016. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +/* Copyright (C) 1991, 1992 Free Software Foundation, Inc. + This file was then part of the GNU C Library. */ + +#ifndef SIMGRID_MC_MALLOC_HPP +#define SIMGRID_MC_MALLOC_HPP + +#include + +#include +#include + +#include "src/mc/mc_forward.hpp" +#include "src/mc/Process.hpp" + +namespace simgrid { +namespace mc { + +XBT_PRIVATE int mmalloc_compare_heap(Snapshot* snapshot1, Snapshot* snapshot2); +XBT_PRIVATE int mmalloc_linear_compare_heap(xbt_mheap_t heap1, xbt_mheap_t heap2); +XBT_PRIVATE int init_heap_information(xbt_mheap_t heap1, xbt_mheap_t heap2, + std::vector* i1, + std::vector* i2); +XBT_PRIVATE int compare_heap_area( + int process_index, const void *area1, const void* area2, + Snapshot* snapshot1, Snapshot* snapshot2, + xbt_dynar_t previous, Type* type, int pointer_level); +XBT_PRIVATE void reset_heap_information(void); + +} +} + +#endif