summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorXuewen Wang <wangxuewen@kylinos.cn>2026-09-21 08:15:44 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-10-12 21:26:38 -0700
commit639b0cca7d11d6c5ee539a371c818ab9b3e69645 (patch)
treea175a88910314316ca21968b71f9b0f6a7c80c05 /tools/perf/scripts/python/parallel-perf.py
parenta9799d2d248533c6d3f8f8d1272a0d27871a8ebc (diff)
mm/damon/sysfs: propagate damon_call() error in turn_damon_on
damon_sysfs_turn_damon_on() ignored the return value of damon_call() for the repeat call control registration and always returned the stale result of damon_start() (0 at that point). When damon_call() fails, e.g., the kdamond is already exiting, the user still gets success from the state file write while monitoring is not actually on. Save and return the damon_call() result instead. No rollback of damon_start() is needed since a failed damon_call() guarantees the context is stopped. Link: https://lore.kernel.org/20260921151547.78472-3-sj@kernel.org Signed-off-by: Xuewen Wang <wangxuewen@kylinos.cn> Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: SJ Park <sj@kernel.org> Cc: Adrian Huang <adrianhuang0701@gmail.com> Cc: Karthikeyan KS <karthiproffesional@gmail.com> Cc: Liew Rui Yan <aethernet65535@gmail.com> Cc: Zenghui Yu (Huawei) <zenghui.yu@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions