mm/ksm: add tracepoint for ksm advisor
authorStefan Roesch <shr@devkernel.io>
Mon, 18 Dec 2023 23:10:53 +0000 (15:10 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 Dec 2023 19:58:27 +0000 (11:58 -0800)
commit5088b49730afaaf3134d42705cfcff7ce8be082e
treee974b3ab381f332a503c70ca68e0602d4f6f6853
parent66790e9a735b5c42349c48881e496b6946a55c05
mm/ksm: add tracepoint for ksm advisor

This adds a new tracepoint for the ksm advisor.  It reports the last scan
time, the new setting of the pages_to_scan parameter and the average cpu
percent usage of the ksmd background thread for the last scan.

Link: https://lkml.kernel.org/r/20231218231054.1625219-4-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Rik van Riel <riel@surriel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/trace/events/ksm.h
mm/ksm.c