diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-01-07 13:15:10 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-01-07 13:15:10 -0500 |
commit | 2eeffcc06ca7ed7f3dd85f40ad744292169a8ce8 (patch) | |
tree | 07e3403c828017691a0d1ac4fcd14e36eb7400f5 /kernel-shark.c | |
parent | 612bf518a48194e13b77bac424f6b99868593088 (diff) |
kernel-shark: Add event filtering for graph too
Use the event filter callback to also update the graph.
Signen-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel-shark.c')
-rw-r--r-- | kernel-shark.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/kernel-shark.c b/kernel-shark.c index 4b8966f..4eb0c7e 100644 --- a/kernel-shark.c +++ b/kernel-shark.c | |||
@@ -113,6 +113,21 @@ delete_event (GtkWidget *widget, GdkEvent *event, gpointer data) | |||
113 | return TRUE; | 113 | return TRUE; |
114 | } | 114 | } |
115 | 115 | ||
116 | static void event_filter_callback(gboolean accept, | ||
117 | gboolean all_events, | ||
118 | gchar **systems, | ||
119 | gint *events, | ||
120 | gpointer data) | ||
121 | { | ||
122 | struct shark_info *info = data; | ||
123 | |||
124 | trace_view_event_filter_callback(accept, all_events, systems, | ||
125 | events, info->treeview); | ||
126 | |||
127 | trace_graph_event_filter_callback(accept, all_events, systems, | ||
128 | events, info->ginfo); | ||
129 | } | ||
130 | |||
116 | /* Callback for the clicked signal of the Events filter button */ | 131 | /* Callback for the clicked signal of the Events filter button */ |
117 | static void | 132 | static void |
118 | events_clicked (gpointer data) | 133 | events_clicked (gpointer data) |
@@ -137,7 +152,7 @@ events_clicked (gpointer data) | |||
137 | 152 | ||
138 | trace_filter_event_dialog(store->handle, all_events, | 153 | trace_filter_event_dialog(store->handle, all_events, |
139 | systems, events, | 154 | systems, events, |
140 | trace_view_event_filter_callback, trace_tree); | 155 | event_filter_callback, info); |
141 | } | 156 | } |
142 | 157 | ||
143 | /* Callback for the clicked signal of the CPUs filter button */ | 158 | /* Callback for the clicked signal of the CPUs filter button */ |