aboutsummaryrefslogtreecommitdiffstats
path: root/kernel-shark.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel-shark.c')
-rw-r--r--kernel-shark.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/kernel-shark.c b/kernel-shark.c
index dc5201c..6e41406 100644
--- a/kernel-shark.c
+++ b/kernel-shark.c
@@ -1308,6 +1308,15 @@ plot_rt_tasks_clicked (gpointer data)
1308 free(selected); 1308 free(selected);
1309} 1309}
1310 1310
1311static void
1312show_all_rt_clicked (gpointer data)
1313{
1314 struct shark_info *info = data;
1315 struct graph_info *ginfo = info->ginfo;
1316 rt_plot_add_all_tasks(ginfo);
1317 trace_graph_refresh(ginfo);
1318}
1319
1311 1320
1312/* Callback for the clicked signal of the help contents button */ 1321/* Callback for the clicked signal of the help contents button */
1313static void 1322static void
@@ -2015,6 +2024,8 @@ void kernel_shark(int argc, char **argv)
2015 gtk_widget_show(sub_item); 2024 gtk_widget_show(sub_item);
2016 2025
2017 2026
2027
2028
2018 /* --- Filter - Graph Tasks Option --- */ 2029 /* --- Filter - Graph Tasks Option --- */
2019 2030
2020 sub_item = gtk_menu_item_new_with_label("tasks"); 2031 sub_item = gtk_menu_item_new_with_label("tasks");
@@ -2231,6 +2242,21 @@ void kernel_shark(int argc, char **argv)
2231 /* We do need to show menu items */ 2242 /* We do need to show menu items */
2232 gtk_widget_show(sub_item); 2243 gtk_widget_show(sub_item);
2233 2244
2245 /* --- Plot - All RT Tasks Option --- */
2246
2247 sub_item = gtk_menu_item_new_with_label("Show All Real-Time Tasks");
2248
2249 /* Add them to the menu */
2250 gtk_menu_shell_append(GTK_MENU_SHELL (menu), sub_item);
2251
2252 /* We can attach the Quit menu item to our exit function */
2253 g_signal_connect_swapped (G_OBJECT (sub_item), "activate",
2254 G_CALLBACK (show_all_rt_clicked),
2255 (gpointer) info);
2256
2257 /* We do need to show menu items */
2258 gtk_widget_show(sub_item);
2259
2234 /* --- Plot - RT CPUs Option --- */ 2260 /* --- Plot - RT CPUs Option --- */
2235 2261
2236 sub_item = gtk_menu_item_new_with_label("Real-Time CPUs"); 2262 sub_item = gtk_menu_item_new_with_label("Real-Time CPUs");