From: Shunsuke Nakamura Date: Tue, 9 Nov 2021 08:58:30 +0000 (+0900) Subject: libperf: Remove scaling process from perf_mmap__read_self() X-Git-Tag: v6.1-rc5~2191^2~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2c4dcf191904d28d710290eea4a623710eee57c;p=platform%2Fkernel%2Flinux-starfive.git libperf: Remove scaling process from perf_mmap__read_self() Remove the scaling process from perf_mmap__read_self(), and unify the counters that can be obtained from perf_evsel__read() to "no scaling". Signed-off-by: Shunsuke Nakamura Acked-by: Jiri Olsa Cc: Alexander Shishkin Cc: Ingo Molnar Cc: Mark Rutland Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Rob Herring Link: https://lore.kernel.org/r/20211109085831.3770594-3-nakamura.shun@fujitsu.com Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/lib/perf/mmap.c b/tools/lib/perf/mmap.c index c89dfa5..aaa4579 100644 --- a/tools/lib/perf/mmap.c +++ b/tools/lib/perf/mmap.c @@ -353,8 +353,6 @@ int perf_mmap__read_self(struct perf_mmap *map, struct perf_counts_values *count count->ena += delta; if (idx) count->run += delta; - - cnt = mul_u64_u64_div64(cnt, count->ena, count->run); } count->val = cnt;