Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] new system call to make categorized host utilization tracing possible again
[simgrid.git] / src / simix / smx_user.c
index 60b71b1..dae8115 100644 (file)
@@ -268,6 +268,25 @@ void SIMIX_req_host_execution_set_priority(smx_action_t execution, double priori
   SIMIX_request_push(&req);
 }
 
+#ifdef HAVE_TRACING
+/**
+ * \brief Set the category of an execution action.
+ *
+ * This functions changes the priority only. It calls a surf function.
+ * \param execution The execution action
+ * \param priority The new priority
+ */
+void SIMIX_req_host_execution_set_category(smx_action_t execution, const char *category)
+{
+  s_smx_req_t req;
+
+  req.call = REQ_HOST_EXECUTION_SET_CATEGORY;
+  req.host_execution_set_category.execution = execution;
+  req.host_execution_set_category.category = xbt_strdup (category);
+  SIMIX_request_push(&req);
+}
+#endif
+
 /**
  * \brief Waits for the completion of an execution action.
  *