aboutsummaryrefslogtreecommitdiffstats
path: root/rt-plot-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt-plot-task.c')
-rw-r--r--rt-plot-task.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/rt-plot-task.c b/rt-plot-task.c
index 94c60f1..63f4f20 100644
--- a/rt-plot-task.c
+++ b/rt-plot-task.c
@@ -3,7 +3,7 @@
3#include "trace-graph.h" 3#include "trace-graph.h"
4#include "trace-filter.h" 4#include "trace-filter.h"
5 5
6#define DEBUG_LEVEL 5 6#define DEBUG_LEVEL 4
7#if DEBUG_LEVEL > 0 7#if DEBUG_LEVEL > 0
8#define dprintf(l, x...) \ 8#define dprintf(l, x...) \
9 do { \ 9 do { \
@@ -237,9 +237,7 @@ static int try_block(struct graph_info *ginfo, struct rt_task_info *rtt_info,
237 dprintf(3, "Block for %d on %d at %llu\n", 237 dprintf(3, "Block for %d on %d at %llu\n",
238 pid, record->cpu, ts); 238 pid, record->cpu, ts);
239 ret = 1; 239 ret = 1;
240 } else { 240 }
241 dprintf(3, "%d does not match my pid %d\n", pid, rtt_info->pid);
242 }
243 return ret; 241 return ret;
244} 242}
245 243
@@ -259,9 +257,7 @@ static int try_resume(struct graph_info *ginfo, struct rt_task_info *rtt_info,
259 info->bstart = rtt_info->block_time; 257 info->bstart = rtt_info->block_time;
260 info->bend = ts; 258 info->bend = ts;
261 259
262 printf("drawing block\n");
263 if (lid) { 260 if (lid) {
264 printf("Adding label %s\n", rtt_info->block_label);
265 info->blabel = rtt_info->block_label; 261 info->blabel = rtt_info->block_label;
266 } 262 }
267 263
@@ -328,6 +324,7 @@ static int try_switch_to(struct graph_info *ginfo, struct rt_task_info *rtt_info
328 pid, job, record->cpu, ts); 324 pid, job, record->cpu, ts);
329 ret = 1; 325 ret = 1;
330 } 326 }
327
331 return ret; 328 return ret;
332} 329}
333 330
@@ -417,8 +414,6 @@ static int rt_task_plot_event(struct graph_info *ginfo, struct graph_plot *plot,
417 struct rt_task_info *rtt_info = plot->private; 414 struct rt_task_info *rtt_info = plot->private;
418 int match; 415 int match;
419 416
420 dprintf(4,"%s\n", __FUNCTION__);
421
422 /* No more records, finish what we started */ 417 /* No more records, finish what we started */
423 if (!record) { 418 if (!record) {
424 do_plot_end(ginfo, rtt_info, info); 419 do_plot_end(ginfo, rtt_info, info);
@@ -443,8 +438,6 @@ static void rt_task_plot_start(struct graph_info *ginfo, struct graph_plot *plot
443 int i; 438 int i;
444 struct rt_task_info *rtt_info = plot->private; 439 struct rt_task_info *rtt_info = plot->private;
445 440
446 dprintf(4,"%s\n", __FUNCTION__);
447
448 rtt_info->run_time = time; 441 rtt_info->run_time = time;
449 rtt_info->block_time = time; 442 rtt_info->block_time = time;
450 rtt_info->run_cpu = NO_CPU; 443 rtt_info->run_cpu = NO_CPU;
@@ -454,14 +447,13 @@ static void rt_task_plot_start(struct graph_info *ginfo, struct graph_plot *plot
454 for (i = 0; i < 3; i++) 447 for (i = 0; i < 3; i++)
455 rtt_info->first_rels[i] = 0ULL; 448 rtt_info->first_rels[i] = 0ULL;
456 rtt_info->last_job = -1; 449 rtt_info->last_job = -1;
457 update_job(rtt_info, 0); 450 update_job(rtt_info, -1);
458 update_lid(rtt_info, 0); 451 update_lid(rtt_info, 0);
459} 452}
460 453
461static void rt_task_plot_destroy(struct graph_info *ginfo, struct graph_plot *plot) 454static void rt_task_plot_destroy(struct graph_info *ginfo, struct graph_plot *plot)
462{ 455{
463 struct rt_task_info *rtt_info = plot->private; 456 struct rt_task_info *rtt_info = plot->private;
464 dprintf(4,"%s\n", __FUNCTION__);
465 trace_graph_plot_remove_all_recs(ginfo, plot); 457 trace_graph_plot_remove_all_recs(ginfo, plot);
466 free(rtt_info->label); 458 free(rtt_info->label);
467 free(rtt_info); 459 free(rtt_info);
@@ -507,8 +499,6 @@ rt_task_plot_write_header(struct rt_plot_common *rt,
507 unsigned long long release, deadline; 499 unsigned long long release, deadline;
508 struct rt_task_info *rtt_info = (struct rt_task_info*)rt; 500 struct rt_task_info *rtt_info = (struct rt_task_info*)rt;
509 501
510 dprintf(4,"%s\n", __FUNCTION__);
511
512 found = get_time_info(ginfo, rtt_info, time, 502 found = get_time_info(ginfo, rtt_info, time,
513 &job, &release, &deadline, &record); 503 &job, &release, &deadline, &record);
514 if (!found) 504 if (!found)