diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-06-10 16:15:19 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-06-10 16:15:19 -0400 |
commit | ce6dcdc247fc6194566360e74fcb986fa656043a (patch) | |
tree | 58975bf85651d65c58bb74879c497d1048370b2f /trace-view-main.c | |
parent | 66256925536b9757da1f0cb2bc2230b6478dbeaf (diff) |
kernelshark: Fix the xml save/load to handle separate task filters
Update the save/load of the filters to handle the change to make the
List and Graph have separate task filters.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'trace-view-main.c')
-rw-r--r-- | trace-view-main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/trace-view-main.c b/trace-view-main.c index 8fa9aa6..59d6838 100644 --- a/trace-view-main.c +++ b/trace-view-main.c | |||
@@ -102,7 +102,9 @@ load_filters_clicked (gpointer data) | |||
102 | } | 102 | } |
103 | g_free(filename); | 103 | g_free(filename); |
104 | 104 | ||
105 | trace_filter_load_filters(handle, info->task_filter, | 105 | trace_filter_load_filters(handle, |
106 | "ListTaskFilter", | ||
107 | info->task_filter, | ||
106 | info->hide_tasks); | 108 | info->hide_tasks); |
107 | 109 | ||
108 | trace_view_load_filters(handle, trace_tree); | 110 | trace_view_load_filters(handle, trace_tree); |
@@ -128,7 +130,9 @@ save_filters_clicked (gpointer data) | |||
128 | warning("Could not create %s", filename); | 130 | warning("Could not create %s", filename); |
129 | g_free(filename); | 131 | g_free(filename); |
130 | 132 | ||
131 | trace_filter_save_filters(handle, info->task_filter, info->hide_tasks); | 133 | trace_filter_save_filters(handle, |
134 | "ListTaskFilter", | ||
135 | info->task_filter, info->hide_tasks); | ||
132 | trace_view_save_filters(handle, trace_tree); | 136 | trace_view_save_filters(handle, trace_tree); |
133 | 137 | ||
134 | tracecmd_xml_close(handle); | 138 | tracecmd_xml_close(handle); |