aboutsummaryrefslogtreecommitdiffstats
path: root/rt-plot-container.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt-plot-container.c')
-rw-r--r--rt-plot-container.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/rt-plot-container.c b/rt-plot-container.c
index 97e9fd8..cb814fa 100644
--- a/rt-plot-container.c
+++ b/rt-plot-container.c
@@ -26,11 +26,11 @@ int get_server_info(struct graph_info *ginfo, struct rt_plot_common *rt,
26 int match_sid, unsigned long long time, 26 int match_sid, unsigned long long time,
27 unsigned long long *out_release, 27 unsigned long long *out_release,
28 unsigned long long *out_deadline, 28 unsigned long long *out_deadline,
29 int *out_job, int *out_tid, 29 int *out_job, int *out_tid, int *out_tjob,
30 struct record **out_record) 30 struct record **out_record)
31{ 31{
32 struct record *record; 32 struct record *record;
33 int sid, job, tid, match, next_cpu, is_running = 0; 33 int sid, job, tid, tjob, match, next_cpu, is_running = 0;
34 unsigned long long when, max_ts; 34 unsigned long long when, max_ts;
35 35
36 *out_record = find_rt_record(ginfo, rt, time); 36 *out_record = find_rt_record(ginfo, rt, time);
@@ -55,10 +55,11 @@ int get_server_info(struct graph_info *ginfo, struct rt_plot_common *rt,
55 break; 55 break;
56 56
57 match = rt_graph_check_server_switch_away(ginfo, record, 57 match = rt_graph_check_server_switch_away(ginfo, record,
58 &sid, &job, &tid, 58 &sid, &job, &tid, &tjob,
59 &when); 59 &when);
60 if (match && sid == match_sid) { 60 if (match && sid == match_sid) {
61 *out_tid = tid; 61 *out_tid = tid;
62 *out_tjob = tjob;
62 is_running = 1; 63 is_running = 1;
63 break; 64 break;
64 } 65 }
@@ -88,8 +89,9 @@ void rt_plot_container(struct graph_info *ginfo, int cid)
88 cont->plotted = TRUE; 89 cont->plotted = TRUE;
89 90
90 for (vlist = cont->vcpus; vlist; vlist = vlist->next) { 91 for (vlist = cont->vcpus; vlist; vlist = vlist->next) {
91 insert_vtask(ginfo, cont, vlist);
92 insert_vcpu(ginfo, cont, vlist); 92 insert_vcpu(ginfo, cont, vlist);
93 if (vlist->params.wcet && vlist->params.period)
94 insert_vtask(ginfo, cont, vlist);
93 } 95 }
94} 96}
95 97