diff options
Diffstat (limited to 'rt-plot-vcpu.c')
-rw-r--r-- | rt-plot-vcpu.c | 113 |
1 files changed, 58 insertions, 55 deletions
diff --git a/rt-plot-vcpu.c b/rt-plot-vcpu.c index 54dc05f..f327f57 100644 --- a/rt-plot-vcpu.c +++ b/rt-plot-vcpu.c | |||
@@ -131,6 +131,9 @@ static void do_plot_end(struct graph_info *ginfo, struct vcpu_info *vcpu_info, | |||
131 | unsigned long long deadline, release; | 131 | unsigned long long deadline, release; |
132 | struct record *record; | 132 | struct record *record; |
133 | 133 | ||
134 | if (ginfo->view_end_time == ginfo->end_time) | ||
135 | return; | ||
136 | |||
134 | if (vcpu_info->run_time && vcpu_info->run_cpu != NO_CPU) { | 137 | if (vcpu_info->run_time && vcpu_info->run_cpu != NO_CPU) { |
135 | info->box = TRUE; | 138 | info->box = TRUE; |
136 | info->bcolor = hash_pid(vcpu_info->run_tid); | 139 | info->bcolor = hash_pid(vcpu_info->run_tid); |
@@ -170,8 +173,8 @@ static int rt_vcpu_plot_event(struct graph_info *ginfo, struct graph_plot *plot, | |||
170 | 173 | ||
171 | match = try_server_switch_away(ginfo, vcpu_info, record, info) || | 174 | match = try_server_switch_away(ginfo, vcpu_info, record, info) || |
172 | try_server_switch_to(ginfo, vcpu_info, record, info) || | 175 | try_server_switch_to(ginfo, vcpu_info, record, info) || |
173 | vcpu_try_block(ginfo, vcpu_info, record, info) || | 176 | /* vcpu_try_block(ginfo, vcpu_info, record, info) || */ |
174 | vcpu_try_resume(ginfo, vcpu_info, record, info) || | 177 | /* vcpu_try_resume(ginfo, vcpu_info, record, info) || */ |
175 | vcpu_try_release(ginfo, vcpu_info, record, info) || | 178 | vcpu_try_release(ginfo, vcpu_info, record, info) || |
176 | vcpu_try_completion(ginfo, vcpu_info, record, info) || | 179 | vcpu_try_completion(ginfo, vcpu_info, record, info) || |
177 | try_switch_to(ginfo, vcpu_info, record, info) || | 180 | try_switch_to(ginfo, vcpu_info, record, info) || |
@@ -265,9 +268,9 @@ int rt_vcpu_plot_record_matches(struct rt_plot_common *rt, | |||
265 | match = rt_graph_check_server_switch_to(ARG, &dint, &dint, &dull) || | 268 | match = rt_graph_check_server_switch_to(ARG, &dint, &dint, &dull) || |
266 | rt_graph_check_server_switch_away(ARG, &dint, &dint, &dull) || | 269 | rt_graph_check_server_switch_away(ARG, &dint, &dint, &dull) || |
267 | rt_graph_check_server_completion(ARG, &dint, &dull) || | 270 | rt_graph_check_server_completion(ARG, &dint, &dull) || |
268 | rt_graph_check_server_release(ARG, &dint, &dull, &dull) || | 271 | rt_graph_check_server_release(ARG, &dint, &dull, &dull); |
269 | rt_graph_check_server_block(ARG, &dull) || | 272 | /* rt_graph_check_server_block(ARG, &dull) || */ |
270 | rt_graph_check_server_resume(ARG, &dull); | 273 | /* rt_graph_check_server_resume(ARG, &dull); */ |
271 | #undef ARG | 274 | #undef ARG |
272 | return (sid == vcpu_info->sid); | 275 | return (sid == vcpu_info->sid); |
273 | } | 276 | } |
@@ -364,55 +367,55 @@ int vcpu_try_completion(struct graph_info *ginfo, | |||
364 | return ret; | 367 | return ret; |
365 | } | 368 | } |
366 | 369 | ||
367 | /** | 370 | /* /\** */ |
368 | * vcpu_try_block - start block box if record matches | 371 | /* * vcpu_try_block - start block box if record matches */ |
369 | */ | 372 | /* *\/ */ |
370 | int vcpu_try_block(struct graph_info *ginfo, struct vcpu_info *vcpu_info, | 373 | /* int vcpu_try_block(struct graph_info *ginfo, struct vcpu_info *vcpu_info, */ |
371 | struct record *record, struct plot_info *info) | 374 | /* struct record *record, struct plot_info *info) */ |
372 | { | 375 | /* { */ |
373 | int sid, match, ret = 0; | 376 | /* int sid, match, ret = 0; */ |
374 | unsigned long long ts; | 377 | /* unsigned long long ts; */ |
375 | 378 | ||
376 | match = rt_graph_check_server_block(ginfo, record, &sid, &ts); | 379 | /* match = rt_graph_check_server_block(ginfo, record, &sid, &ts); */ |
377 | if (match && sid == vcpu_info->sid) { | 380 | /* if (match && sid == vcpu_info->sid) { */ |
378 | vcpu_info->fresh = FALSE; | 381 | /* vcpu_info->fresh = FALSE; */ |
379 | vcpu_info->block_time = ts; | 382 | /* vcpu_info->block_time = ts; */ |
380 | vcpu_info->block_cpu = NO_CPU; | 383 | /* vcpu_info->block_cpu = NO_CPU; */ |
381 | dprintf(3, "VCPU resume for %d on %d at %llu\n", | 384 | /* dprintf(3, "VCPU resume for %d on %d at %llu\n", */ |
382 | sid, record->cpu, ts); | 385 | /* sid, record->cpu, ts); */ |
383 | ret = 1; | 386 | /* ret = 1; */ |
384 | } | 387 | /* } */ |
385 | return ret; | 388 | /* return ret; */ |
386 | } | 389 | /* } */ |
387 | 390 | ||
388 | /** | 391 | /* /\** */ |
389 | * vcpu_try_resume - end block box if record matches | 392 | /* * vcpu_try_resume - end block box if record matches */ |
390 | */ | 393 | /* *\/ */ |
391 | int vcpu_try_resume(struct graph_info *ginfo, struct vcpu_info *vcpu_info, | 394 | /* int vcpu_try_resume(struct graph_info *ginfo, struct vcpu_info *vcpu_info, */ |
392 | struct record *record, struct plot_info *info) | 395 | /* struct record *record, struct plot_info *info) */ |
393 | { | 396 | /* { */ |
394 | int sid, match, ret = 0; | 397 | /* int sid, match, ret = 0; */ |
395 | unsigned long long ts; | 398 | /* unsigned long long ts; */ |
396 | 399 | ||
397 | match = rt_graph_check_server_resume(ginfo, record, &sid, &ts); | 400 | /* match = rt_graph_check_server_resume(ginfo, record, &sid, &ts); */ |
398 | 401 | ||
399 | if (match && sid == vcpu_info->sid) { | 402 | /* if (match && sid == vcpu_info->sid) { */ |
400 | info->box = TRUE; | 403 | /* info->box = TRUE; */ |
401 | info->bcolor = 0x0; | 404 | /* info->bcolor = 0x0; */ |
402 | info->bfill = TRUE; | 405 | /* info->bfill = TRUE; */ |
403 | info->bthin = TRUE; | 406 | /* info->bthin = TRUE; */ |
404 | info->bstart = vcpu_info->block_time; | 407 | /* info->bstart = vcpu_info->block_time; */ |
405 | info->bend = ts; | 408 | /* info->bend = ts; */ |
406 | vcpu_info->fresh = FALSE; | 409 | /* vcpu_info->fresh = FALSE; */ |
407 | 410 | ||
408 | vcpu_info->block_time = 0ULL; | 411 | /* vcpu_info->block_time = 0ULL; */ |
409 | vcpu_info->block_cpu = NO_CPU; | 412 | /* vcpu_info->block_cpu = NO_CPU; */ |
410 | dprintf(3, "VCPU resume for %d on %d at %llu\n", | 413 | /* dprintf(3, "VCPU resume for %d on %d at %llu\n", */ |
411 | sid, record->cpu, ts); | 414 | /* sid, record->cpu, ts); */ |
412 | 415 | ||
413 | ret = 1; | 416 | /* ret = 1; */ |
414 | } | 417 | /* } */ |
415 | return ret; | 418 | /* return ret; */ |
416 | } | 419 | /* } */ |
417 | 420 | ||
418 | 421 | ||