diff options
Diffstat (limited to 'trace-plot-task.c')
| -rw-r--r-- | trace-plot-task.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c index b36d565..a5b8d79 100644 --- a/trace-plot-task.c +++ b/trace-plot-task.c | |||
| @@ -632,7 +632,8 @@ void graph_plot_init_tasks(struct graph_info *ginfo) | |||
| 632 | task_info->pid = pid; | 632 | task_info->pid = pid; |
| 633 | 633 | ||
| 634 | snprintf(label, 100, "TASK %d", pid); | 634 | snprintf(label, 100, "TASK %d", pid); |
| 635 | trace_graph_plot_insert(ginfo, 1, label, &task_plot_cb, task_info); | 635 | trace_graph_plot_insert(ginfo, 1, label, PLOT_TYPE_TASK, |
| 636 | &task_plot_cb, task_info); | ||
| 636 | } | 637 | } |
| 637 | 638 | ||
| 638 | void graph_plot_task(struct graph_info *ginfo, int pid, int pos) | 639 | void graph_plot_task(struct graph_info *ginfo, int pid, int pos) |
| @@ -650,7 +651,8 @@ void graph_plot_task(struct graph_info *ginfo, int pid, int pos) | |||
| 650 | len = strlen(comm) + 100; | 651 | len = strlen(comm) + 100; |
| 651 | label = malloc_or_die(len); | 652 | label = malloc_or_die(len); |
| 652 | snprintf(label, len, "%s-%d", comm, pid); | 653 | snprintf(label, len, "%s-%d", comm, pid); |
| 653 | plot = trace_graph_plot_insert(ginfo, pos, label, &task_plot_cb, task_info); | 654 | plot = trace_graph_plot_insert(ginfo, pos, label, PLOT_TYPE_TASK, |
| 655 | &task_plot_cb, task_info); | ||
| 654 | free(label); | 656 | free(label); |
| 655 | 657 | ||
| 656 | trace_graph_plot_add_all_recs(ginfo, plot); | 658 | trace_graph_plot_add_all_recs(ginfo, plot); |
