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
[trace] always set initial value for variables, if not, we get an invalid trace file
[simgrid.git]
/
examples
/
msg
/
tracing
/
ms.c
diff --git
a/examples/msg/tracing/ms.c
b/examples/msg/tracing/ms.c
index
0b75720
..
575612e
100644
(file)
--- a/
examples/msg/tracing/ms.c
+++ b/
examples/msg/tracing/ms.c
@@
-74,6
+74,9
@@
int slave(int argc, char *argv[])
m_task_t task = NULL;
TRACE_host_variable_set(MSG_host_get_name(MSG_host_self()), "is_slave", 1);
+ TRACE_host_variable_set(MSG_host_get_name(MSG_host_self()),
+ "task_computation",
+ 0);
while (1) {
MSG_task_receive(&(task), "master_mailbox");