X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/92959d5b26387e5194b1bb4553baf90da7701f41..a19462ddb88de9570e7c811e0ffa17964c98f936:/src/instr/instr_private.h diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index 8bafe0078a..2b56b6dce8 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -1,8 +1,8 @@ -/* Copyright (c) 2010-2013. The SimGrid Team. +/* Copyright (c) 2010-2014. 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. */ + * under the terms of the license (GNU LGPL) which comes with this package. */ #ifndef INSTR_PRIVATE_H_ #define INSTR_PRIVATE_H_ @@ -14,7 +14,10 @@ #ifdef HAVE_TRACING +SG_BEGIN_DECL() + /* Need to define function drand48 for Windows */ +/* FIXME: use _drand48() defined in src/surf/random_mgr.c instead */ #ifdef _WIN32 # define drand48() (rand()/(RAND_MAX + 1.0)) #endif @@ -234,6 +237,8 @@ extern double TRACE_last_timestamp_to_dump; void TRACE_header(int basic, int size); /* from paje.c */ +void TRACE_init(void); +void TRACE_finalize(void); void TRACE_paje_init(void); void TRACE_paje_start(void); void TRACE_paje_end(void); @@ -293,6 +298,7 @@ void instr_resume_tracing (void); XBT_PUBLIC(int) TRACE_smpi_is_enabled(void); XBT_PUBLIC(int) TRACE_smpi_is_grouped(void); XBT_PUBLIC(int) TRACE_smpi_is_computing(void); +XBT_PUBLIC(int) TRACE_smpi_is_sleeping(void); XBT_PUBLIC(int) TRACE_smpi_view_internals(void); /* from resource_utilization.c */ @@ -343,7 +349,6 @@ XBT_PUBLIC(val_t) PJ_value_get_or_new (const char *name, const char *color, typ XBT_PUBLIC(val_t) PJ_value_get (const char *name, const type_t father); void PJ_value_free (val_t value); - void print_pajeDefineContainerType(paje_event_t event); void print_pajeDefineVariableType(paje_event_t event); void print_pajeDefineStateType(paje_event_t event); @@ -364,6 +369,8 @@ void print_pajeEndLink(paje_event_t event); void print_pajeNewEvent (paje_event_t event); void print_TIPushState(paje_event_t event); +void print_TICreateContainer(paje_event_t event); +void print_TIDestroyContainer(paje_event_t event); void TRACE_TI_start(void); void TRACE_TI_end(void); void TRACE_TI_init(void); @@ -416,6 +423,7 @@ typedef enum{ TRACING_RECV, TRACING_IRECV, TRACING_SENDRECV, + TRACING_TEST, TRACING_WAIT, TRACING_WAITALL, TRACING_WAITANY, @@ -433,6 +441,7 @@ typedef enum{ TRACING_ALLGATHERV, TRACING_REDUCE_SCATTER, TRACING_COMPUTING, + TRACING_SLEEPING, TRACING_SCAN, TRACING_EXSCAN } e_caller_type ; @@ -444,6 +453,7 @@ typedef struct s_instr_extra_data { int send_size; int recv_size; double comp_size; + double sleep_duration; int src; int dst; int root; @@ -454,15 +464,12 @@ typedef struct s_instr_extra_data { int num_processes; } s_instr_extra_data_t; +SG_END_DECL() + #endif /* HAVE_TRACING */ #ifdef HAVE_JEDULE #include "instr/jedule/jedule_sd_binding.h" #endif - - - - - #endif /* INSTR_PRIVATE_H_ */