Skip to contentSkip to conversation

selftests/damon: misc fixes

PATCH Applied SeongJae Park 1 participant 3 messages Feb 21, 2024

Subsystems (3)
lore
Share & tools
lore

SeongJae Park

author maintainer
#0 lore raw

cover selftests/damon: misc fixes

Resending misc fixes for DAMON selftets on behalf of the original authors for more visibility and inclusion on mm tree.

The patches are same to their original versions, except added Links: for the original posts, and Signed-off-by: of mine.

Javier Carrasco (1):
selftests: damon: add access_memory to .gitignore

Vincenzo Mezzela (1):
selftest: damon: fix minor typos in test logs

 tools/testing/selftests/damon/.gitignore                        | 1 +
 .../selftests/damon/sysfs_update_schemes_tried_regions_hang.py  | 2 +-
 .../damon/sysfs_update_schemes_tried_regions_wss_estimation.py  | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.2
author maintainer
#1 lore raw

PATCH 1/2 selftest: damon: fix minor typos in test logs

From: Vincenzo Mezzela <[email protected]>

This patch resolves a spelling error in the test log, preventing potential confusion.

It is submitted as part of my application to the "Linux Kernel Bug Fixing Spring Unpaid 2024" mentorship program of the Linux Foundation.

---
 .../selftests/damon/sysfs_update_schemes_tried_regions_hang.py  | 2 +-
 .../damon/sysfs_update_schemes_tried_regions_wss_estimation.py  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_hang.py +1 -1
index 8c690ba1a573..28c887a0108f 100644
@@ -20,7 +20,7 @@ def main():
 
     err = kdamonds.start()
     if err != None:
-        print('kdmaond start failed: %s' % err)
+        print('kdamond start failed: %s' % err)
         exit(1)
 
     while proc.poll() == None:
tools/testing/selftests/damon/sysfs_update_schemes_tried_regions_wss_estimation.py +1 -1
index cdbf19b442c9..90ad7409a7a6 100644
@@ -23,7 +23,7 @@ def main():
 
     err = kdamonds.start()
     if err != None:
-        print('kdmaond start failed: %s' % err)
+        print('kdamond start failed: %s' % err)
         exit(1)
 
     wss_collected = []
Signature · 1 line
2.39.2
author maintainer
#2 lore raw

PATCH 2/2 selftests: damon: add access_memory to .gitignore

In reply to SeongJae Park

From: Javier Carrasco <[email protected]>

This binary is missing in the .gitignore and stays as an untracked file.

---
 tools/testing/selftests/damon/.gitignore | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/damon/.gitignore +1 -0
index d861701f0327..e65ef9d9cedc 100644
@@ -2,3 +2,4 @@
 huge_count_read_write
 debugfs_target_ids_read_before_terminate_race
 debugfs_target_ids_pid_leak
+access_memory
Signature · 1 line
2.39.2