diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-05-06 18:38:26 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-05-28 15:03:24 +0200 |
commit | 7d1e239e911f57180c4c3aa8f6d4f87c306e2cfd (patch) | |
tree | dd523885cb3863d81b38569d49e1d35d069a50f6 /tools/perf/util/counts.c | |
parent | perf evsel: Rename perf_evsel__[hs]w_cache* to evsel__[hs]w_cache* (diff) | |
download | linux-7d1e239e911f57180c4c3aa8f6d4f87c306e2cfd.tar.xz linux-7d1e239e911f57180c4c3aa8f6d4f87c306e2cfd.zip |
perf counts: Rename perf_evsel__*counts() to evsel__*counts()
As these are 'struct evsel' methods, not part of tools/lib/perf/, aka
libperf, to whom the perf_ prefix belongs.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/counts.c')
-rw-r--r-- | tools/perf/util/counts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/counts.c b/tools/perf/util/counts.c index f94e1a23dad6..615c9f3e95cb 100644 --- a/tools/perf/util/counts.c +++ b/tools/perf/util/counts.c @@ -48,18 +48,18 @@ static void perf_counts__reset(struct perf_counts *counts) xyarray__reset(counts->values); } -void perf_evsel__reset_counts(struct evsel *evsel) +void evsel__reset_counts(struct evsel *evsel) { perf_counts__reset(evsel->counts); } -int perf_evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads) +int evsel__alloc_counts(struct evsel *evsel, int ncpus, int nthreads) { evsel->counts = perf_counts__new(ncpus, nthreads); return evsel->counts != NULL ? 0 : -ENOMEM; } -void perf_evsel__free_counts(struct evsel *evsel) +void evsel__free_counts(struct evsel *evsel) { perf_counts__delete(evsel->counts); evsel->counts = NULL; |