A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Please Sonar (duplicated string literals...).
[simgrid.git]
/
src
/
mc
/
mc_record.hpp
diff --git
a/src/mc/mc_record.hpp
b/src/mc/mc_record.hpp
index af9948263fc069085ad060c0e1d2fa0febb54d87..1cc96be99c8ab339e36d170228a4192c2253f891 100644
(file)
--- a/
src/mc/mc_record.hpp
+++ b/
src/mc/mc_record.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2014-20
17
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-20
20
. 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. */
/* 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. */
@@
-6,9
+6,8
@@
/** \file mc_record.hpp
*
* This file contains the MC replay/record functionnality.
/** \file mc_record.hpp
*
* This file contains the MC replay/record functionnality.
- * A MC path may be recorded by using ``-cfg=model-check/record:1`'`.
- * The path is written in the log output and an be replayed with MC disabled
- * (even with an non-LC build) with `--cfg=model-check/replay:$replayPath`.
+ * The recorded path is written in the log output and can be replayed with MC disabled
+ * (even with an non-MC build) using `--cfg=model-check/replay:$replayPath`.
*
* The same version of Simgrid should be used and the same arguments should be
* passed to the application (without the MC specific arguments).
*
* The same version of Simgrid should be used and the same arguments should be
* passed to the application (without the MC specific arguments).
@@
-17,9
+16,10
@@
#ifndef SIMGRID_MC_RECORD_HPP
#define SIMGRID_MC_RECORD_HPP
#ifndef SIMGRID_MC_RECORD_HPP
#define SIMGRID_MC_RECORD_HPP
-#include "src/mc/
Transition
.hpp"
+#include "src/mc/
mc_forward
.hpp"
#include "xbt/base.h"
#include "xbt/base.h"
+#include <string>
#include <vector>
namespace simgrid {
#include <vector>
namespace simgrid {
@@
-34,17
+34,10
@@
XBT_PRIVATE std::string traceToString(simgrid::mc::RecordTrace const& trace);
XBT_PRIVATE void dumpRecordPath();
XBT_PRIVATE void replay(RecordTrace const& trace);
XBT_PRIVATE void dumpRecordPath();
XBT_PRIVATE void replay(RecordTrace const& trace);
-XBT_PRIVATE void replay(const
char*
trace);
+XBT_PRIVATE void replay(const
std::string&
trace);
}
}
}
}
-/** Whether the MC record mode is enabled
- *
- * The behaviour is not changed. The only real difference is that
- * the path is writtent in the log when an interesting path is found.
- */
-#define MC_record_is_active() _sg_do_model_check_record
-
// **** Data conversion
#endif
// **** Data conversion
#endif