aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-03-06 09:58:59 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-03-17 22:06:54 -0700
commit3301f1861d34f53911a30a8f5f41b9141bd8ed39 (patch)
tree5aad42b40cb2b54937fe63fca9005066b99674cf /tools/perf/scripts/python/export-to-postgresql.py
parentmm/damon/core: make damon_set_attrs() be safe to be called from damon_call() (diff)
downloadwireguard-linux-3301f1861d34f53911a30a8f5f41b9141bd8ed39.tar.xz
wireguard-linux-3301f1861d34f53911a30a8f5f41b9141bd8ed39.zip
mm/damon/sysfs: handle commit command using damon_call()
DAMON sysfs interface is using damon_callback->after_aggregation hook with its self-implemented synchronization mechanism for the hook. It is inefficient, complicated, and take up to one aggregation interval to complete, which can be long on some configs. Use damon_call() instead. It provides a synchronization mechanism that built inside DAMON's core layer, so more efficient than DAMON sysfs interface's own one. Also it isolates the implementation inside the core layer, and hence it makes the code easier to maintain. Finally, it takes up to one sampling interval, which is much shorter than the aggregation interval in common setups. Link: https://lkml.kernel.org/r/20250306175908.66300-5-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions