Skip to content

Commit

Permalink
libperf: Remove scaling process from perf_mmap__read_self()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shunsuke Nakamura authored and Arnaldo Carvalho de Melo committed Dec 8, 2021
1 parent 9a5b2d1 commit f2c4dcf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/lib/perf/mmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f2c4dcf

Please sign in to comment.