perf tools: Copy metric events properly when expand cgroups
[linux-2.6-microblaze.git] / tools / perf / builtin-stat.c
index 0c9e21a..2751699 100644 (file)
@@ -2234,7 +2234,8 @@ int cmd_stat(int argc, const char **argv)
                        goto out;
                }
 
-               if (evlist__expand_cgroup(evsel_list, stat_config.cgroup_list) < 0)
+               if (evlist__expand_cgroup(evsel_list, stat_config.cgroup_list,
+                                         &stat_config.metric_events) < 0)
                        goto out;
        }