diff options
Diffstat (limited to 'tools/perf/builtin-stat.c')
-rw-r--r-- | tools/perf/builtin-stat.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c index 8a7fd0c60ab1..0ccba5c6b61d 100644 --- a/tools/perf/builtin-stat.c +++ b/tools/perf/builtin-stat.c | |||
@@ -141,24 +141,6 @@ static inline void diff_timespec(struct timespec *r, struct timespec *a, | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||
144 | static int perf_evsel__alloc_prev_raw_counts(struct perf_evsel *evsel, | ||
145 | int ncpus, int nthreads) | ||
146 | { | ||
147 | struct perf_counts *counts; | ||
148 | |||
149 | counts = perf_counts__new(ncpus, nthreads); | ||
150 | if (counts) | ||
151 | evsel->prev_raw_counts = counts; | ||
152 | |||
153 | return counts ? 0 : -ENOMEM; | ||
154 | } | ||
155 | |||
156 | static void perf_evsel__free_prev_raw_counts(struct perf_evsel *evsel) | ||
157 | { | ||
158 | perf_counts__delete(evsel->prev_raw_counts); | ||
159 | evsel->prev_raw_counts = NULL; | ||
160 | } | ||
161 | |||
162 | static void perf_evlist__free_stats(struct perf_evlist *evlist) | 144 | static void perf_evlist__free_stats(struct perf_evlist *evlist) |
163 | { | 145 | { |
164 | struct perf_evsel *evsel; | 146 | struct perf_evsel *evsel; |