Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a1b4e560429b8adce55f761dc14f32e6f661d9a5
[simgrid.git] / src / instr / jedule / jedule_sd_binding.c
1 /*
2  * jedule_sd_binding.c
3  *
4  *  Created on: Dec 2, 2010
5  *      Author: sascha
6  */
7
8
9 #include "xbt/asserts.h"
10 #include "xbt/dynar.h"
11
12 void jedule_log_sd_event(SD_task_t task) {
13         xbt_dynar_t host_list;
14         jed_event_t event;
15         int i;
16
17         xbt_assert(task != NULL);
18
19         host_list = xbt_dynar_new(sizeof(char*), NULL);
20
21         for(i=0; i<task->workstation_nb; i++) {
22                 char *hostname = surf_resource_name(task->workstation_list[i]->surf_workstation);
23                 xbt_dynar_push(host_list, &hostname);
24         }
25
26         create_jed_event(&event, SD_task_get_name(task), task->start_time,
27                         task->finish_time, "SD");
28
29         jed_event_add_resources(event, host_list);
30
31         jedule_store_event(event);
32
33         xbt_dynar_free(&host_list);
34 }
35
36
37 void jedule_setup_platform() {
38
39
40
41
42 }