X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/19b3962253112b19308537bc2400de141c119d99..befbbbe1fbb31663a8f91e24ce12df271cf4ae79:/src/instr/instr_private.h?ds=sidebyside diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index 0102392f45..9d10c4b1a3 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -101,7 +101,7 @@ class s_container; typedef s_container *container_t; class s_container { - public: + public: sg_netpoint_t netpoint; char *name; /* Unique name of this container */ char *id; /* Unique id of this container */ @@ -136,7 +136,7 @@ class DefineContainerEvent : public PajeEvent //-------------------------------------------------- -class DefineVariableTypeEvent : public PajeEvent +class DefineVariableTypeEvent : public PajeEvent { public: type_t type; @@ -154,7 +154,7 @@ class DefineStateTypeEvent : public PajeEvent { class DefineEventTypeEvent : public PajeEvent { type_t type; - public: + public: DefineEventTypeEvent(type_t type); void print() override; }; @@ -216,7 +216,7 @@ class SubVariableEvent : public PajeEvent { public: container_t container; type_t type; - double value; + double value; public: SubVariableEvent(double timestamp, container_t container, type_t type, double value); void print() override; @@ -244,7 +244,7 @@ class PushStateEvent : public PajeEvent { int size; const char* filename; int linenumber; - void* extra; + void* extra_; public: PushStateEvent (double timestamp, container_t container, type_t type, val_t value); PushStateEvent (double timestamp, container_t container, type_t type, val_t value, @@ -255,7 +255,6 @@ class PushStateEvent : public PajeEvent { class PopStateEvent : public PajeEvent { container_t container; type_t type; - xbt_dynar_t extra; public: PopStateEvent (double timestamp, container_t container, type_t type); void print() override; @@ -278,11 +277,12 @@ class StartLinkEvent : public PajeEvent { char *key; int size; public: - StartLinkEvent (double timestamp, container_t container, type_t type, container_t sourceContainer, - const char *value, const char *key); - StartLinkEvent (double timestamp, container_t container, type_t type, - container_t sourceContainer, const char *value, const char *key, int size); - void print() override; + ~StartLinkEvent(); + StartLinkEvent(double timestamp, container_t container, type_t type, container_t sourceContainer, const char* value, + const char* key); + StartLinkEvent(double timestamp, container_t container, type_t type, container_t sourceContainer, const char* value, + const char* key, int size); + void print() override; }; class EndLinkEvent : public PajeEvent { @@ -294,6 +294,7 @@ class EndLinkEvent : public PajeEvent { public: EndLinkEvent (double timestamp, container_t container, type_t type, container_t destContainer, const char *value, const char *key); + ~EndLinkEvent(); void print() override; }; @@ -422,12 +423,8 @@ XBT_PRIVATE void print_pajeStartLink(PajeEvent* event); XBT_PRIVATE void print_pajeEndLink(PajeEvent* event); XBT_PRIVATE void print_pajeNewEvent (PajeEvent* event); -XBT_PRIVATE void print_TIPushState(PajeEvent* event); -XBT_PRIVATE void print_TICreateContainer(PajeEvent* event); -XBT_PRIVATE void print_TIDestroyContainer(PajeEvent* event); XBT_PRIVATE void TRACE_TI_start(); XBT_PRIVATE void TRACE_TI_end(); -XBT_PRIVATE void TRACE_TI_init(); XBT_PRIVATE void print_NULL (PajeEvent* event); XBT_PRIVATE void TRACE_paje_dump_buffer (int force); @@ -510,6 +507,14 @@ typedef struct s_instr_extra_data { int num_processes; } s_instr_extra_data_t; +/* Format of TRACING output. + * - paje is the regular format, that we all know + * - TI is a trick to reuse the tracing functions to generate a time independent trace during the execution. Such trace can easily be replayed with smpi_replay afterward. + * This trick should be removed and replaced by some code using the signal that we will create to cleanup the TRACING + */ +typedef enum { instr_fmt_paje, instr_fmt_TI } instr_fmt_type_t; +extern instr_fmt_type_t instr_fmt_type; + SG_END_DECL() #endif