Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] selftests/damon: handle early access_memory exit
@ 2026-12-06  9:52 Enze Li
  2026-12-06  9:52 ` [PATCH 1/2] selftests/damon/wss_estimation: " Enze Li
  2026-12-06  9:52 ` [PATCH 2/2] selftests/damon/damos_apply_interval: " Enze Li
  0 siblings, 2 replies; 5+ messages in thread
From: Enze Li @ 2026-12-06  9:52 UTC (permalink / raw)
  To: sj, shuah; +Cc: damon, linux-mm, linux-kselftest, Enze Li

Hi,

Both tests start access_memory and read DAMON data while it runs.  If
the child exits early, they end up reading data that was never filled
in and die with a Python exception.

Make them fail with the child's return code instead.  Two patches, one
per test, since the checks differ: wss_estimation runs access_memory
with 'repeat', so proc.poll() is enough there; damos_apply_interval
expects the child to finish, so it checks whether the scheme stats
were filled instead.

Thanks,
Enze

Enze Li (2):
  selftests/damon/wss_estimation: handle early access_memory exit
  selftests/damon/damos_apply_interval: handle early access_memory exit

 tools/testing/selftests/damon/damos_apply_interval.py     | 7 +++++++
 .../sysfs_update_schemes_tried_regions_wss_estimation.py  | 8 ++++++++
 2 files changed, 15 insertions(+)


base-commit: 6855c02e7d65a8539dc3f8a24946c1ff9bd81361
-- 
2.53.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-06 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06  9:52 [PATCH 0/2] selftests/damon: handle early access_memory exit Enze Li
2026-12-06  9:52 ` [PATCH 1/2] selftests/damon/wss_estimation: " Enze Li
2026-12-06 10:05   ` sashiko-bot
2026-12-06  9:52 ` [PATCH 2/2] selftests/damon/damos_apply_interval: " Enze Li
2026-12-06 10:03   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox