diff options
Diffstat (limited to 'kernel-shark.c')
-rw-r--r-- | kernel-shark.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/kernel-shark.c b/kernel-shark.c index e0c123a..b24e3b6 100644 --- a/kernel-shark.c +++ b/kernel-shark.c | |||
@@ -150,17 +150,6 @@ static void update_tree_view_filters(struct shark_info *info, | |||
150 | 150 | ||
151 | /* graph callbacks */ | 151 | /* graph callbacks */ |
152 | 152 | ||
153 | /* convert_nano() and print_time() are copied from trace-graph.c for debugging | ||
154 | purposes, and should be deleted when this is complete (or merged with | ||
155 | trace-graph.c */ | ||
156 | |||
157 | static void convert_nano(unsigned long long time, unsigned long *sec, | ||
158 | unsigned long *usec) | ||
159 | { | ||
160 | *sec = time / 1000000000ULL; | ||
161 | *usec = (time / 1000) % 1000000; | ||
162 | } | ||
163 | |||
164 | static void print_time(unsigned long long time) | 153 | static void print_time(unsigned long long time) |
165 | { | 154 | { |
166 | unsigned long sec, usec; | 155 | unsigned long sec, usec; |
@@ -1292,10 +1281,10 @@ plot_rt_tasks_clicked (gpointer data) | |||
1292 | 1281 | ||
1293 | rtinfo = &ginfo->rtinfo; | 1282 | rtinfo = &ginfo->rtinfo; |
1294 | tasks = task_list_pids(rtinfo->tasks); | 1283 | tasks = task_list_pids(rtinfo->tasks); |
1295 | rt_plot_task_plotted(rtinfo, &selected); | 1284 | rt_plot_task_plotted(ginfo, &selected); |
1296 | 1285 | ||
1297 | trace_task_dialog(ginfo->handle, tasks, selected, | 1286 | trace_task_dialog(ginfo->handle, tasks, selected, |
1298 | rt_plot_task_update_callback, rtinfo); | 1287 | rt_plot_task_update_callback, ginfo); |
1299 | free(tasks); | 1288 | free(tasks); |
1300 | free(selected); | 1289 | free(selected); |
1301 | } | 1290 | } |