diff options
Diffstat (limited to 'rt-plot-vcpu.c')
-rw-r--r-- | rt-plot-vcpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rt-plot-vcpu.c b/rt-plot-vcpu.c index 1467660..8f850b9 100644 --- a/rt-plot-vcpu.c +++ b/rt-plot-vcpu.c | |||
@@ -84,7 +84,7 @@ static int try_switch_to(struct graph_info *ginfo, struct vcpu_info *vcpu_info, | |||
84 | unsigned long long ts; | 84 | unsigned long long ts; |
85 | 85 | ||
86 | match = rt_graph_check_switch_to(ginfo, record, &pid, &job, &ts); | 86 | match = rt_graph_check_switch_to(ginfo, record, &pid, &job, &ts); |
87 | if (match && pid && pid == vcpu_info->run_tid && vcpu_info->run_time) { | 87 | if (match && pid && (pid == vcpu_info->run_tid || pid == -vcpu_info->run_tid) && vcpu_info->run_time) { |
88 | vcpu_info->running = TRUE; | 88 | vcpu_info->running = TRUE; |
89 | 89 | ||
90 | /* Draw empty box for time spent not running a task */ | 90 | /* Draw empty box for time spent not running a task */ |
@@ -312,7 +312,7 @@ rt_vcpu_plot_write_header(struct rt_plot_common *rt, | |||
312 | struct trace_seq *s, | 312 | struct trace_seq *s, |
313 | unsigned long long time) | 313 | unsigned long long time) |
314 | { | 314 | { |
315 | int is_running, job, tid, tjob; | 315 | int is_running, job = 0, tid, tjob; |
316 | unsigned long long release, deadline; | 316 | unsigned long long release, deadline; |
317 | struct vcpu_info *vcpu_info = (struct vcpu_info*)rt; | 317 | struct vcpu_info *vcpu_info = (struct vcpu_info*)rt; |
318 | struct record *record; | 318 | struct record *record; |