aboutsummaryrefslogtreecommitdiffstats
path: root/trace-filter.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2010-04-05 12:40:51 -0400
committerSteven Rostedt <rostedt@goodmis.org>2010-04-09 11:56:18 -0400
commitb2a9cd2f38f6c3c30e9ef4c47eb004b41b50fe5e (patch)
tree976dbf8b5f833a31787ff6a4e2f3ca2a4f5d869e /trace-filter.h
parent3f1e092ed414ab2a9f73eafe87f35e868030463c (diff)
trace-view: Add loading of saved event filters
Add "Load filters" to trace-view that loads the event filters saved with a "Save filters". Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-filter.h')
-rw-r--r--trace-filter.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/trace-filter.h b/trace-filter.h
index 7575244..915b174 100644
--- a/trace-filter.h
+++ b/trace-filter.h
@@ -135,16 +135,20 @@ typedef void (*trace_filter_cpu_cb_func)(gboolean accept,
135void trace_filter_cpu_dialog(gboolean all_cpus, guint64 *cpu_mask_selected, gint cpus, 135void trace_filter_cpu_dialog(gboolean all_cpus, guint64 *cpu_mask_selected, gint cpus,
136 trace_filter_cpu_cb_func func, gpointer data); 136 trace_filter_cpu_cb_func func, gpointer data);
137 137
138/* put here because there's no other place */
139
140int str_cmp(const void *a, const void *b);
141int id_cmp(const void *a, const void *b);
142
143void trace_array_add(gint **array, gint *count, gint val); 138void trace_array_add(gint **array, gint *count, gint val);
144 139
140/* save and load filters */
145int trace_filter_save_events(struct tracecmd_xml_handle *handle, 141int trace_filter_save_events(struct tracecmd_xml_handle *handle,
146 struct event_filter *filter); 142 struct event_filter *filter);
147int trace_filter_save_tasks(struct tracecmd_xml_handle *handle, 143int trace_filter_save_tasks(struct tracecmd_xml_handle *handle,
148 struct filter_task *filter); 144 struct filter_task *filter);
145int trace_filter_load_events(struct event_filter *event_filter,
146 struct tracecmd_xml_handle *handle,
147 struct tracecmd_xml_system_node *node);
148
149/* put here because there's no other place */
150
151int str_cmp(const void *a, const void *b);
152int id_cmp(const void *a, const void *b);
149 153
150#endif /* _TRACE_FILTER_H */ 154#endif /* _TRACE_FILTER_H */