From 3f1e092ed414ab2a9f73eafe87f35e868030463c Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Wed, 31 Mar 2010 05:32:43 -0400 Subject: trace-view: Added saving of filters Add "Save filters" to "File" menu, where it will allow the user to save the filters to a file in XML format. Signed-off-by: Steven Rostedt --- trace-view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'trace-view.h') diff --git a/trace-view.h b/trace-view.h index 182b285..5ad33bf 100644 --- a/trace-view.h +++ b/trace-view.h @@ -23,6 +23,7 @@ #include "trace-view-store.h" #include "trace-filter.h" +#include "trace-xml.h" void trace_view_load(GtkWidget *view, struct tracecmd_input *handle, @@ -65,4 +66,7 @@ void trace_view_search_setup(GtkBox *box, GtkTreeView *treeview); gint trace_view_get_selected_row(GtkWidget *treeview); +int trace_view_save_filters(struct tracecmd_xml_handle *handle, + GtkTreeView *treeview); + #endif /* _TRACE_VIEW_H */ -- cgit v1.2.2 From b2a9cd2f38f6c3c30e9ef4c47eb004b41b50fe5e Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Mon, 5 Apr 2010 12:40:51 -0400 Subject: 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 --- trace-view.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'trace-view.h') diff --git a/trace-view.h b/trace-view.h index 5ad33bf..81dac6f 100644 --- a/trace-view.h +++ b/trace-view.h @@ -68,5 +68,7 @@ gint trace_view_get_selected_row(GtkWidget *treeview); int trace_view_save_filters(struct tracecmd_xml_handle *handle, GtkTreeView *treeview); +int trace_view_load_filters(struct tracecmd_xml_handle *handle, + GtkTreeView *treeview); #endif /* _TRACE_VIEW_H */ -- cgit v1.2.2 From 64be78aa61dfda0c5fdf5c7ccfc2d9a93ba52aa5 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Mon, 5 Apr 2010 20:56:05 -0400 Subject: trace-view: Add save and load of task filters Include saving of the task filters to the filter file as well as the ability to load them. Signed-off-by: Steven Rostedt --- trace-view.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'trace-view.h') diff --git a/trace-view.h b/trace-view.h index 81dac6f..b0ba7ed 100644 --- a/trace-view.h +++ b/trace-view.h @@ -67,8 +67,12 @@ void trace_view_search_setup(GtkBox *box, GtkTreeView *treeview); gint trace_view_get_selected_row(GtkWidget *treeview); int trace_view_save_filters(struct tracecmd_xml_handle *handle, - GtkTreeView *treeview); + GtkTreeView *treeview, + struct filter_task *task_filter, + struct filter_task *hide_tasks); int trace_view_load_filters(struct tracecmd_xml_handle *handle, - GtkTreeView *treeview); + GtkTreeView *treeview, + struct filter_task *task_filter, + struct filter_task *hide_tasks); #endif /* _TRACE_VIEW_H */ -- cgit v1.2.2 From 20359fdc358744dee36b8e59c234e965fc7d2a69 Mon Sep 17 00:00:00 2001 From: Steven Rostedt Date: Mon, 5 Apr 2010 22:40:54 -0400 Subject: kernelshark: Make all saved filters under KernelShark Make the xml doc under ... for trace-view and trace-graph. Also pull out the task filters since the view and graph in kernelshark share the same filters. Signed-off-by: Steven Rostedt --- trace-view.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'trace-view.h') diff --git a/trace-view.h b/trace-view.h index b0ba7ed..81dac6f 100644 --- a/trace-view.h +++ b/trace-view.h @@ -67,12 +67,8 @@ void trace_view_search_setup(GtkBox *box, GtkTreeView *treeview); gint trace_view_get_selected_row(GtkWidget *treeview); int trace_view_save_filters(struct tracecmd_xml_handle *handle, - GtkTreeView *treeview, - struct filter_task *task_filter, - struct filter_task *hide_tasks); + GtkTreeView *treeview); int trace_view_load_filters(struct tracecmd_xml_handle *handle, - GtkTreeView *treeview, - struct filter_task *task_filter, - struct filter_task *hide_tasks); + GtkTreeView *treeview); #endif /* _TRACE_VIEW_H */ -- cgit v1.2.2