summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-01-03 09:43:53 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-01-25 20:22:25 -0800
commit42b7491af14cbba2393329ce43d508a957bd94fa (patch)
tree477779f78a06817af394b682226bfe268e462994 /tools/perf/scripts/python
parent0f3e40eb5ec17949ad6053ed057735e1a33079f7 (diff)
downloadlinux-42b7491af14cbba2393329ce43d508a957bd94fa.tar.gz
linux-42b7491af14cbba2393329ce43d508a957bd94fa.zip
mm/damon/core: introduce damon_call()
Introduce a new DAMON core API function, damon_call(). It aims to replace some damon_callback usages that access damon_ctx of ongoing kdamond with additional synchronizations. It receives a function pointer, let the parallel kdamond invokes the function, and returns after the invocation is finished, or canceled due to some races. kdamond invokes the function inside the main loop after sampling is done. If it is deactivated by DAMOS watermarks or already out of the main loop, mark the request as canceled so that damon_call() can wakeup and return. Link: https://lkml.kernel.org/r/20250103174400.54890-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions