X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d90a41491cfb04188c4469729fa60d01ec0ff693..7526c37879613289a86be06ec264b1cce5ef4049:/src/instr/instr_smpi.c diff --git a/src/instr/instr_smpi.c b/src/instr/instr_smpi.c index 65086bd86c..cd30016f02 100644 --- a/src/instr/instr_smpi.c +++ b/src/instr/instr_smpi.c @@ -5,6 +5,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include "instr/instr_private.h" +#include "mc/mc.h" #include #include @@ -87,6 +88,10 @@ static char *TRACE_smpi_put_key(int src, int dst, char *key, int n) } //generate the key static unsigned long long counter = 0; + + if(MC_is_active()) + MC_ignore_data_bss(&counter, sizeof(counter)); + snprintf(key, n, "%d_%d_%llu", src, dst, counter++); //push it