A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Multiple .so support for region snapshots
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule_output.c
diff --git
a/src/instr/jedule/jedule_output.c
b/src/instr/jedule/jedule_output.c
index
0099ce6
..
aa286e5
100644
(file)
--- a/
src/instr/jedule/jedule_output.c
+++ b/
src/instr/jedule/jedule_output.c
@@
-1,10
+1,8
@@
-/*
- * jedule_output.c
- *
- * Created on: Dec 1, 2010
- * Author: sascha
- */
+/* 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. */
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-175,12
+173,12
@@
static void print_event(jed_event_t event) {
int start = subset->start_idx;
int end = subset->start_idx + subset->nres - 1;
int start = subset->start_idx;
int end = subset->start_idx + subset->nres - 1;
-
char resid[1024];
+ char resid[1024];
-
get_hierarchy_string(subset->parent, resid);
+ get_hierarchy_string(subset->parent, resid);
fprintf(jed_file, "<select resources=\"");
fprintf(jed_file, "<select resources=\"");
-
fprintf(jed_file, "%s", resid);
+ fprintf(jed_file, "%s", resid);
fprintf(jed_file, ".[%d-%d]", start, end);
fprintf(jed_file, "\" />\n");
fprintf(jed_file, ".[%d-%d]", start, end);
fprintf(jed_file, "\" />\n");
@@
-239,8
+237,14
@@
void write_jedule_output(FILE *file, jedule_t jedule,
}
}
}
}
+static void jed_event_free_ref(void *evp)
+{
+ jed_event_t ev = *(jed_event_t *)evp;
+ jed_event_free(ev);
+}
+
void jedule_init_output() {
void jedule_init_output() {
- jedule_event_list = xbt_dynar_new(sizeof(jed_event_t),
NULL
);
+ jedule_event_list = xbt_dynar_new(sizeof(jed_event_t),
jed_event_free_ref
);
}
void jedule_cleanup_output() {
}
void jedule_cleanup_output() {