Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
More verbose messages on errors
[simgrid.git] / src / surf / cpu_private.h
index 8424994..a14ccb5 100644 (file)
@@ -9,6 +9,7 @@
 #define _SURF_CPU_PRIVATE_H
 
 #include "surf_private.h"
+#include "xbt/dict.h"
 
 typedef struct surf_action_cpu {
   s_surf_action_t generic_action;
@@ -18,13 +19,15 @@ typedef struct surf_action_cpu {
 typedef struct cpu {
   surf_resource_t resource;    /* Any such object, added in a trace
                                   should start by this field!!! */
-  const char *name;
-  xbt_maxmin_float_t power_scale;
-  xbt_maxmin_float_t power_current;
+  char *name;
+  double power_scale;
+  double power_current;
   tmgr_trace_event_t power_event;
   e_surf_cpu_state_t state_current;
   tmgr_trace_event_t state_event;
   lmm_constraint_t constraint;
 } s_cpu_t, *cpu_t;
 
+extern xbt_dict_t cpu_set;
+
 #endif                         /* _SURF_CPU_PRIVATE_H */