Commit 503f6b71 authored by SeongJae Park's avatar SeongJae Park Committed by Suren Baghdasaryan
Browse files

UPSTREAM: mm/damon/core: use nr_accesses_bp as a source of damos_before_apply tracepoint

damos_before_apply tracepoint is exposing access rate of DAMON regions
using nr_accesses field of regions, which was actually used by DAMOS in
the past.  However, it has changed to use nr_accesses_bp instead.  Update
the tracepoint to expose the value that DAMOS is really using.

Note that it doesn't expose the value as is in the basis point, but after
converting it to the natural number by dividing it by 10,000.  Therefore
this change doesn't make user-visible behavioral differences.

Link: https://lkml.kernel.org/r/20230916020945.47296-4-sj@kernel.org


Signed-off-by: default avatarSeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
(cherry picked from commit a72217ad)

Bug:407463672

Change-Id: I293641ce1698318e8c66fa36345724e6396859a3
Signed-off-by: default avatardaiyang5 <daiyang5@xiaomi.com>
parent 752281ca
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment