1 /* Copyright (c) 2007-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
7 #ifndef SIMGRID_MC_PRIVATE_H
8 #define SIMGRID_MC_PRIVATE_H
10 #include "simgrid_config.h"
12 #include <sys/types.h>
16 #include <simgrid/msg.h>
17 #include <xbt/config.h>
19 #include <xbt/automaton.h>
22 #include "mc/datatypes.h"
23 #include "src/mc/mc_base.h"
25 #include "src/simix/smx_private.h"
28 #include "src/mc/mc_forward.hpp"
29 #include "src/xbt/memory_map.hpp"
36 struct DerefAndCompareByNbProcessesAndUsedHeap {
37 template<class X, class Y>
38 bool operator()(X const& a, Y const& b)
40 return std::make_pair(a->nb_processes, a->heap_bytes_used) <
41 std::make_pair(b->nb_processes, b->heap_bytes_used);
51 /********************************* MC Global **********************************/
53 XBT_PRIVATE void MC_init_dot_output();
55 XBT_PRIVATE extern FILE *dot_output;
57 XBT_PRIVATE void MC_show_deadlock(void);
59 /********************************** Snapshot comparison **********************************/
64 /********************************** Miscellaneous **********************************/
73 XBT_PRIVATE void find_object_address(
74 std::vector<simgrid::xbt::VmMap> const& maps, simgrid::mc::ObjectInformation* result);
77 int snapshot_compare(int num1, simgrid::mc::Snapshot* s1, int num2, simgrid::mc::Snapshot* s2);
79 // Move is somewhere else (in the LivenessChecker class, in the Session class?):
80 extern XBT_PRIVATE xbt_automaton_t property_automaton;