X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/45c3f1cfee86fb48c96d53f8267f99b6db6e3d7a..d19d875fd0b7da4e10227ee00bc2035b68f60f47:/src/instr/instr_private.h diff --git a/src/instr/instr_private.h b/src/instr/instr_private.h index 908ecd6cc3..722dbbc962 100644 --- a/src/instr/instr_private.h +++ b/src/instr/instr_private.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2014. The SimGrid Team. +/* Copyright (c) 2010-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -7,16 +7,15 @@ #ifndef INSTR_PRIVATE_H_ #define INSTR_PRIVATE_H_ -#include "instr/instr.h" +#include "simgrid/instr.h" #include "instr/instr_interface.h" #include "internal_config.h" #include "simgrid_config.h" -#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 @@ -263,9 +262,6 @@ XBT_PUBLIC(void) new_pajeStartLinkWithSize (double timestamp, container_t contai XBT_PUBLIC(void) new_pajeEndLink (double timestamp, container_t container, type_t type, container_t destContainer, const char *value, const char *key); XBT_PUBLIC(void) new_pajeNewEvent (double timestamp, container_t container, type_t type, val_t value); -//for tracing gtnets -void TRACE_surf_gtnets_communicate(void *action, void *src, void *dst); - /* from instr_config.c */ int TRACE_needs_platform (void); int TRACE_is_enabled(void); @@ -285,6 +281,7 @@ int TRACE_basic (void); int TRACE_display_sizes (void); char *TRACE_get_comment (void); char *TRACE_get_comment_file (void); +int TRACE_precision (void); char *TRACE_get_filename(void); char *TRACE_get_viva_uncat_conf (void); char *TRACE_get_viva_cat_conf (void); @@ -297,6 +294,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 */ @@ -310,7 +308,7 @@ void TRACE_surf_link_set_utilization(const char *resource, double value, double now, double delta); -void TRACE_surf_resource_utilization_alloc(void); +XBT_PUBLIC(void) TRACE_surf_resource_utilization_alloc(void); /* instr_paje.c */ extern xbt_dict_t trivaNodeTypes; @@ -421,6 +419,7 @@ typedef enum{ TRACING_RECV, TRACING_IRECV, TRACING_SENDRECV, + TRACING_TEST, TRACING_WAIT, TRACING_WAITALL, TRACING_WAITANY, @@ -438,6 +437,7 @@ typedef enum{ TRACING_ALLGATHERV, TRACING_REDUCE_SCATTER, TRACING_COMPUTING, + TRACING_SLEEPING, TRACING_SCAN, TRACING_EXSCAN } e_caller_type ; @@ -449,6 +449,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; @@ -461,8 +462,6 @@ typedef struct s_instr_extra_data { SG_END_DECL() -#endif /* HAVE_TRACING */ - #ifdef HAVE_JEDULE #include "instr/jedule/jedule_sd_binding.h" #endif