aboutsummaryrefslogtreecommitdiffstats
path: root/trace-graph.h
diff options
context:
space:
mode:
Diffstat (limited to 'trace-graph.h')
-rw-r--r--trace-graph.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/trace-graph.h b/trace-graph.h
index 5d7c247..cfa5db7 100644
--- a/trace-graph.h
+++ b/trace-graph.h
@@ -44,6 +44,11 @@ enum graph_plot_type {
44 PLOT_TYPE_RT_TASK, 44 PLOT_TYPE_RT_TASK,
45}; 45};
46 46
47enum plot_time_type {
48 TIME_TYPE_FT,
49 TIME_TYPE_RT
50};
51
47struct graph_plot; 52struct graph_plot;
48 53
49struct plot_info { 54struct plot_info {
@@ -133,6 +138,7 @@ struct plot_callbacks {
133 138
134struct graph_plot { 139struct graph_plot {
135 enum graph_plot_type type; 140 enum graph_plot_type type;
141 enum plot_time_type time;
136 int pos; 142 int pos;
137 char *label; 143 char *label;
138 const struct plot_callbacks *cb; 144 const struct plot_callbacks *cb;
@@ -337,12 +343,14 @@ void trace_graph_plot_init(struct graph_info *ginfo);
337struct graph_plot *trace_graph_plot_append(struct graph_info *ginfo, 343struct graph_plot *trace_graph_plot_append(struct graph_info *ginfo,
338 const char *label, 344 const char *label,
339 enum graph_plot_type type, 345 enum graph_plot_type type,
346 enum plot_time_type time,
340 const struct plot_callbacks *cb, 347 const struct plot_callbacks *cb,
341 void *data); 348 void *data);
342struct graph_plot *trace_graph_plot_insert(struct graph_info *ginfo, 349struct graph_plot *trace_graph_plot_insert(struct graph_info *ginfo,
343 int pos, 350 int pos,
344 const char *label, 351 const char *label,
345 enum graph_plot_type type, 352 enum graph_plot_type type,
353 enum plot_time_type time,
346 const struct plot_callbacks *cb, 354 const struct plot_callbacks *cb,
347 void *data); 355 void *data);
348void trace_graph_plot_remove(struct graph_info *ginfo, struct graph_plot *plot); 356void trace_graph_plot_remove(struct graph_info *ginfo, struct graph_plot *plot);