return -1;
}
-static void perf_stat__reset_stats(struct perf_evlist *evlist)
+static void perf_evlist__reset_stats(struct perf_evlist *evlist)
{
struct perf_evsel *evsel;
perf_evsel__reset_stat_priv(evsel);
perf_evsel__reset_counts(evsel);
}
+}
+static void perf_stat__reset_stats(void)
+{
+ perf_evlist__reset_stats(evsel_list);
perf_stat__reset_shadow_stats();
}
status = run_perf_stat(argc, argv);
if (forever && status != -1) {
print_stat(argc, argv);
- perf_stat__reset_stats(evsel_list);
+ perf_stat__reset_stats();
}
}