aboutsummaryrefslogtreecommitdiffstats
path: root/trace-plot-task.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-plot-task.c')
-rw-r--r--trace-plot-task.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/trace-plot-task.c b/trace-plot-task.c
index f3b0c01..abe4025 100644
--- a/trace-plot-task.c
+++ b/trace-plot-task.c
@@ -532,6 +532,13 @@ int task_plot_display_info(struct graph_info *ginfo,
532 return 1; 532 return 1;
533} 533}
534 534
535void task_plot_destroy(struct graph_info *ginfo, struct graph_plot *plot)
536{
537 struct task_plot_info *task_info = plot->private;
538
539 free(task_info);
540}
541
535static const struct plot_callbacks task_plot_cb = { 542static const struct plot_callbacks task_plot_cb = {
536 .match_time = task_plot_match_time, 543 .match_time = task_plot_match_time,
537 .plot_event = task_plot_event, 544 .plot_event = task_plot_event,
@@ -539,6 +546,7 @@ static const struct plot_callbacks task_plot_cb = {
539 .display_last_event = task_plot_display_last_event, 546 .display_last_event = task_plot_display_last_event,
540 .find_record = task_plot_find_record, 547 .find_record = task_plot_find_record,
541 .display_info = task_plot_display_info, 548 .display_info = task_plot_display_info,
549 .destroy = task_plot_destroy
542}; 550};
543 551
544void graph_plot_init_tasks(struct graph_info *ginfo) 552void graph_plot_init_tasks(struct graph_info *ginfo)