libperf: Move 'leader' from tools/perf to perf_evsel::leader
[linux-2.6-microblaze.git] / tools / perf / util / stat-shadow.c
index 39967a4..34a7f5c 100644 (file)
@@ -379,7 +379,7 @@ void perf_stat__collect_metric_expr(struct evlist *evsel_list)
        evlist__for_each_entry(evsel_list, counter) {
                bool invalid = false;
 
-               leader = counter->leader;
+               leader = evsel__leader(counter);
                if (!counter->metric_expr)
                        continue;