|
|
@@ -141,24 +141,6 @@ static inline void diff_timespec(struct timespec *r, struct timespec *a,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static int perf_evsel__alloc_prev_raw_counts(struct perf_evsel *evsel,
|
|
|
- int ncpus, int nthreads)
|
|
|
-{
|
|
|
- struct perf_counts *counts;
|
|
|
-
|
|
|
- counts = perf_counts__new(ncpus, nthreads);
|
|
|
- if (counts)
|
|
|
- evsel->prev_raw_counts = counts;
|
|
|
-
|
|
|
- return counts ? 0 : -ENOMEM;
|
|
|
-}
|
|
|
-
|
|
|
-static void perf_evsel__free_prev_raw_counts(struct perf_evsel *evsel)
|
|
|
-{
|
|
|
- perf_counts__delete(evsel->prev_raw_counts);
|
|
|
- evsel->prev_raw_counts = NULL;
|
|
|
-}
|
|
|
-
|
|
|
static void perf_evlist__free_stats(struct perf_evlist *evlist)
|
|
|
{
|
|
|
struct perf_evsel *evsel;
|