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
cosmetics on tracing mechanism
[simgrid.git]
/
src
/
instr
/
smpi_instr.c
diff --git
a/src/instr/smpi_instr.c
b/src/instr/smpi_instr.c
index
e36927a
..
aa65cd6
100644
(file)
--- a/
src/instr/smpi_instr.c
+++ b/
src/instr/smpi_instr.c
@@
-10,13
+10,13
@@
static xbt_dict_t keys;
static xbt_dict_t keys;
-static char *
_
TRACE_smpi_container (int rank, char *container, int n)
+static char *TRACE_smpi_container (int rank, char *container, int n)
{
snprintf (container, n, "rank-%d", rank);
return container;
}
{
snprintf (container, n, "rank-%d", rank);
return container;
}
-static char *
_
TRACE_smpi_put_key (int src, int dst, char *key, int n)
+static char *TRACE_smpi_put_key (int src, int dst, char *key, int n)
{
//get the dynar for src#dst
char aux[100];
{
//get the dynar for src#dst
char aux[100];
@@
-34,7
+34,7
@@
static char *_TRACE_smpi_put_key (int src, int dst, char *key, int n)
return key;
}
return key;
}
-static char *
_
TRACE_smpi_get_key (int src, int dst, char *key, int n)
+static char *TRACE_smpi_get_key (int src, int dst, char *key, int n)
{
char aux[100];
snprintf (aux, 100, "%d#%d", src, dst);
{
char aux[100];
snprintf (aux, 100, "%d#%d", src, dst);
@@
-47,7
+47,7
@@
static char *_TRACE_smpi_get_key (int src, int dst, char *key, int n)
return key;
}
return key;
}
-void
__TRACE_smpi_init
()
+void
TRACE_smpi_alloc
()
{
keys = xbt_dict_new();
}
{
keys = xbt_dict_new();
}
@@
-59,9
+59,9
@@
void TRACE_smpi_start (void)
}
}
}
}
-void TRACE_smpi_
end
(void)
+void TRACE_smpi_
release
(void)
{
{
- TRACE_surf_
finaliz
e ();
+ TRACE_surf_
releas
e ();
if (IS_TRACING_SMPI){
TRACE_end();
}
if (IS_TRACING_SMPI){
TRACE_end();
}
@@
-72,7
+72,7
@@
void TRACE_smpi_init (int rank)
if (!IS_TRACING_SMPI) return;
char str[100];
if (!IS_TRACING_SMPI) return;
char str[100];
-
_
TRACE_smpi_container (rank, str, 100);
+ TRACE_smpi_container (rank, str, 100);
pajeCreateContainer (SIMIX_get_clock(), str, "MPI_PROCESS",
SIMIX_host_get_name(SIMIX_host_self()), str);
}
pajeCreateContainer (SIMIX_get_clock(), str, "MPI_PROCESS",
SIMIX_host_get_name(SIMIX_host_self()), str);
}
@@
-83,7
+83,7
@@
void TRACE_smpi_finalize (int rank)
char str[100];
pajeDestroyContainer (SIMIX_get_clock(), "MPI_PROCESS",
char str[100];
pajeDestroyContainer (SIMIX_get_clock(), "MPI_PROCESS",
-
_
TRACE_smpi_container (rank, str, 100));
+ TRACE_smpi_container (rank, str, 100));
}
void TRACE_smpi_collective_in (int rank, int root, const char *operation)
}
void TRACE_smpi_collective_in (int rank, int root, const char *operation)
@@
-92,7
+92,7
@@
void TRACE_smpi_collective_in (int rank, int root, const char *operation)
char str[100];
pajePushState (SIMIX_get_clock(), "MPI_STATE",
char str[100];
pajePushState (SIMIX_get_clock(), "MPI_STATE",
-
_
TRACE_smpi_container (rank, str, 100), operation);
+ TRACE_smpi_container (rank, str, 100), operation);
}
void TRACE_smpi_collective_out (int rank, int root, const char *operation)
}
void TRACE_smpi_collective_out (int rank, int root, const char *operation)
@@
-101,7
+101,7
@@
void TRACE_smpi_collective_out (int rank, int root, const char *operation)
char str[100];
pajePopState (SIMIX_get_clock(), "MPI_STATE",
char str[100];
pajePopState (SIMIX_get_clock(), "MPI_STATE",
-
_
TRACE_smpi_container (rank, str, 100));
+ TRACE_smpi_container (rank, str, 100));
}
void TRACE_smpi_ptp_in (int rank, int src, int dst, const char *operation)
}
void TRACE_smpi_ptp_in (int rank, int src, int dst, const char *operation)
@@
-110,7
+110,7
@@
void TRACE_smpi_ptp_in (int rank, int src, int dst, const char *operation)
char str[100];
pajePushState (SIMIX_get_clock(), "MPI_STATE",
char str[100];
pajePushState (SIMIX_get_clock(), "MPI_STATE",
-
_
TRACE_smpi_container (rank, str, 100), operation);
+ TRACE_smpi_container (rank, str, 100), operation);
}
void TRACE_smpi_ptp_out (int rank, int src, int dst, const char *operation)
}
void TRACE_smpi_ptp_out (int rank, int src, int dst, const char *operation)
@@
-119,7
+119,7
@@
void TRACE_smpi_ptp_out (int rank, int src, int dst, const char *operation)
char str[100];
pajePopState (SIMIX_get_clock(), "MPI_STATE",
char str[100];
pajePopState (SIMIX_get_clock(), "MPI_STATE",
-
_
TRACE_smpi_container (rank, str, 100));
+ TRACE_smpi_container (rank, str, 100));
}
void TRACE_smpi_send (int rank, int src, int dst)
}
void TRACE_smpi_send (int rank, int src, int dst)
@@
-127,9
+127,9
@@
void TRACE_smpi_send (int rank, int src, int dst)
if (!IS_TRACING_SMPI) return;
char key[100], str[100];
if (!IS_TRACING_SMPI) return;
char key[100], str[100];
-
_
TRACE_smpi_put_key (src, dst, key, 100);
+ TRACE_smpi_put_key (src, dst, key, 100);
pajeStartLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
pajeStartLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
-
_
TRACE_smpi_container (src, str, 100), key);
+ TRACE_smpi_container (src, str, 100), key);
}
void TRACE_smpi_recv (int rank, int src, int dst)
}
void TRACE_smpi_recv (int rank, int src, int dst)
@@
-137,9
+137,9
@@
void TRACE_smpi_recv (int rank, int src, int dst)
if (!IS_TRACING_SMPI) return;
char key[100], str[100];
if (!IS_TRACING_SMPI) return;
char key[100], str[100];
-
_
TRACE_smpi_get_key (src, dst, key, 100);
+ TRACE_smpi_get_key (src, dst, key, 100);
pajeEndLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
pajeEndLink (SIMIX_get_clock(), "MPI_LINK", "0", "PTP",
-
_
TRACE_smpi_container (dst, str, 100), key);
+ TRACE_smpi_container (dst, str, 100), key);
}
#endif
}
#endif