aboutsummaryrefslogtreecommitdiffstats
path: root/trace-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'trace-filter.c')
-rw-r--r--trace-filter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/trace-filter.c b/trace-filter.c
index 2cc0629..b8fc76f 100644
--- a/trace-filter.c
+++ b/trace-filter.c
@@ -2196,6 +2196,7 @@ int trace_filter_load_task_filter(struct filter_task *filter,
2196} 2196}
2197 2197
2198int trace_filter_load_filters(struct tracecmd_xml_handle *handle, 2198int trace_filter_load_filters(struct tracecmd_xml_handle *handle,
2199 const char *system_name,
2199 struct filter_task *task_filter, 2200 struct filter_task *task_filter,
2200 struct filter_task *hide_tasks) 2201 struct filter_task *hide_tasks)
2201{ 2202{
@@ -2203,7 +2204,7 @@ int trace_filter_load_filters(struct tracecmd_xml_handle *handle,
2203 struct tracecmd_xml_system_node *syschild; 2204 struct tracecmd_xml_system_node *syschild;
2204 const char *name; 2205 const char *name;
2205 2206
2206 system = tracecmd_xml_find_system(handle, "TraceFilter"); 2207 system = tracecmd_xml_find_system(handle, system_name);
2207 if (!system) 2208 if (!system)
2208 return -1; 2209 return -1;
2209 2210
@@ -2234,11 +2235,12 @@ int trace_filter_load_filters(struct tracecmd_xml_handle *handle,
2234} 2235}
2235 2236
2236int trace_filter_save_filters(struct tracecmd_xml_handle *handle, 2237int trace_filter_save_filters(struct tracecmd_xml_handle *handle,
2238 const char *system_name,
2237 struct filter_task *task_filter, 2239 struct filter_task *task_filter,
2238 struct filter_task *hide_tasks) 2240 struct filter_task *hide_tasks)
2239{ 2241{
2240 2242
2241 tracecmd_xml_start_system(handle, "TraceFilter"); 2243 tracecmd_xml_start_system(handle, system_name);
2242 2244
2243 if (task_filter && filter_task_count(task_filter)) { 2245 if (task_filter && filter_task_count(task_filter)) {
2244 tracecmd_xml_start_sub_system(handle, "TaskFilter"); 2246 tracecmd_xml_start_sub_system(handle, "TaskFilter");