diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-04-29 20:47:38 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2020-05-05 21:35:30 +0200 |
commit | 12f5261dac90aea0fd5287b01d50397334cf303e (patch) | |
tree | 293cf8d2557a6070859d0f3614f5c9958301c170 /tools/perf/util/stat.c | |
parent | perf evsel: Rename perf_evsel__nr_cpus() to evsel__nr_cpus() (diff) | |
download | linux-12f5261dac90aea0fd5287b01d50397334cf303e.tar.xz linux-12f5261dac90aea0fd5287b01d50397334cf303e.zip |
perf evsel: Rename perf_evsel__compute_deltas() to evsel__compute_deltas()
As it is a 'struct evsel' method, 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/stat.c')
-rw-r--r-- | tools/perf/util/stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/stat.c b/tools/perf/util/stat.c index da3a206e95f7..4e6e770f39aa 100644 --- a/tools/perf/util/stat.c +++ b/tools/perf/util/stat.c @@ -302,7 +302,7 @@ process_counter_values(struct perf_stat_config *config, struct evsel *evsel, case AGGR_NODE: case AGGR_NONE: if (!evsel->snapshot) - perf_evsel__compute_deltas(evsel, cpu, thread, count); + evsel__compute_deltas(evsel, cpu, thread, count); perf_counts_values__scale(count, config->scale, NULL); if ((config->aggr_mode == AGGR_NONE) && (!evsel->percore)) { perf_stat__update_shadow_stats(evsel, count->val, @@ -384,7 +384,7 @@ int perf_stat_process_counter(struct perf_stat_config *config, return 0; if (!counter->snapshot) - perf_evsel__compute_deltas(counter, -1, -1, aggr); + evsel__compute_deltas(counter, -1, -1, aggr); perf_counts_values__scale(aggr, config->scale, &counter->counts->scaled); for (i = 0; i < 3; i++) |