mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
mm/damon/core: set samples in apply_probes() if probe weights are set
When probe weights are set, the prepare_access_checks() ops callback is not invoked, so sampling addresses of regions are unset. Ask apply_probes() to set those together in the case. Link: https://lore.kernel.org/20260710134651.18084-13-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Cc: David Hildenbrand <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Lorenzo Stoakes <ljs@kernel.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
05c978da7f
commit
a8ba965a4c
|
|
@ -3777,7 +3777,8 @@ static int kdamond_fn(void *data)
|
|||
if (!access_check_disabled && ctx->ops.check_accesses)
|
||||
max_nr_accesses = ctx->ops.check_accesses(ctx);
|
||||
if (ctx->ops.apply_probes)
|
||||
ctx->ops.apply_probes(ctx, false, false);
|
||||
ctx->ops.apply_probes(ctx, access_check_disabled,
|
||||
false);
|
||||
|
||||
if (time_after_eq(ctx->passed_sample_intervals,
|
||||
next_aggregation_sis)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user