Skip to contentSkip to conversation

4ece018976: kernel-selftests.damon.sysfs.py.fail

linux-next:master kernel test robot 2 participants 2 messages Jul 22, 2025

Subsystems (2)
lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

Hello,

kernel test robot noticed "kernel-selftests.damon.sysfs.py.fail" on:

commit: 4ece01897627ddeefcede4ac709cd99763994dc4 ("selftests/damon: add python and drgn-based DAMON sysfs test")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

[test failed on linux-next/master d086c886ceb9f59dea6c3a9dae7eb89e780a20c9]

in testcase: kernel-selftests
version: kernel-selftests-x86_64-7ff71e6d9239-1_20250215 with following parameters:

group: damon

config: x86_64-rhel-9.4-kselftests
compiler: gcc-12
test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (Skylake) with 32G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)

besides the failure of this new added test, we also noticed below tests failed while passing on parent.

e227472ebf00b6b5 4ece01897627ddeefcede4ac709
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:6 100% 6:6 kernel-selftests.damon.damon_nr_regions.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_quota.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_quota_goal.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_tried_regions.py.fail

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

# timeout set to 300
# selftests: damon: sysfs.py
# Traceback (most recent call last):
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 42, in <module>
#     main()
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 31, in main
#     status, err = dump_damon_status_dict(kdamonds.kdamonds[0].pid)
#                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 13, in dump_damon_status_dict
#     rc = subprocess.call(['drgn', dump_script, pid, 'damon_dump_output'],
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/lib/python3.11/subprocess.py", line 389, in call
#     with Popen(*popenargs, **kwargs) as p:
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
#     self._execute_child(args, executable, preexec_fn, close_fds,
#   File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
#     raise child_exception_type(errno_num, err_msg, err_filename)
# FileNotFoundError: [Errno 2] No such file or directory: 'drgn'
not ok 2 selftests: damon: sysfs.py # exit=1

The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20250722/[email protected]

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
maintainer
#1 lore raw
Quoted 58 lines · On Tue, 22 Jul 2025 13:36:02 +0800 kernel test robot <[email protected]>…

Hello,

kernel test robot noticed "kernel-selftests.damon.sysfs.py.fail" on:

commit: 4ece01897627ddeefcede4ac709cd99763994dc4 ("selftests/damon: add python and drgn-based DAMON sysfs test")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

[test failed on linux-next/master d086c886ceb9f59dea6c3a9dae7eb89e780a20c9]

in testcase: kernel-selftests
version: kernel-selftests-x86_64-7ff71e6d9239-1_20250215 with following parameters:

group: damon

config: x86_64-rhel-9.4-kselftests
compiler: gcc-12
test machine: 36 threads 1 sockets Intel(R) Core(TM) i9-9980XE CPU @ 3.00GHz (Skylake) with 32G memory

(please refer to attached dmesg/kmsg for entire log/backtrace)

besides the failure of this new added test, we also noticed below tests failed while passing on parent.

e227472ebf00b6b5 4ece01897627ddeefcede4ac709
---------------- ---------------------------
fail:runs %reproduction fail:runs
| | |
:6 100% 6:6 kernel-selftests.damon.damon_nr_regions.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_quota.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_quota_goal.py.fail
:6 100% 6:6 kernel-selftests.damon.damos_tried_regions.py.fail

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-lkp/[email protected]

# timeout set to 300
# selftests: damon: sysfs.py
# Traceback (most recent call last):
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 42, in <module>
#     main()
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 31, in main
#     status, err = dump_damon_status_dict(kdamonds.kdamonds[0].pid)
#                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/src/perf_selftests-x86_64-rhel-9.4-kselftests-4ece01897627ddeefcede4ac709cd99763994dc4/tools/testing/selftests/damon/./sysfs.py", line 13, in dump_damon_status_dict
#     rc = subprocess.call(['drgn', dump_script, pid, 'damon_dump_output'],
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/lib/python3.11/subprocess.py", line 389, in call
Quoted 8 lines
#     with Popen(*popenargs, **kwargs) as p:
#          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/lib/python3.11/subprocess.py", line 1024, in __init__
#     self._execute_child(args, executable, preexec_fn, close_fds,
#   File "/usr/lib/python3.11/subprocess.py", line 1901, in _execute_child
#     raise child_exception_type(errno_num, err_msg, err_filename)
# FileNotFoundError: [Errno 2] No such file or directory: 'drgn'
not ok 2 selftests: damon: sysfs.py # exit=1

Thank you for this report! I just posted a fix:
https://lore.kernel.org/[email protected]

Thanks,
SJ

[...]