diff options
Diffstat (limited to 'rt-plot-vcpu.c')
-rw-r--r-- | rt-plot-vcpu.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/rt-plot-vcpu.c b/rt-plot-vcpu.c index 0867ff7..1467660 100644 --- a/rt-plot-vcpu.c +++ b/rt-plot-vcpu.c | |||
@@ -19,7 +19,6 @@ static void update_tid(struct vcpu_info *info, int tid) | |||
19 | if (tid != info->run_tid) { | 19 | if (tid != info->run_tid) { |
20 | info->run_tid = tid; | 20 | info->run_tid = tid; |
21 | snprintf(info->label, LLABEL, "%d", tid); | 21 | snprintf(info->label, LLABEL, "%d", tid); |
22 | printf("Upated label to %s\n", info->label); | ||
23 | } | 22 | } |
24 | } | 23 | } |
25 | 24 | ||
@@ -227,7 +226,6 @@ void insert_vcpu(struct graph_info *ginfo, struct cont_list *cont, | |||
227 | else | 226 | else |
228 | snprintf(label, len, "%s - %d\nServer %d", | 227 | snprintf(label, len, "%s - %d\nServer %d", |
229 | cont->name, cont->cid, vcpu_info->sid); | 228 | cont->name, cont->cid, vcpu_info->sid); |
230 | |||
231 | plot = trace_graph_plot_append(ginfo, label, PLOT_TYPE_SERVER_CPU, | 229 | plot = trace_graph_plot_append(ginfo, label, PLOT_TYPE_SERVER_CPU, |
232 | TIME_TYPE_RT, &rt_vcpu_cb, vcpu); | 230 | TIME_TYPE_RT, &rt_vcpu_cb, vcpu); |
233 | trace_graph_plot_add_all_recs(ginfo, plot); | 231 | trace_graph_plot_add_all_recs(ginfo, plot); |
@@ -325,9 +323,23 @@ rt_vcpu_plot_write_header(struct rt_plot_common *rt, | |||
325 | 323 | ||
326 | trace_seq_printf(s, "%s\nServer: %d:%d\n", vcpu_info->cont->name, | 324 | trace_seq_printf(s, "%s\nServer: %d:%d\n", vcpu_info->cont->name, |
327 | vcpu_info->sid, job); | 325 | vcpu_info->sid, job); |
326 | |||
328 | if (is_running) { | 327 | if (is_running) { |
329 | trace_seq_printf(s, "Running: %d:%d", tid, tjob); | 328 | trace_seq_printf(s, "Running: %d:%d", tid, tjob); |
330 | } | 329 | } |
330 | |||
331 | if (in_res(ginfo, deadline, time)) { | ||
332 | trace_seq_printf(s, "\nlitmus_server_deadline\n" | ||
333 | "deadline(job(%d,%d)): %llu\n", | ||
334 | vcpu_info->sid, job, deadline); | ||
335 | } | ||
336 | if (in_res(ginfo, release, time)) { | ||
337 | trace_seq_printf(s, "\nlitmus_server_release\n" | ||
338 | "release(job(%d,%d)): %llu\n", | ||
339 | vcpu_info->sid, job, release); | ||
340 | } | ||
341 | |||
342 | |||
331 | trace_seq_putc(s, '\n'); | 343 | trace_seq_putc(s, '\n'); |
332 | return record; | 344 | return record; |
333 | } | 345 | } |