Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Use std::string for s_smx_process_arg
[simgrid.git] / src / mc / mc_private.h
1 /* Copyright (c) 2007-2015. The SimGrid Team.
2  * All rights reserved.                                                     */
3
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. */
6
7 #ifndef SIMGRID_MC_PRIVATE_H
8 #define SIMGRID_MC_PRIVATE_H
9
10 #include "simgrid_config.h"
11
12 #include <sys/types.h>
13
14 #include <stdio.h>
15
16 #include <simgrid/msg.h>
17 #include <xbt/config.h>
18 #include <xbt/base.h>
19 #include <xbt/automaton.h>
20
21 #include "mc/mc.h"
22 #include "mc/datatypes.h"
23 #include "src/mc/mc_base.h"
24
25 #include "src/simix/smx_private.h"
26
27 #ifdef __cplusplus
28 #include "src/mc/mc_forward.hpp"
29 #include "src/xbt/memory_map.hpp"
30 #endif
31
32 #ifdef __cplusplus
33 namespace simgrid {
34 namespace mc {
35
36 struct DerefAndCompareByNbProcessesAndUsedHeap {
37   template<class X, class Y>
38   bool operator()(X const& a, Y const& b)
39   {
40     return std::make_pair(a->nb_processes, a->heap_bytes_used) <
41       std::make_pair(b->nb_processes, b->heap_bytes_used);
42   }
43 };
44
45 }
46 }
47 #endif
48
49 SG_BEGIN_DECL()
50
51 /********************************* MC Global **********************************/
52
53 XBT_PRIVATE void MC_init_dot_output();
54
55 XBT_PRIVATE extern FILE *dot_output;
56
57 XBT_PRIVATE void MC_show_deadlock(void);
58
59 /********************************** Snapshot comparison **********************************/
60
61 //#define MC_DEBUG 1
62 #define MC_VERBOSE 1
63
64 /********************************** Miscellaneous **********************************/
65
66 SG_END_DECL()
67
68 #ifdef __cplusplus
69
70 namespace simgrid {
71 namespace mc {
72
73 XBT_PRIVATE void find_object_address(
74   std::vector<simgrid::xbt::VmMap> const& maps, simgrid::mc::ObjectInformation* result);
75
76 XBT_PRIVATE
77 int snapshot_compare(int num1, simgrid::mc::Snapshot* s1, int num2, simgrid::mc::Snapshot* s2);
78
79 // Move is somewhere else (in the LivenessChecker class, in the Session class?):
80 extern XBT_PRIVATE xbt_automaton_t property_automaton;
81
82 }
83 }
84
85 #endif
86
87 #endif