mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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 <nakamura.shun@fujitsu.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20211109085831.3770594-3-nakamura.shun@fujitsu.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9a5b2d1afa
commit
f2c4dcf191
1 changed files with 0 additions and 2 deletions
|
@ -353,8 +353,6 @@ int perf_mmap__read_self(struct perf_mmap *map, struct perf_counts_values *count
|
||||||
count->ena += delta;
|
count->ena += delta;
|
||||||
if (idx)
|
if (idx)
|
||||||
count->run += delta;
|
count->run += delta;
|
||||||
|
|
||||||
cnt = mul_u64_u64_div64(cnt, count->ena, count->run);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
count->val = cnt;
|
count->val = cnt;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue